modelInverseFlowFunctions

Test model for flow function and its inverse

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

Information

This model tests the inverse formulation of the flow functions. The pressure difference dp and dpCalc need to be equal up to the solver tolerance in the turbulent region. However, for small absolute pressure drops, the results differ slightly because the functions Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_dp and Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow are not exact inverses of each other. The exact inverses are Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_dp_inv and Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow_inv.

Parameters

TypeNameDefaultDescription
Realk0.5
Modelica.Units.SI.MassFlowRatem_flow_nominal1Nominal flow rate

Components

TypeNameDefaultDescription
Modelica.Units.SI.MassFlowRatem_flow
Modelica.Units.SI.PressureDifferencedpPressure difference
Modelica.Units.SI.PressureDifferencedpCalcPressure difference computed by the flow functions
Modelica.Units.SI.PressuredeltaDpPressure difference between input and output to the functions
Modelica.Units.SI.TimedTime2

Revisions

  • October 25, 2026, by Michael Wetter:
    Updated documentation.
    This is for Buildings, #4798.
  • January 22, 2016, by Michael Wetter:
    Corrected type declaration of pressure difference. This is for #404.
  • August 8, 2012, by Michael Wetter:
    Updated documentation.
  • July 12, 2012, by Michael Wetter:
    First implementation.