modeldp_laminar_DPMFLOW
Verification of function dp_laminar_DP AND dp_laminar_MFLOW
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | size(K, 1) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | MIN | Modelica.Constants.eps | |
| SI.Area | A_cross | Modelica.Constants.pi*d_hyd^2/4 | Circular cross sectional area of straight pipe |
| Modelica.Fluid.Dissipation.Utilities.Types.Roughness | roughness | Modelica.Fluid.Dissipation.Utilities.Types.Roughness.Considered | Choice of considering surface roughness |
| SI.Diameter | d_hyd | 0.1 | Hydraulic diameter |
| SI.Length[1] | K | {0} | Roughness (average height of surface asperities) |
| SI.Length | L | 1 | Length |
| SI.DynamicViscosity | eta | 1e-3 | Dynamic viscosity of fluid |
| SI.Density | rho | 1000 | Density of fluid |
| SI.MassFlowRate[n] | input_mdot | (Input) mass flow rate (for intended incompressible case) | |
| SI.Pressure[n] | input_dp | ones(n)*input_DP.y | (Input) pressure loss (for intended compressible case) |
| SI.MassFlowRate[n] | M_FLOW | (Output) mass flow rate (for intended compressible case) | |
| SI.Pressure[n] | DP | {input_dp[i] for i in 1:n} | (Output) pressure loss (for intended incompressible case) |
| Modelica.Fluid.Dissipation.PressureLoss.StraightPipe.dp_laminar_IN_con[n] | m_flow_IN_con | ||
| Modelica.Fluid.Dissipation.PressureLoss.StraightPipe.dp_laminar_IN_var[n] | m_flow_IN_var | ||
| Modelica.Fluid.Dissipation.PressureLoss.StraightPipe.dp_laminar_IN_con[n] | dp_IN_con | ||
| Modelica.Fluid.Dissipation.PressureLoss.StraightPipe.dp_laminar_IN_var[n] | dp_IN_var | ||
| SI.Velocity[n] | velocity | {M_FLOW[i]/(rho*A_cross) for i in 1:n} | Mean velocity |
| SI.ReynoldsNumber[n] | Re | {rho*velocity[i]*d_hyd/eta for i in 1:n} | |
| Real[n] | DP_plot | {DP[i] for i in 1:n} | Pressure loss [Pa] |
| Real[n] | zeta_TOT | {2*abs(DP_plot[i])/max(MIN, rho*(velocity[i])^2) for i in 1:n} | Pressure loss coefficients |
| Real[n] | lambda_FRI | {zeta_TOT[i]*d_hyd/L for i in 1:n} | Frictional resistance coefficient |
| Modelica.Blocks.Sources.Ramp | input_DP |