modelLagSpline
Adapt the input signal before interpolation
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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | enabled | true | disabled => y=yBase |
| Physiolibrary.Types.Time | HalfTime | 1 | |
| Real | initialValue | 1 | as u/Xscale |
| Real | Xscale | 1 | conversion scale to SI unit of x values |
| Real | Yscale | 1 | conversion scale to SI unit of y values |
| Boolean | UsePositiveLog10 | false | x = if u_delayed/scaleX <=1 then 0 else log10(u_delayed/scaleX) |
| Real | data | {{0, 0, 0}} |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | yBase (from BaseFactorIcon5) | ||
| Modelica.Blocks.Interfaces.RealOutput | y (from BaseFactorIcon5) | ||
| Modelica.Blocks.Interfaces.RealInput | u |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Blocks.Math.Integrator | integrator | ||
| Modelica.Blocks.Math.Feedback | feedback | ||
| Physiolibrary.Types.Fraction | effect | ||
| Spline | spline |
Revisions
2009-2018
Marek Matejak, marek@matfyz.cz