Physiolibrary.Blocks.Interpolation

Empirical Dependence of Two Variables

Information

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

Name Description
Physiolibrary.Blocks.Interpolation.Spline Spline Cubic spline interpolation function
Physiolibrary.Blocks.Interpolation.SplineCoefficients SplineCoefficients Cubic spline interpolation coefficients
Physiolibrary.Blocks.Interpolation.Curve Curve 2D natural cubic interpolation spline defined with (x,y,slope) points
Physiolibrary.Blocks.Interpolation.Spline_der Spline_der Derivative of Cubic spline interpolation function

Physiolibrary.Blocks.Interpolation.Spline

Cubic spline interpolation function

Inputs

NameDescription
x[:]x coordinations of interpolating points
a[:, 4]cubic polynom coefficients of curve segments between interpolating points
xValinput value of x to calculate y value

Outputs

NameDescription
yValy value at xVal

Physiolibrary.Blocks.Interpolation.SplineCoefficients

Cubic spline interpolation coefficients

Inputs

NameDescription
x[:]x coordinations of interpolating points
y[:]y coordinations of interpolating points
slope[:]slopes at interpolating points

Outputs

NameDescription
a[size(x, 1) + 1, 4]cubic polynom coefficients of curve segments between interpolating points

Physiolibrary.Blocks.Interpolation.Curve Physiolibrary.Blocks.Interpolation.Curve

2D natural cubic interpolation spline defined with (x,y,slope) points

Parameters

NameDescription
x[:]x coordinations of interpolating points
y[:]y coordinations of interpolating points
slope[:]slopes at interpolating points
data[:, 3]Array of interpolating points as {x,y,slope}
Xscaleconversion scale to SI unit of x values
Yscaleconversion scale to SI unit of y values

Connectors

NameDescription
u 
val 

Physiolibrary.Blocks.Interpolation.Spline_der

Derivative of Cubic spline interpolation function

Inputs

NameDescription
x[:]x coordinations of interpolating points
a[:, 4]cubic polynom coefficients of curve segments between interpolating points
xValinput value of x to calculate y value
xVal_der 

Outputs

NameDescription
yVal_derderivative y at xVal
Automatically generated Wed Oct 11 14:54:26 2023.