modelTestPressureLossDerivatives

Test that PressureLoss components can be differentiated

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

Information

Parameters

TypeNameDefaultDescription
SI.Diameterdiameter_a0.1Inner diameter of pipe at port_a
SI.Diameterdiameter_b0.2Inner diameter of pipe at port_b
QuadraticTurbulent.LossFactorDatadataQuadraticTurbulent.LossFactorData.suddenExpansion(diameter_a, diameter_b)Loss factors for both flow directions
SI.Pressuredp_small0.1

Components

TypeNameDefaultDescription
SI.Densityrho_a
SI.Densityrho_b
SI.DynamicViscositymu_a
SI.DynamicViscositymu_b
SI.Pressuredp
SI.MassFlowRatem_flow1
SI.MassFlowRatem_flow2
Realder_m_flow1