functionquinticHermite
Quintic Hermite spline function for interpolation between two functions with a continuous second derivative
Extends from Modelica.Icons.Function (Icon for functions).
Information
Returns the result y of a quintic Hermite spline,
which is a C2 continuous interpolation between two functions.
The abscissa value x has to be between x1 and x2.
Variables y1, y1d, y1dd are the ordinate,
ordinate derivative and ordinate second derivative of the function at x1.
Variables y2, y2d, y2dd are respectively the ordinate,
ordinate derivative and ordinate second derivative of the function at x2.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | Abscissa value | |
| Real | x1 | Lower abscissa value | |
| Real | x2 | Upper abscissa value | |
| Real | y1 | Lower ordinate value | |
| Real | y2 | Upper ordinate value | |
| Real | y1d | Lower derivative | |
| Real | y2d | Upper derivative | |
| Real | y1dd | Lower second derivative | |
| Real | y2dd | Upper second derivative |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y | Interpolated ordinate value |
Revisions
-
July 21, 2025 by Hongxiang Fu:
Made the function inlined.
This is for #4278. -
April 19, 2017, by Filip Jorissen:
First implementation.