Modelica.Math extension
Extends from Modelica.Icons.Package (Icon for standard packages).
Name | Description |
---|---|
Integrator | Integrator with support of steady state calculation. |
Add | u + parameter |
Reciprocal | 1 / u |
Power | b ^ u |
Min | Pass through the smallest signal |
Log10AsEffect | min( 0, log10(u) ) |
Parts | Divide the input value by weights |
HomotopyStrongComponentBreaker | Break the strong component in normalized signal with independent default constant value |
DegradationGain | Output the degradation flow from HalfTime and the amount as the input signal |
FractionGain | Output the fraction of the input signal |
Integrator with support of steady state calculation.
This blocks computes output y (element-wise) as integral of the input u multiplied with the gain k:
k y = - u s
It might be difficult to initialize the integrator in steady state. This is discussed in the description of package Continuous.
Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).
Name | Description |
---|---|
k | Integrator gain |
u | Connector of Real input signal |
y | Connector of Real output signal |
stateName | |
Initialization | |
y_start | Initial or guess value of output (= state) |
Solver | |
Numerical support of very small concentrations | |
NominalValue | Numerical scale. For some substances such as hormones, hydronium or hydroxide ions should be set. |
Name | Description |
---|---|
u | Connector of Real input signal |
y | Connector of Real output signal |
u + parameter
This block computes output y as sum of offset k with the input u:
y = k + u;
Name | Description |
---|---|
k | value added to input signal |
Name | Description |
---|---|
u | Input signal connector |
y | Output signal connector |
1 / u
This blocks computes the output y as reciprocal value of the input u:
y = 1 / u ;
Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).
Name | Description |
---|---|
u | Connector of Real input signal |
y | Connector of Real output signal |
b ^ u
y = base^exponent
Name | Description |
---|---|
Base | exponential base if useBaseInput=false |
Conditional inputs | |
useBaseInput | =true, if exponential base input is used instead of parameter Base |
Name | Description |
---|---|
y | |
base | |
exponent |
Pass through the smallest signal
This block computes the output y as minimum of the Real inputs u[1],u[2] .. u[nin]:
y = min ( u );
Extends from Modelica.Blocks.Interfaces.MISO (Multiple Input Single Output continuous control block).
Name | Description |
---|---|
nin | Number of inputs |
Name | Description |
---|---|
u[nin] | Connector of Real input signals |
y | Connector of Real output signal |
min( 0, log10(u) )
This blocks computes the output y as the base 10 logarithm of the input u if u>1 or 0 otherwise
y = if(u>1) log10( u ) else 0;
Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).
Name | Description |
---|---|
u | Connector of Real input signal |
y | Connector of Real output signal |
Divide the input value by weights
This blocks divide input value u to output array y by weights. The sum of output values is equal to input value u:
u = (w[1]*y[1] + w[2]*y[2] + ... + w[n]*y[n]) / (w[1] + w[2] + ... + w[n]);
Example:
parameter: nin = 3; w=ones(3); results in the following equations:
y[1]=u/3, y[2]=u/3, y[3]=u/3;
Extends from Modelica.Blocks.Interfaces.SIMO (Single Input Multiple Output continuous control block).
Parameters
Name | Description |
---|---|
nout | Number of outputs |
w[nout] | Optional: weight coefficients |
Name | Description |
---|---|
u | Connector of Real input signal |
y[nout] | Connector of Real output signals |
Break the strong component in normalized signal with independent default constant value
This blocks should solve the initial strong component problem. In the non-linear-strong-component-cycled place, where the default or mean value of variable is known.
For example the regulation loop L driven by loop-dependent effect E with default value 1:
E=f(L(E)) can be rewritten to E=f(L( H )), where H is output from this block with input E.
Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).
Name | Description |
---|---|
defaultValue | |
defaultSlope |
Name | Description |
---|---|
u | Connector of Real input signal |
y | Connector of Real output signal |
Output the degradation flow from HalfTime and the amount as the input signal
This block computes output y as product of gain k with the input u:
y = k * u;
Name | Description |
---|---|
HalfTime | Half time to compute degradation from amount or mass [s] |
Name | Description |
---|---|
u | Input signal connector |
y | Output signal connector |
Output the fraction of the input signal
This block computes output y as product of gain k with the input u:
y = k * u;
Name | Description |
---|---|
f | Half time to compute degradation from amount or mass [1] |
Name | Description |
---|---|
u | Input signal connector |
y | Output signal connector |