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

TypeNameDefaultDescription
IntegernPortsNumber of fluid ports on each side
Flow resistance
Boolean[nPorts]computeFlowResistancefill(true, nPorts)=true, compute flow resistance. Set to false to assume no friction
Boolean[nPorts]from_dpfill(false, nPorts)= true, use m_flow = f(dp) else dp = f(m_flow)
Realn2Flow exponent, n=1 for laminar, n=2 for turbulent
Boolean[nPorts]linearizeFlowResistancefill(false, nPorts)= true, use linear relation between m_flow and dp for any flow rate
Real[nPorts]deltaMfill(0.1, nPorts)Fraction of nominal flow rate where flow transitions to laminar
Nominal condition
Modelica.Units.SI.PressureDifference[nPorts]dp_nominalPressure difference

Revisions

  • June 17, 2026, by Michael Wetter:
    Updated implementation to allow a flow coefficient n that is different from 2. This allows use of the model for not fully turbulent flow.
    This is for Buildings, #4620.
  • February, 2024, by Massimo Cimmino:
    First implementation.