functionpressureLoss_m_flow_staticHead
Return pressure loss dp as function of mass flow rate m_flow, i.e., dp = f(m_flow), due to wall friction and static head
Extends from Modelica.Icons.Function (Icon for functions).
Information
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| SI.MassFlowRate | m_flow | Mass flow rate from port_a to port_b | |
| SI.Density | rho_a | Density at port_a | |
| SI.Density | rho_b | Density at port_b | |
| SI.DynamicViscosity | mu_a | Dynamic viscosity at port_a (dummy if use_mu = false) | |
| SI.DynamicViscosity | mu_b | Dynamic viscosity at port_b (dummy if use_mu = false) | |
| SI.Length | length | Length of pipe | |
| SI.Diameter | diameter | Inner (hydraulic) diameter of pipe | |
| Real | g_times_height_ab | Gravity times (Height(port_b) - Height(port_a)) | |
| SI.Area | crossArea | pi*diameter^2/4 | Inner cross section area |
| Modelica.Fluid.Types.Roughness | roughness | 2.5e-5 | Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false) |
| SI.MassFlowRate | m_flow_small | 0.01 | Regularization of zero flow if |m_flow| < m_flow_small (dummy if use_m_flow_small = false) |
| SI.ReynoldsNumber | Re_turbulent | 4000 | Turbulent flow if Re >= Re_turbulent (dummy if use_Re_turbulent = false) |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Pressure | dp | Pressure loss (dp = port_a.p - port_b.p) |