functionDarcyFriction
Extends from Modelica.Icons.Function.
Information
Function calculating Darcy friction factor lambda as f(m_flow, D_h, Delta, rho, mu, Re1, Re2), where:
- m_flow: mass flow rate [kg/s]
- D_h: hydraulic diameter [m]
- Delta: relative roughness [m/m]
- rho: density [kg/m^3]
- mu: dynamic viscosity [Pa.s]
- Re1: lower Reynolds Number boundary for laminar-turbulent transition flow regime [-]
- Re2: upper Reynolds Number boundary for laminar-turbulent transition flow regime [-]
The function is extracted from dp_fric_of_m_flow.
[P. Jordan; HTWG Konstanz; 01/24]
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| SI.MassFlowRate | m_flow | Mass flow rate | |
| SI.Length | D_h | Hydraulic diameter | |
| SI.Length | Delta | Relaitiv roughness | |
| SI.Density | rho | Inlet density | |
| SI.DynamicViscosity | mu | Dynamic viscosity | |
| SI.ReynoldsNumber | Re1 | Lower boundary Re for laminar-turbulent transition regime | |
| Real | Re2 | Upper boundary Re for laminar-turbulent transition regime |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Internal.Types.DarcyFrictionFactor | lambda | Darcy friction factor |
Contents
| Name | Description |
|---|---|
| interpolateInRegion2protected | Interpolation in log-log space using a cubic Hermite polynomial, where x=log10(Re), y=log10(lambda2) |