tankObservation_from_OpenTank function
Requirements.Examples.SimplePumpingSystem.Components.Bindings.tankObservation_from_OpenTank
ยท source
Map OpenTank variables to Tank observations record
Extends Modelica.Icons.Function
Binding function that maps the variables of a
Modelica.Fluid.Vessels.OpenTank to the
Tank observation record of
TankRequirements.
Since the names in the tank model and in the observation record are identical (level), the output is a copy
of the input. The input record is built at the call site with the explicit record constructor:
observation = Bindings.tankObservation_from_OpenTank(
Components.Checks.Records.Tank(level=reservoir.level))
The function is Inline=true and has no algorithm; it documents and isolates the binding between the
plant model and the requirement.
Inputs
| Name | Type | Description |
|---|---|---|
openTank input | Checks.Records.Tank | Observation variables from an OpenTank |
Outputs
| Name | Type | Description |
|---|---|---|
tankObservation output | Checks.Records.Tank | OpenTank observation variables in requirements model |