modelBoundaryRealGas_pTx
A real gas boundary defining pressure, temperature, molar composition
Extends from TransiEnt.Basics.Icons.GasSink (Icon for gas sinks).
Information
1. Purpose of model
Boundary for real gases with pressure, temperature and mole fraction input.
2. Level of detail, physical effects considered, and physical insight
(Purely technical component without physical modeling.)
3. Limits of validity
(Purely technical component without physical modeling.)
4. Interfaces
Gas
IdealGasEnthPortIn
Modelica RealInput: pressure in Pa
Modelica RealInput: mole fraction in mol/mol
Modelica RealInput: temperature in K
5. Nomenclature
(no elements)
6. Governing Equations
(no equations)
7. Remarks for Usage
(no remarks)
8. Validation
(no remarks)
9. References
(no remarks)
10. Version History
Created by Lisa Andresen (andresen@tuhh.de), Aug 2015
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Fundamental Definitions | |||
| TILMedia.VLEFluidTypes.BaseVLEFluid | medium | simCenter.gasModel1 | Medium to be used |
| Boolean | calculateMass | false | True if mass in boundary shall be calculated |
| Boolean | calculateH_GCV | false | True if energy related to GCV shall be calculated |
| Boolean | calculateH_NCV | false | True if energy related to NCV shall be calculated |
| Define Variable Boundaries | |||
| Boolean | variable_p | false | True, if pressure defined by variable input |
| Boolean | variable_T | false | True, if temperature defined by variable input |
| Boolean | variable_x | false | True, if composition defined by variable input |
| Constant Boundaries | |||
| SI.AbsolutePressure | p_const | simCenter.p_amb_const + simCenter.p_eff_2 | Constant pressure of source |
| SI.Temperature | T_const | simCenter.T_ground | Constant temperature of source |
| SI.MoleFraction[medium.nc - 1] | x_const | zeros(medium.nc - 1) | Constant molar composition |
| Nominal Values | |||
| SI.Pressure | Delta_p | 0 | Flange pressure drop at nominal mass flow (zero refers to ideal boundary) |
| SI.MassFlowRate | m_flow_nom | 0 | Nominal flange mass flow (zero refers to ideal boundary) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Basics.Interfaces.Gas.RealGasPortIn | gasPort | ||
| TransiEnt.Basics.Interfaces.General.PressureIn | p | p_in | Variable absolute pressure |
| TransiEnt.Basics.Interfaces.General.TemperatureIn | T | T_in | Variable temperature |
| TransiEnt.Basics.Interfaces.General.MoleFractionIn[medium.nc - 1] | x | x_in | Variable molar composition |
| Modelica.Blocks.Interfaces.RealOutput | H_GCV | ||
| Modelica.Blocks.Interfaces.RealOutput | H_NCV |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Mass | m | ||
| SI.MolarMass | M_i | ||
| SI.MolarMass | M | ||
| TransiEnt.SimCenter | simCenter | ||
| Modelica.Blocks.Sources.RealExpression[medium.nc - 1] | xi_actual | ||
| Modelica.Blocks.Math.Product | product | ||
| Modelica.Blocks.Continuous.Integrator | integrator | ||
| Modelica.Blocks.Sources.Constant | zero | ||
| Modelica.Blocks.Sources.RealExpression | MassFlow | ||
| Modelica.Blocks.Sources.RealExpression[medium.nc - 1] | xi_actual2 | ||
| Modelica.Blocks.Math.Product | product1 | ||
| Modelica.Blocks.Continuous.Integrator | integrator1 | ||
| Modelica.Blocks.Sources.Constant | zero1 | ||
| Modelica.Blocks.Sources.RealExpression | Massflow2 |