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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | k | 0.5 | Flow coefficient |
| Real | n | 1.5 | Flow exponent, n=1 for laminar, n=2 for turbulent |
| Modelica.Units.SI.MassFlowRate | m_flow_nominal | 0.5 | Nominal mass flow rate |
| Modelica.Units.SI.MassFlowRate | m_flow_turbulent | m_flow_nominal*0.3 | Mass flow rate where transition to turbulent flow occurs |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.MassFlowRate | m_flow | Mass flow rate | |
| Modelica.Units.SI.PressureDifference | dp | Pressure difference |
Revisions
-
May 30, 2026, by Michael Wetter:
First implementation.