pumpObservation_from_PrescribedPump function

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

Icon of pumpObservation_from_PrescribedPump

Map PrescribedPump variables to pump observations record

Extends Modelica.Icons.Function

Binding function that maps the variables of a Modelica.Fluid.Machines.PrescribedPump, collected in the Bindings.Records.PrescribedPump record, to the Pump observation record of PumpRequirements:

speed    = prescribedPump.N_in
p_port_a = prescribedPump.port_a.p
p_port_b = prescribedPump.port_b.p

The renaming is the actual binding: the requirement block uses its own names and does not depend on the pump model. The function is Inline=true. See CheckPumpingSystem for the call.

Inputs

NameTypeDescription
prescribedPump inputBindings.Records.PrescribedPumpObservation variables from a PrescribedPump

Outputs

NameTypeDescription
pumpObservation outputChecks.Records.PumpPump observation variables in requirements model