functionpressureLoss_m_flow_and_Re
Extends from Modelica.Icons.Function (Icon for functions).
Information
Compute pressure drop from constant loss factor and mass flow rate (dp = f(m_flow)). If the Reynolds-number Re ≥ data.Re_turbulent, the flow is treated as a turbulent flow with constant loss factor zeta. If the Reynolds-number Re < data.Re_turbulent, the flow is laminar and/or in a transition region between laminar and turbulent. This region is approximated by two polynomials of third order, one polynomial for m_flow ≥ 0 and one for m_flow < 0. The common derivative of the two polynomials at Re = 0 is computed from the equation "data.c0/Re".
If no data for c0 is available, the derivative at Re = 0 is computed in such a way, that the second derivatives of the two polynomials are identical at Re = 0. The polynomials are constructed, such that they smoothly touch the characteristic curves in the turbulent regions. The whole characteristic is therefore continuous and has a finite, continuous first derivative everywhere. In some cases, the constructed polynomials would "vibrate". This is avoided by reducing the derivative at Re=0 in such a way that the polynomials are guaranteed to be monotonically increasing. The used sufficient criteria for monotonicity follows from:
- Fritsch F.N. and Carlson R.E. (1980):
- Monotone piecewise cubic interpolation. SIAM J. Numerc. Anal., Vol. 17, No. 2, April 1980, pp. 238-246
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| SI.MassFlowRate | m_flow | Mass flow rate from port_a to port_b | |
| SI.Density | d_a | Density at port_a | |
| SI.Density | d_b | Density at port_b | |
| SI.DynamicViscosity | eta_a | Dynamic viscosity at port_a | |
| SI.DynamicViscosity | eta_b | Dynamic viscosity at port_b | |
| LossFactorData | data | Constant loss factors for both flow directions |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Pressure | dp | Pressure drop (dp = port_a.p - port_b.p) |