functionpowerLaw_m_flow_der

1st derivative of function that computes pressure drop for given mass flow rate

Extends from Modelica.Icons.Function (Icon for functions).

Information

Function that implements the first order derivative of Buildings.Fluid.BaseClasses.FlowModels.powerLaw_m_flow with respect to the mass flow rate m_flow, assuming constant flow coefficients.

When called with m_flow_der=der(m_flow), this function returns the time derivative of dp. When called with m_flow_der=1, this function returns the derivative of dp with respect to m_flow.

Inputs

TypeNameDefaultDescription
Modelica.Units.SI.MassFlowRatem_flowMass flow rate
RealkFlow coefficient, k = m_flow/ dp^(1/n)
RealnFlow exponent, n=1 for laminar, n=2 for turbulent
Modelica.Units.SI.MassFlowRatem_flow_turbulentMass flow rate where transition to turbulent flow occurs
Modelica.Units.SI.PressureDifferencedp_turbulentPressure difference where turbulent flow occurs
RealmFlow exponent for the pressure drop
Reala1Polynomial coefficient for regularized implementation of flow resistance
Reala3Polynomial coefficient for regularized implementation of flow resistance
Reala5Polynomial coefficient for regularized implementation of flow resistance
RealCCoefficient 1/k^n, based on the definition k = m_flow / dp^(1/n)
Realb1Polynomial coefficient for regularized implementation of flow resistance
Realb3Polynomial coefficient for regularized implementation of flow resistance
Realb5Polynomial coefficient for regularized implementation of flow resistance
Realm_flow_derDerivative of mass flow rate in design flow direction

Outputs

TypeNameDefaultDescription
Realdp_derDerivative of pressure difference

Revisions

  • May 30, 2026, by Michael Wetter:
    First implementation.
    This is for Buildings, #4620.