Helper function to get a quantity from an Thermofluid state.
function getFlowQuantity
extends Modelica.Icons.Function;
replaceable package Medium = Media.myMedia.Interfaces.PartialMedium "Medium model" annotation(
choicesAllMatching = true,
Documentation(info = "<html>
<p>Medium Model for the function. Make sure it implements the needed functions.</p>
</html>"));
input Medium.ThermodynamicState state;
input SI.MassFlowRate m_flow;
input Types.MassFlowQuantities quantity;
input SI.Density rho_min;
output Real value;
end getFlowQuantity;| Name | Description |
|---|---|
| Medium | Medium model |