modelDerivativesCubicSpline
Cubic spline for interpolation
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
This model calculates the output based on the cubic hermite interpolation and linear extrapolation of predefined values. The predefined values must create a monotone curve.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | xd | {0, 0.5, 1} | |
| Real | yd | {0, 0.75, 1} |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u | Independent variable for interpolation | |
| Modelica.Blocks.Interfaces.RealOutput | y | Interpolated value |
Revisions
-
December 15, 2016, by Michael Wetter:
Removed wrong annotations.
This is for #629. -
June 13, 2016, by Michael Wetter:
Revised implementation. -
May 20, 2016, by Alessandro Maccarini:
First implementation.