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
| Type | Name | Default | Description |
|---|---|---|---|
| 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) |
| Real | xd | table[:, 1] | x-axis support points |
| Real | yd | table[:, 2] | y-axis support points |
| Real | d | Buildings.Utilities.Math.Functions.splineDerivatives(x = xd, y = yd, ensureMonotonicity = true) | Derivatives at the support points |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Utilities.Math.Interpolate | int | Interpolate block | |
| Modelica.Blocks.Sources.Ramp | ramp | Ramp from -50Pa to +50Pa |
Revisions
-
February 29, 2024, by Hongxiang Fu:
First implementation.
This is for IBPSA, #1844.