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, except for a small neighborhood
around the origin. In this neighborhood around the origin, the functions
Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_dp
and
Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow
do not have an analytic expression for their inverse function and hence
the implementation of the inverse function slightly differs.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | k | 0.5 | |
| Modelica.Units.SI.MassFlowRate | m_flow_nominal | 1 | Nominal flow rate |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.MassFlowRate | m_flow | ||
| Modelica.Units.SI.PressureDifference | dp | Pressure difference | |
| Modelica.Units.SI.PressureDifference | dpCalc | Pressure difference computed by the flow functions | |
| Modelica.Units.SI.Pressure | deltaDp | Pressure difference between input and output to the functions | |
| Modelica.Units.SI.Time | dTime | 2 |
Revisions
-
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.