RealExpression block
Requirements.Sources.RealExpression
ยท source
Output y is a (time-varying) Real expression
Extends Requirements.Interfaces.PartialExpression
Output y is defined as an arbitrary (time-varying) Real expression in the parameter menu.
The output y is declared with a Dialog annotation and a default binding (0.0), so the
expression is entered directly as the modifier of y in the parameter menu or in the declaration, for
example RealExpression expr1(y = sin(2*Modelica.Constants.pi*time)). The expression may refer to time and to any variable visible in the enclosing
model, which makes the block the simplest way to feed a model variable into a block diagram of checks without
drawing a connection. The icon (from PartialExpression)
displays the expression. Unlike RealConstant, a literal entered here is fixed when the model is translated.
Components and variables
| Name | Type | Description |
|---|---|---|
y | Modelica.Blocks.Interfaces.RealOutput | Value of Real output |