recordTwoNPortsFlowResistanceParameters
Parameters for flow resistance for models with two N ports
Extends from Modelica.Icons.Record (Icon for records).
Information
This class contains parameters that are used to compute the pressure drop in models that have one fluid stream. Note that the nominal mass flow rate is not declared here because the model PartialTwoNPortsInterface already declares it.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nPorts | Number of fluid ports on each side | |
| Flow resistance | |||
| Boolean[nPorts] | computeFlowResistance | fill(true, nPorts) | =true, compute flow resistance. Set to false to assume no friction |
| Boolean[nPorts] | from_dp | fill(false, nPorts) | = true, use m_flow = f(dp) else dp = f(m_flow) |
| Real | n | 2 | Flow exponent, n=1 for laminar, n=2 for turbulent |
| Boolean[nPorts] | linearizeFlowResistance | fill(false, nPorts) | = true, use linear relation between m_flow and dp for any flow rate |
| Real[nPorts] | deltaM | fill(0.1, nPorts) | Fraction of nominal flow rate where flow transitions to laminar |
| Nominal condition | |||
| Modelica.Units.SI.PressureDifference[nPorts] | dp_nominal | Pressure difference | |
Revisions
-
June 17, 2026, by Michael Wetter:
Updated implementation to allow a flow coefficientnthat is different from2. This allows use of the model for not fully turbulent flow.
This is for Buildings, #4620. -
February, 2024, by Massimo Cimmino:
First implementation.