modelBasicFlowFunction_m_flow_DerivativeCheck

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

Extends from Modelica.Icons.Example.

Information

This model validates the implementation of IBPSA.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow and its first order derivative IBPSA.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow_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.SIunits.MassFlowRatem_flow_turbulent0.36Mass flow rate where transition to turbulent flow occurs

Components

TypeNameDefaultDescription
Modelica.SIunits.MassFlowRatem_flowMass flow rate
Modelica.SIunits.PressureDifferencedpPressure drop
Modelica.SIunits.PressureDifferencedp_compComparison value for dp
Modelica.SIunits.PressureDifferenceerrIntegration error

Revisions

  • January 22, 2016, by Michael Wetter:
    Corrected type declaration of pressure difference. This is for #404.
  • July 29, 2015, by Michael Wetter:
    First implementation.