Records package

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

Icon of Records

Records containing observation variables used as inputs to the binding functions

Extends Modelica.Icons.Package

These records are filled at the call site with explicit record constructors, e.g. PrescribedPump(N_in=pumps.N_in, port_a=FluidPort_p(p=pumps.port_a.p), ...). The Modelica Language Specification (section 12.6.1, casting to record) also allows the short form PrescribedPump(pumps), and Dymola accepts it; OpenModelica 1.27 and Modelon Impact (OCT) do not, nor do they accept passing the instance itself. The explicit constructor is what all three run (measured 2026-09-14).

The source and sink observations are built directly as Checks.Records.Source(p={source.ports[i].p for i in 1:source.nPorts}), without a binding function: OpenModelica 1.27 silently returns zeros from a function whose result is a record with an array component when the call has parameter variability, which a fixed boundary's pressures have.

Contents

NameKindDescription
FluidPort_precordObservation variables from a Modelica.Fluid.Interfaces.FluidPort component (only pressure p)
PrescribedPumprecordObservation variables from a Modelica.Fluid.Machines.PrescribedPump component