functionm_flow_of_dp_fric
Calculate mass flow rate as function of pressure drop due to friction
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Pressure | dp_fric | Pressure loss due to friction (dp = port_a.p - port_b.p) | |
| 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.MassFlowRate | m_flow | Mass flow rate from port_a to port_b | |
| Real | dm_flow_ddp_fric | Derivative of mass flow rate with dp_fric |
Contents
| Name | Description |
|---|---|
| Interpolation in log-log space using a cubic Hermite polynomial, where x=log10(lambda2), y=log10(Re) |