modelInterpolate

Example model of the Interpolate block

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example is the same as Buildings.Utilities.Math.Functions.Examples.Interpolate except that the block is used in place of the function.

Parameters

TypeNameDefaultDescription
Real[:,:]table[-50, -0.08709; -25, -0.06158; -10, -0.03895; -5, -0.02754; -3, -0.02133; -2, -0.01742; -1, -0.01232; 0, 0; 1, 0.01232; 2, 0.01742; 3, 0.02133; 4.5, 0.02613; 50, 0.02614]Table of mass flow rate in kg/s (second column) as a function of pressure difference in Pa (first column)
Realxdtable[:, 1]x-axis support points
Realydtable[:, 2]y-axis support points
RealdBuildings.Utilities.Math.Functions.splineDerivatives(x = xd, y = yd, ensureMonotonicity = true)Derivatives at the support points

Components

TypeNameDefaultDescription
Buildings.Utilities.Math.InterpolateintInterpolate block
Modelica.Blocks.Sources.RamprampRamp from -50Pa to +50Pa

Revisions

  • February 29, 2024, by Hongxiang Fu:
    First implementation.
    This is for IBPSA, #1844.