modelInvertingPowerLaw_m_flow

Test model that inverts powerLaw_m_flow

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This model tests whether the Modelica translator substitutes the inverse function for Buildings.Fluid.BaseClasses.FlowModels.powerLaw_m_flow. Specifically, this function declares in its annotation section that its inverse is provided by Buildings.Fluid.BaseClasses.FlowModels.powerLaw_dp. Translating this model should therefore give no nonlinear equations after the symbolic manipulation.

Parameters

TypeNameDefaultDescription
Realk0.5Flow coefficient
Realn1.5Flow exponent, n=1 for laminar, n=2 for turbulent
Modelica.Units.SI.MassFlowRatem_flow_nominal0.5Nominal mass flow rate
Modelica.Units.SI.MassFlowRatem_flow_turbulentm_flow_nominal*0.3Mass flow rate where transition to turbulent flow occurs

Components

TypeNameDefaultDescription
Modelica.Units.SI.MassFlowRatem_flowMass flow rate
Modelica.Units.SI.PressureDifferencedpPressure difference

Revisions

  • May 30, 2026, by Michael Wetter:
    First implementation.