functionbasicFlowFunction_dp_inv_der

1st derivative of basicFlowFunction_dp_inv

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

Information

Function that implements the first order derivative of Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_dp_inv, 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.

Implementation

The derivative of the inverse function is the reciprocal of the derivative of Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_dp, which is computed by Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_dp_der.

Inputs

TypeNameDefaultDescription
Modelica.Units.SI.MassFlowRatem_flowMass flow rate in design flow direction
RealkFlow coefficient, k=m_flow/sqrt(dp), with unit=(kg.m)^(1/2)
Modelica.Units.SI.MassFlowRatem_flow_turbulentMass flow rate where transition to turbulent flow occurs
Realm_flow_derDerivative of mass flow rate in design flow direction

Outputs

TypeNameDefaultDescription
Realdp_derDerivative of pressure difference between port_a and port_b (= port_a.p - port_b.p)

Revisions

  • October 22, 2026, by Martin Sjölund:
    First implementation.
    This is for Buildings, #4798.