modeldp_idealGas_DPMFLOW
Verification of function dp_idealGas_DP and dp_idealGas_MFLOW
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | size(dp_nom, 1) | |
| Real | p_1 | 1.1e5 | MEASURED 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_nom | ones(n)*10 | Nominal mass flow rate [kg/s] |
| SI.SpecificHeatCapacity | R_s | 287 | Specific gas constant of ideal gas |
| SI.Density | rho_m | p_m/(R_s*T_m) | Mean density of ideal gas |
| SI.Temperature | T_m | (293 + 293)/2 | Mean temperature of ideal gas |
| SI.Pressure | p_m | (1e5 + 1e5)/2 | Mean pressure of ideal gas |
| Generic variables | |||
| Real | exp | 2 | Exponent of pressure loss law |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| 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_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.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.Ramp | input_DP |