Functions to calculate mass flow rate from friction pressure drop and vice versa
Extends from Modelica.Icons.InternalPackage (Icon for an internal package (indicating that the package should not be directly utilized by user)).
Name | Description |
---|---|
m_flow_of_dp_fric | Calculate mass flow rate as function of pressure drop due to friction |
dp_fric_of_m_flow | Calculate pressure drop due to friction as function of mass flow rate |
Calculate mass flow rate as function of pressure drop due to friction
Extends from Modelica.Icons.Function (Icon for functions).
Name | Description |
---|---|
dp_fric | Pressure loss due to friction (dp = port_a.p - port_b.p) [Pa] |
rho_a | Density at port_a [kg/m3] |
rho_b | Density at port_b [kg/m3] |
mu_a | Dynamic viscosity at port_a (dummy if use_mu = false) [Pa.s] |
mu_b | Dynamic viscosity at port_b (dummy if use_mu = false) [Pa.s] |
length | Length of pipe [m] |
diameter | Inner (hydraulic) diameter of pipe [m] |
crossArea | Inner cross section area [m2] |
Re1 | Boundary between laminar regime and transition [1] |
Re2 | Boundary between transition and turbulent regime [1] |
Delta | Relative roughness |
Name | Description |
---|---|
m_flow | Mass flow rate from port_a to port_b [kg/s] |
dm_flow_ddp_fric | Derivative of mass flow rate with dp_fric |
Calculate pressure drop due to friction as function of mass flow rate
Extends from Modelica.Icons.Function (Icon for functions).
Name | Description |
---|---|
m_flow | Mass flow rate from port_a to port_b [kg/s] |
rho_a | Density at port_a [kg/m3] |
rho_b | Density at port_b [kg/m3] |
mu_a | Dynamic viscosity at port_a (dummy if use_mu = false) [Pa.s] |
mu_b | Dynamic viscosity at port_b (dummy if use_mu = false) [Pa.s] |
length | Length of pipe [m] |
diameter | Inner (hydraulic) diameter of pipe [m] |
crossArea | Inner cross section area [m2] |
Re1 | Boundary between laminar regime and transition [1] |
Re2 | Boundary between transition and turbulent regime [1] |
Delta | Relative roughness |
Name | Description |
---|---|
dp_fric | Pressure loss due to friction (dp_fric = port_a.p - port_b.p - dp_grav) [Pa] |
ddp_fric_dm_flow | Derivative of pressure drop with mass flow rate |