| m_flow_of_dp_fricCalculate mass flow rate as function of pressure drop due to friction |  | 
| dp_fric | Type: Pressure (Pa) Description: Pressure loss due to friction (dp = port_a.p - port_b.p) | 
|---|---|
| rho_a | Type: Density (kg/m³) Description: Density at port_a | 
| rho_b | Type: Density (kg/m³) Description: Density at port_b | 
| mu_a | Type: DynamicViscosity (Pa·s) Description: Dynamic viscosity at port_a (dummy if use_mu = false) | 
| mu_b | Type: DynamicViscosity (Pa·s) Description: Dynamic viscosity at port_b (dummy if use_mu = false) | 
| length | Type: Length (m) Description: Length of pipe | 
| diameter | Type: Diameter (m) Description: Inner (hydraulic) diameter of pipe | 
| crossArea | Type: Area (m²) Description: Inner cross section area | 
| Re1 | Type: ReynoldsNumber Description: Boundary between laminar regime and transition | 
| Re2 | Type: ReynoldsNumber Description: Boundary between transition and turbulent regime | 
| Delta | Type: Real Description: Relative roughness | 
| m_flow | Type: MassFlowRate (kg/s) Description: Mass flow rate from port_a to port_b | 
|---|---|
| dm_flow_ddp_fric | Type: Real Description: Derivative of mass flow rate with dp_fric |