modelBasicFlowFunction_dp_inv_DerivativeCheck

Model that checks the correct implementation of the 1st order derivative of the inverse of the flow function

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This model validates the implementation of Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_dp_inv and its first order derivative Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_dp_inv_der. If the derivative implementation is wrong, the simulation will stop with an error.

Parameters

TypeNameDefaultDescription
Realgain0.5Gain for computing the mass flow rate
Realk0.35Flow coefficient
Modelica.Units.SI.MassFlowRatem_flow_turbulent0.36Mass flow rate where transition to turbulent flow occurs

Components

TypeNameDefaultDescription
Modelica.Units.SI.MassFlowRatem_flowMass flow rate
Modelica.Units.SI.PressureDifferencedpPressure difference
Modelica.Units.SI.PressureDifferencedp_compComparison value for dp
Modelica.Units.SI.PressureDifferenceerrIntegration error

Revisions

  • October 22, 2026, by Michael Wetter:
    First implementation.
    This is for Buildings, #4798.