functiondp_fric_of_m_flow
Calculate pressure drop due to friction as function of mass flow rate
Extends from Modelica.Icons.Function (Icon for functions).
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 | |
| SI.Area | crossArea | Inner cross section area | |
| SI.ReynoldsNumber | Re1 | Boundary between laminar regime and transition | |
| SI.ReynoldsNumber | Re2 | Boundary between transition and turbulent regime | |
| Real | Delta | Relative roughness |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Pressure | dp_fric | Pressure loss due to friction (dp_fric = port_a.p - port_b.p - dp_grav) | |
| Real | ddp_fric_dm_flow | Derivative of pressure drop with mass flow rate |
Contents
| Name | Description |
|---|---|
| Interpolation in log-log space using a cubic Hermite polynomial, where x=log10(Re), y=log10(lambda2) |