modelLagSpline

Adapt the input signal before interpolation
Diagram of LagSpline

Extends from Physiolibrary.Icons.BaseFactorIcon5.

Information

If the input signal u is constant and it is different from starting delayed input d, the middle value between u and d will be reached after HalfTime.

The mathematical background:

d'(t) = k*(u(t) - d(t)) => The solution of d(t) in special case, if u(t) is constant at each time t: d(t)=u+(d(0)-u)*e^(-k*t), where the definition of HalfTime is d(HalfTime) = d(0) + (d(0)-u)/2.

Parameters

TypeNameDefaultDescription
Booleanenabledtruedisabled => y=yBase
Physiolibrary.Types.TimeHalfTime1
RealinitialValue1as u/Xscale
RealXscale1conversion scale to SI unit of x values
RealYscale1conversion scale to SI unit of y values
BooleanUsePositiveLog10falsex = if u_delayed/scaleX <=1 then 0 else log10(u_delayed/scaleX)
Realdata{{0, 0, 0}}

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputyBase (from BaseFactorIcon5)
Modelica.Blocks.Interfaces.RealOutputy (from BaseFactorIcon5)
Modelica.Blocks.Interfaces.RealInputu

Components

TypeNameDefaultDescription
Blocks.Math.Integratorintegrator
Modelica.Blocks.Math.Feedbackfeedback
Physiolibrary.Types.Fractioneffect
Splinespline

Revisions

2009-2018

Marek Matejak, marek@matfyz.cz