Physiolibrary.Blocks.Math

Modelica.Math extension

Information

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

Package Content

Name Description
Physiolibrary.Blocks.Math.Integrator Integrator Integrator with support of steady state calculation.
Physiolibrary.Blocks.Math.Add Add u + parameter
Physiolibrary.Blocks.Math.Reciprocal Reciprocal 1 / u
Physiolibrary.Blocks.Math.Power Power b ^ u
Physiolibrary.Blocks.Math.Min Min Pass through the smallest signal
Physiolibrary.Blocks.Math.Log10AsEffect Log10AsEffect min( 0, log10(u) )
Physiolibrary.Blocks.Math.Parts Parts Divide the input value by weights
Physiolibrary.Blocks.Math.HomotopyStrongComponentBreaker HomotopyStrongComponentBreaker Break the strong component in normalized signal with independent default constant value
Physiolibrary.Blocks.Math.DegradationGain DegradationGain Output the degradation flow from HalfTime and the amount as the input signal
Physiolibrary.Blocks.Math.FractionGain FractionGain Output the fraction of the input signal

Physiolibrary.Blocks.Math.Integrator Physiolibrary.Blocks.Math.Integrator

Integrator with support of steady state calculation.

Information

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).

Parameters

NameDescription
kIntegrator gain
uConnector of Real input signal
yConnector of Real output signal
stateName 
Initialization
y_startInitial or guess value of output (= state)
Solver
Numerical support of very small concentrations
NominalValueNumerical scale. For some substances such as hormones, hydronium or hydroxide ions should be set.

Connectors

NameDescription
uConnector of Real input signal
yConnector of Real output signal

Physiolibrary.Blocks.Math.Add Physiolibrary.Blocks.Math.Add

u + parameter

Information

This block computes output y as sum of offset k with the input u:

y = k + u;

Parameters

NameDescription
kvalue added to input signal

Connectors

NameDescription
uInput signal connector
yOutput signal connector

Physiolibrary.Blocks.Math.Reciprocal Physiolibrary.Blocks.Math.Reciprocal

1 / u

Information

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).

Connectors

NameDescription
uConnector of Real input signal
yConnector of Real output signal

Physiolibrary.Blocks.Math.Power Physiolibrary.Blocks.Math.Power

b ^ u

Information

y = base^exponent

Parameters

NameDescription
Baseexponential base if useBaseInput=false
Conditional inputs
useBaseInput=true, if exponential base input is used instead of parameter Base

Connectors

NameDescription
y 
base 
exponent 

Physiolibrary.Blocks.Math.Min Physiolibrary.Blocks.Math.Min

Pass through the smallest signal

Information

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).

Parameters

NameDescription
ninNumber of inputs

Connectors

NameDescription
u[nin]Connector of Real input signals
yConnector of Real output signal

Physiolibrary.Blocks.Math.Log10AsEffect Physiolibrary.Blocks.Math.Log10AsEffect

min( 0, log10(u) )

Information

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).

Connectors

NameDescription
uConnector of Real input signal
yConnector of Real output signal

Physiolibrary.Blocks.Math.Parts Physiolibrary.Blocks.Math.Parts

Divide the input value by weights

Information

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

NameDescription
noutNumber of outputs
w[nout]Optional: weight coefficients

Connectors

NameDescription
uConnector of Real input signal
y[nout]Connector of Real output signals

Physiolibrary.Blocks.Math.HomotopyStrongComponentBreaker Physiolibrary.Blocks.Math.HomotopyStrongComponentBreaker

Break the strong component in normalized signal with independent default constant value

Information

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).

Parameters

NameDescription
defaultValue 
defaultSlope 

Connectors

NameDescription
uConnector of Real input signal
yConnector of Real output signal

Physiolibrary.Blocks.Math.DegradationGain Physiolibrary.Blocks.Math.DegradationGain

Output the degradation flow from HalfTime and the amount as the input signal

Information

This block computes output y as product of gain k with the input u:

    y = k * u;

Parameters

NameDescription
HalfTimeHalf time to compute degradation from amount or mass [s]

Connectors

NameDescription
uInput signal connector
yOutput signal connector

Physiolibrary.Blocks.Math.FractionGain Physiolibrary.Blocks.Math.FractionGain

Output the fraction of the input signal

Information

This block computes output y as product of gain k with the input u:

    y = k * u;

Parameters

NameDescription
fHalf time to compute degradation from amount or mass [1]

Connectors

NameDescription
uInput signal connector
yOutput signal connector
Automatically generated Wed Oct 11 14:54:26 2023.