modeldp_idealGas_DPMFLOW

Verification of function dp_idealGas_DP and dp_idealGas_MFLOW

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

Parameters

TypeNameDefaultDescription
Integernsize(dp_nom, 1)
Realp_11.1e5MEASURED pressure at input [Pa]
Real[3]dp_nom{0.5e3, 2e3, 3e3}Nominal pressure loss [Pa]
Real[n]p_2{p_1 - dp_nom[i] for i in 1:n}MEASURED pressure at output [Pa]
Real[n]m_flow_nomones(n)*10Nominal mass flow rate [kg/s]
SI.SpecificHeatCapacityR_s287Specific gas constant of ideal gas
SI.Densityrho_mp_m/(R_s*T_m)Mean density of ideal gas
SI.TemperatureT_m(293 + 293)/2Mean temperature of ideal gas
SI.Pressurep_m(1e5 + 1e5)/2Mean pressure of ideal gas
Generic variables
Realexp2Exponent of pressure loss law

Components

TypeNameDefaultDescription
Real[n]frac_KmToRs{Km[i]/R_s for i in 1:n}
Real[n]Km{R_s*(p_1 - (p_2[i]))/((m_flow_nom[i])^exp/rho_m) for i in 1:n}Coefficient for pressure loss law [(Pa)^2/{(kg/s)^exp*K}]
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.General.dp_idealGas_IN_con[n]m_flow_IN_con
Modelica.Fluid.Dissipation.PressureLoss.General.dp_idealGas_IN_var[n]m_flow_IN_var
Modelica.Fluid.Dissipation.PressureLoss.General.dp_idealGas_IN_con[n]dp_IN_con
Modelica.Fluid.Dissipation.PressureLoss.General.dp_idealGas_IN_var[n]dp_IN_var
Real[n]DP_plot{DP[i] for i in 1:n}Pressure loss [Pa]
Modelica.Blocks.Sources.Rampinput_DP