modelTestPressureLossDerivatives
Test that PressureLoss components can be differentiated
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Diameter | diameter_a | 0.1 | Inner diameter of pipe at port_a |
| SI.Diameter | diameter_b | 0.2 | Inner diameter of pipe at port_b |
| QuadraticTurbulent.LossFactorData | data | QuadraticTurbulent.LossFactorData.suddenExpansion(diameter_a, diameter_b) | Loss factors for both flow directions |
| SI.Pressure | dp_small | 0.1 |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Density | rho_a | ||
| SI.Density | rho_b | ||
| SI.DynamicViscosity | mu_a | ||
| SI.DynamicViscosity | mu_b | ||
| SI.Pressure | dp | ||
| SI.MassFlowRate | m_flow1 | ||
| SI.MassFlowRate | m_flow2 | ||
| Real | der_m_flow1 |