tankObservation_from_OpenTank function

Requirements.Examples.SimplePumpingSystem.Components.Bindings.tankObservation_from_OpenTank  ยท source

Icon of tankObservation_from_OpenTank

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

NameTypeDescription
openTank inputChecks.Records.TankObservation variables from an OpenTank

Outputs

NameTypeDescription
tankObservation outputChecks.Records.TankOpenTank observation variables in requirements model