Helper function to get a quantity from an Thermofluid state.
function getQuantity
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.Pressure r;
input Types.Quantities quantity;
input SI.Density rho_min;
output Real value;
end getQuantity;| Name | Description |
|---|---|
| Medium | Medium model |