Name | Description |
---|---|
PressureLoss | Base record for fluid properties for pressure loss |
FluidProperties | Base record for fluid properties |
IdealGas_con | Base record for generic pressure loss function | ideal gas | mean density |
IdealGas_var | Base record for generic pressure loss function | ideal gas | mean density |
NominalDensityViscosity | Base record for generic pressure loss function |
NominalPressureLossLawDensity_con | Base record for generic pressure loss function |
NominalPressureLossLawDensity_var | Base record for generic pressure loss function |
QuadraticVFLOW | Base record for generic pressure loss function | quadratic function (dp=a*Vdot^2 + b*Vdot) |
TwoPhaseFlow_con | Base record for two phase Flow |
TwoPhaseFlow_var | Base record for two phase flow |
IdealGas | Base record for generic pressure loss function | ideal gas | mean density |
NominalPressureLossLawDensity | Base record for generic pressure loss function |
TwoPhaseFlow | base record for two phase Flow |
Type | Name | Default | Description |
---|---|---|---|
Fluid properties | |||
DynamicViscosity | eta | Dynamic viscosity of fluid [Pa.s] | |
Density | rho | Density of fluid [kg/m3] |
record PressureLoss "Base record for fluid properties for pressure loss" extends Modelica.Icons.Record; SI.DynamicViscosity eta "Dynamic viscosity of fluid"; SI.Density rho "Density of fluid"; end PressureLoss;
Type | Name | Default | Description |
---|---|---|---|
Fluid properties | |||
SpecificHeatCapacityAtConstantPressure | cp | Specific heat capacity of fluid at constant pressure [J/(kg.K)] | |
DynamicViscosity | eta | Dynamic viscosity of fluid [Pa.s] | |
ThermalConductivity | lambda | Thermal conductivity of fluid [W/(m.K)] | |
Density | rho | Density of fluid [kg/m3] |
record FluidProperties "Base record for fluid properties" extends Modelica.Icons.Record; SI.SpecificHeatCapacityAtConstantPressure cp "Specific heat capacity of fluid at constant pressure"; SI.DynamicViscosity eta "Dynamic viscosity of fluid"; SI.ThermalConductivity lambda "Thermal conductivity of fluid"; SI.Density rho "Density of fluid"; end FluidProperties;
Type | Name | Default | Description |
---|---|---|---|
Generic variables | |||
Real | exp | 2 | Exponent of pressure loss law |
Real | Km | 6824.86 | Coefficient for pressure loss law [(Pa)^2/{(kg/s)^exp*K}] |
Fluid properties | |||
SpecificHeatCapacity | R_s | Specific gas constant of ideal gas [J/(kg.K)] |
record IdealGas_con "Base record for generic pressure loss function | ideal gas | mean density" extends Modelica.Icons.Record; Real exp=2 "Exponent of pressure loss law"; SI.SpecificHeatCapacity R_s "Specific gas constant of ideal gas"; Real Km=6824.86 "Coefficient for pressure loss law [(Pa)^2/{(kg/s)^exp*K}]"; end IdealGas_con;
Type | Name | Default | Description |
---|---|---|---|
Fluid properties | |||
Density | rho_m | Mean density of ideal gas [kg/m3] | |
Temp_K | T_m | Mean temperature of ideal gas [K] | |
Pressure | p_m | Mean pressure of ideal gas [Pa] |
record IdealGas_var "Base record for generic pressure loss function | ideal gas | mean density" extends Modelica.Icons.Record; SI.Density rho_m "Mean density of ideal gas"; SI.Temp_K T_m "Mean temperature of ideal gas"; SI.Pressure p_m "Mean pressure of ideal gas"; end IdealGas_var;
Type | Name | Default | Description |
---|---|---|---|
Generic variables | |||
Pressure | dp_nom | 2 | Nominal pressure loss (at nominal values of mass flow rate and density) [Pa] |
Real | exp | 2 | Exponent of pressure loss law |
MassFlowRate | m_flow_nom | 1 | Nominal mass flow rate (at nominal values of pressure loss and density) [kg/s] |
Density | rho_nom | Nominal density (at nominal values of mass flow rate and pressure loss) [kg/m3] | |
Real | exp_eta | 1 | Exponent for dynamic viscosity dependence |
DynamicViscosity | eta_nom | Dynamic viscosity at nominal pressure loss [Pa.s] |
record NominalDensityViscosity "Base record for generic pressure loss function" extends Modelica.Icons.Record; SI.Pressure dp_nom=2 "Nominal pressure loss (at nominal values of mass flow rate and density)"; Real exp=2 "Exponent of pressure loss law"; SI.MassFlowRate m_flow_nom=1 "Nominal mass flow rate (at nominal values of pressure loss and density)"; SI.Density rho_nom "Nominal density (at nominal values of mass flow rate and pressure loss)"; Real exp_eta=1 "Exponent for dynamic viscosity dependence"; SI.DynamicViscosity eta_nom "Dynamic viscosity at nominal pressure loss"; end NominalDensityViscosity;
Type | Name | Default | Description |
---|---|---|---|
Generic variables | |||
MassOrVolumeFlowRate | target | Dissipation.Utilities.Types.... | 1 == use nominal mass flow rate | 2 == use nominal volume flow rate |
Area | A_cross | A_cross_nom | Cross sectional area [m2] |
Area | A_cross_nom | Modelica.Constants.pi*0.1^2/4 | Nominal cross sectional area [m2] |
Pressure | dp_nom | 2 | Nominal pressure loss (at nominal values of mass flow rate and density) [Pa] |
MassFlowRate | m_flow_nom | 1 | Nominal mass flow rate (at nominal values of pressure loss and density) [kg/s] |
Real | exp | 2 | Exponent of pressure loss law |
VolumeFlowRate | V_flow_nom | m_flow_nom/rho_nom | Nominal volume flow rate (at nominal values of pressure loss and density) [m3/s] |
Density | rho_nom | Nominal density (at nominal values of mass flow rate and pressure loss) [kg/m3] | |
PressureLossCoefficient | zeta_TOT_nom | 0.02*1/0.1 | Nominal pressure loss coefficient (for nominal values) [1] |
record NominalPressureLossLawDensity_con "Base record for generic pressure loss function" extends Modelica.Icons.Record; //NominalMassFlowRate Modelica.Fluid.Dissipation.Utilities.Types.MassOrVolumeFlowRate target = Dissipation.Utilities.Types.MassOrVolumeFlowRate.MassFlowRate "1 == use nominal mass flow rate | 2 == use nominal volume flow rate"; SI.Area A_cross=A_cross_nom "Cross sectional area"; SI.Area A_cross_nom=Modelica.Constants.pi*0.1^2/4 "Nominal cross sectional area"; SI.Pressure dp_nom=2 "Nominal pressure loss (at nominal values of mass flow rate and density)"; SI.MassFlowRate m_flow_nom=1 "Nominal mass flow rate (at nominal values of pressure loss and density)"; Real exp=2 "Exponent of pressure loss law"; SI.VolumeFlowRate V_flow_nom=m_flow_nom/rho_nom "Nominal volume flow rate (at nominal values of pressure loss and density)"; SI.Density rho_nom "Nominal density (at nominal values of mass flow rate and pressure loss)"; Types.PressureLossCoefficient zeta_TOT_nom=0.02*1/0.1 "Nominal pressure loss coefficient (for nominal values)"; end NominalPressureLossLawDensity_con;
Type | Name | Default | Description |
---|---|---|---|
Generic variables | |||
PressureLossCoefficient | zeta_TOT | 0.2 | Pressure loss coefficient [1] |
record NominalPressureLossLawDensity_var "Base record for generic pressure loss function" extends Modelica.Icons.Record; TYP.PressureLossCoefficient zeta_TOT=0.2 "Pressure loss coefficient"; end NominalPressureLossLawDensity_var;
Type | Name | Default | Description |
---|---|---|---|
Generic variables | |||
Real | a | 15 | Coefficient for quadratic term [(Pa.s2)/m6] |
Real | b | 0 | Coefficient for linear term [(Pa.s)/m3] |
record QuadraticVFLOW "Base record for generic pressure loss function | quadratic function (dp=a*Vdot^2 + b*Vdot)" extends Modelica.Icons.Record; Real a(unit="(Pa.s2)/m6") = 15 "Coefficient for quadratic term"; Real b(unit="(Pa.s)/m3") = 0 "Coefficient for linear term"; end QuadraticVFLOW;
Type | Name | Default | Description |
---|---|---|---|
Geometry | |||
Area | A_cross | PI*0.1^2/4 | Cross sectional area [m2] |
Length | perimeter | PI*0.1 | Wettet perimeter [m] |
Length | length | 1 | Length in fluid flow direction [m] |
record TwoPhaseFlow_con "Base record for two phase Flow" extends Modelica.Icons.Record; SI.Area A_cross=PI*0.1^2/4 "Cross sectional area"; SI.Length perimeter=PI*0.1 "Wettet perimeter"; SI.Length length=1 "Length in fluid flow direction"; end TwoPhaseFlow_con;
Type | Name | Default | Description |
---|---|---|---|
Fluid properties | |||
Density | rho_g | Density of gas [kg/m3] | |
Density | rho_l | Density of liquid [kg/m3] | |
DynamicViscosity | eta_g | Dynamic viscosity of gas [Pa.s] | |
DynamicViscosity | eta_l | Dynamic viscosity of liquid [Pa.s] | |
SurfaceTension | sigma | Surface tension [N/m] | |
Input | |||
Real | x_flow | 0 | Mean mass flow rate quality over length |
record TwoPhaseFlow_var "Base record for two phase flow" extends Modelica.Icons.Record; SI.Density rho_g "Density of gas"; SI.Density rho_l "Density of liquid"; SI.DynamicViscosity eta_g "Dynamic viscosity of gas"; SI.DynamicViscosity eta_l "Dynamic viscosity of liquid"; SI.SurfaceTension sigma "Surface tension"; //input variables Real x_flow=0 "Mean mass flow rate quality over length"; end TwoPhaseFlow_var;
Type | Name | Default | Description |
---|---|---|---|
Generic variables | |||
Real | exp | 2 | Exponent of pressure loss law |
Real | Km | R_s*(2e3)/((10)^exp/rho_m) | Coefficient for pressure loss law [(Pa)^2/{(kg/s)^exp*K}] |
Fluid properties | |||
SpecificHeatCapacity | R_s | Specific gas constant of ideal gas [J/(kg.K)] | |
Density | rho_m | p_m/(R_s*T_m) | Mean density of ideal gas [kg/m3] |
Temp_K | T_m | Mean temperature of ideal gas [K] | |
Pressure | p_m | Mean pressure of ideal gas [Pa] |
record IdealGas "Base record for generic pressure loss function | ideal gas | mean density" extends Modelica.Icons.Record; parameter Real exp(min=Modelica.Constants.eps) = 2 "Exponent of pressure loss law"; parameter SI.SpecificHeatCapacity R_s(min=1) "Specific gas constant of ideal gas"; Real Km(min=Modelica.Constants.eps) = R_s*(2e3)/((10)^exp/rho_m) "Coefficient for pressure loss law [(Pa)^2/{(kg/s)^exp*K}]"; SI.Density rho_m=p_m/(R_s*T_m) "Mean density of ideal gas"; SI.Temp_K T_m "Mean temperature of ideal gas"; SI.Pressure p_m "Mean pressure of ideal gas"; end IdealGas;
Type | Name | Default | Description |
---|---|---|---|
Generic variables | |||
MassOrVolumeFlowRate | target | Dissipation.Utilities.Types.... | 1 == use nominal mass flow rate | 2 == use nominal volume flow rate |
Area | A_cross | A_cross_nom | Cross sectional area [m2] |
Area | A_cross_nom | Modelica.Constants.pi*0.1^2/4 | Nominal cross sectional area [m2] |
Pressure | dp_nom | 2 | Nominal pressure loss (at nominal values of mass flow rate and density) [Pa] |
MassFlowRate | m_flow_nom | 1 | Nominal mass flow rate (at nominal values of pressure loss and density) [kg/s] |
Real | exp | 2 | Exponent of pressure loss law |
VolumeFlowRate | V_flow_nom | m_flow_nom/rho_nom | Nominal volume flow rate (at nominal values of pressure loss and density) [m3/s] |
Density | rho_nom | Nominal density (at nominal values of mass flow rate and pressure loss) [kg/m3] | |
PressureLossCoefficient | zeta_TOT | zeta_TOT_nom | Pressure loss coefficient [1] |
PressureLossCoefficient | zeta_TOT_nom | 0.02*1/0.1 | Nominal pressure loss coefficient (for nominal values) [1] |
record NominalPressureLossLawDensity "Base record for generic pressure loss function" extends Modelica.Icons.Record; //NominalMassFlowRate Modelica.Fluid.Dissipation.Utilities.Types.MassOrVolumeFlowRate target = Dissipation.Utilities.Types.MassOrVolumeFlowRate.MassFlowRate "1 == use nominal mass flow rate | 2 == use nominal volume flow rate"; parameter SI.Area A_cross=A_cross_nom "Cross sectional area"; parameter SI.Area A_cross_nom=Modelica.Constants.pi*0.1^2/4 "Nominal cross sectional area"; parameter SI.Pressure dp_nom(min=Modelica.Constants.eps) = 2 "Nominal pressure loss (at nominal values of mass flow rate and density)"; parameter SI.MassFlowRate m_flow_nom(min=Modelica.Constants.eps) = 1 "Nominal mass flow rate (at nominal values of pressure loss and density)"; parameter Real exp(min=Modelica.Constants.eps) = 2 "Exponent of pressure loss law"; SI.VolumeFlowRate V_flow_nom(min=Modelica.Constants.eps) = m_flow_nom/rho_nom "Nominal volume flow rate (at nominal values of pressure loss and density)"; SI.Density rho_nom(min=Modelica.Constants.eps) "Nominal density (at nominal values of mass flow rate and pressure loss)"; Types.PressureLossCoefficient zeta_TOT=zeta_TOT_nom "Pressure loss coefficient"; parameter Types.PressureLossCoefficient zeta_TOT_nom=0.02*1/0.1 "Nominal pressure loss coefficient (for nominal values)"; end NominalPressureLossLawDensity;
Type | Name | Default | Description |
---|---|---|---|
Fluid properties | |||
Density | rho_l | Density of liquid [kg/m3] | |
Density | rho_g | Density of gas [kg/m3] | |
DynamicViscosity | eta_l | Dynamic viscosity of liquid [Pa.s] | |
DynamicViscosity | eta_g | Dynamic viscosity of gas [Pa.s] | |
MassFraction | x | 0.5 | Vapour fraction [1] |
SurfaceTension | sigma | Surface Tension [N/m] | |
others | |||
Real | n | 0.25 | Exponent in Blasius equation (0.2-0.25) |
record TwoPhaseFlow "base record for two phase Flow" extends Modelica.Icons.Record; SI.Density rho_l "Density of liquid"; SI.Density rho_g "Density of gas"; SI.DynamicViscosity eta_l "Dynamic viscosity of liquid"; SI.DynamicViscosity eta_g "Dynamic viscosity of gas"; SI.MassFraction x=0.5 "Vapour fraction"; SI.SurfaceTension sigma "Surface Tension"; Real n=0.25 "Exponent in Blasius equation (0.2-0.25)"; end TwoPhaseFlow;