modelBasicFlowFunction_dp_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 IDEAS.Fluid.BaseClasses.FlowModels.basicFlowFunction_dp and its first order derivative IDEAS.Fluid.BaseClasses.FlowModels.basicFlowFunction_dp_der. If the derivative implementation is wrong, the simulation will stop with an error.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | gain | 2 | Gain for computing the mass flow rate |
| Real | k | 0.35 | Flow coefficient |
| Modelica.Units.SI.MassFlowRate | m_flow_turbulent | 0.36 | Mass flow rate where transition to turbulent flow occurs |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.MassFlowRate | m_flow | Mass flow rate | |
| Modelica.Units.SI.MassFlowRate | m_flow_comp | Comparison value for m_flow | |
| Modelica.Units.SI.PressureDifference | dp | Pressure drop | |
| Modelica.Units.SI.MassFlowRate | err | Integration 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.