functionpowerLaw_dp_der2

2nd derivative of function that computes mass flow rate for given pressure drop

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

Information

Function that implements the second order derivative of Buildings.Fluid.BaseClasses.FlowModels.powerLaw_dp with respect to the pressure difference dp, assuming constant flow coefficients.

When called with dp_der=der(dp) and dp_der2=der(dp_der), this function returns the second order derivative of m_flow with respect to time. When called with dp_der=1 and dp_der2=0, this function returns the second order derivative of m_flow with respect to dp.

Inputs

TypeNameDefaultDescription
Modelica.Units.SI.PressureDifferencedpPressure difference
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
Realdp_der1st derivative of pressure difference
Realdp_der22nd derivative of pressure difference

Outputs

TypeNameDefaultDescription
Realm_flow_der22nd derivative of mass flow rate in design flow direction

Revisions

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