This function applies the regStep function to p,T and Xi of a state and creates and returns the resulting state.
function regStepState
extends Modelica.Icons.Function;
replaceable package Medium = Media.myMedia.Interfaces.PartialMedium "Medium model" annotation(
choicesAllMatching = true,
Documentation(info = "<html>
<p>Replaceable medium package for the function.</p>
</html>"));
input SI.MassFlowRate m_flow;
input Medium.ThermodynamicState state_forwards;
input Medium.ThermodynamicState state_rearwards;
input SI.MassFlowRate m_flow_reg;
output Medium.ThermodynamicState state;
end regStepState;| Name | Description |
|---|---|
| Medium | Medium model |