function regStepState extends Modelica.Icons.Function; input Modelica.Units.SI.MolarFlowRate n_flow; input Chemical.Interfaces.SubstanceState state_forwards; input Chemical.Interfaces.SubstanceState state_rearwards; input Modelica.Units.SI.MolarFlowRate n_flow_reg; output Chemical.Interfaces.SubstanceState state; end regStepState;