functionbasicFlowFunction_m_flow_inv_der
1st derivative of basicFlowFunction_m_flow_inv
Extends from Modelica.Icons.Function (Icon for functions).
Information
Function that implements the first order derivative of Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow_inv, assuming constant flow coefficients.
When called with dp_der=der(dp), this function returns
the time derivative of m_flow.
When called with dp_der=1, this function returns
the derivative of m_flow with respect to dp.
Implementation
The derivative of the inverse function is the reciprocal of the derivative of Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow, which is computed by Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow_der.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.PressureDifference | dp | Pressure difference between port_a and port_b (= port_a.p - port_b.p) | |
| Real | k | Flow coefficient, k=m_flow/sqrt(dp), with unit=(kg.m)^(1/2) | |
| Modelica.Units.SI.MassFlowRate | m_flow_turbulent | Mass flow rate where transition to turbulent flow occurs | |
| Real | dp_der | Derivative of pressure difference between port_a and port_b (= port_a.p - port_b.p) |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | m_flow_der | Derivative of mass flow rate in design flow direction |
Revisions
-
October 22, 2026, by Martin Sjölund:
First implementation.
This is for Buildings, #4798.