modeldp_laminar_DPMFLOW

Verification of function dp_laminar_DP AND dp_laminar_MFLOW

Extends from Modelica.Icons.Example (Icon for runnable examples).

Parameters

TypeNameDefaultDescription
Integernsize(K, 1)

Components

TypeNameDefaultDescription
RealMINModelica.Constants.eps
SI.AreaA_crossModelica.Constants.pi*d_hyd^2/4Circular cross sectional area of straight pipe
Modelica.Fluid.Dissipation.Utilities.Types.RoughnessroughnessModelica.Fluid.Dissipation.Utilities.Types.Roughness.ConsideredChoice of considering surface roughness
SI.Diameterd_hyd0.1Hydraulic diameter
SI.Length[1]K{0}Roughness (average height of surface asperities)
SI.LengthL1Length
SI.DynamicViscosityeta1e-3Dynamic viscosity of fluid
SI.Densityrho1000Density of fluid
SI.MassFlowRate[n]input_mdot(Input) mass flow rate (for intended incompressible case)
SI.Pressure[n]input_dpones(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.Rampinput_DP