modelBoundaryIdealGas_pTxi
Gas boundary for ideal gases with p, T, xi as inputs
Extends from TransiEnt.Basics.Icons.GasSource (Icon for gas sources).
Information
1. Purpose of model
Boundary for real gases with pressure, temperature and mass 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: mass fraction in kg/kg
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.GasTypes.BaseGas | gasModel | Medium in the component | |
| 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 mass flow defined by variable input |
| Boolean | variable_T | false | True, if temperature defined by variable input |
| Boolean | variable_xi | false | True, if composition defined by variable input |
| Boolean | verbose | false | Show initial gas compostion in log |
| Constant Boundaries | |||
| SI.AbsolutePressure | p_const | simCenter.p_amb_const + simCenter.p_eff_2 | Constant absolute pressure |
| SI.Temperature | T_const | simCenter.T_ground | Constant temperature of source |
| SI.MassFraction[gasModel.nc - 1] | xi_const | gasModel.xi_default | Constant 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.IdealGasEnthPortIn | 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.MassFractionIn[gasModel.nc - 1] | xi | xi_in | Variable mass composition |
| Modelica.Blocks.Interfaces.RealOutput | H_GCV | ||
| Modelica.Blocks.Interfaces.RealOutput | H_NCV |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.SimCenter | simCenter | ||
| Modelica.Units.SI.Mass | m | ||
| SI.AbsolutePressure | p_in | ||
| SI.Temperature | T_in | ||
| SI.MassFraction[gasModel.nc - 1] | xi_in | ||
| Modelica.Blocks.Sources.RealExpression[gasModel.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[gasModel.nc - 1] | xi_actual2 | ||
| Modelica.Blocks.Math.Product | product1 | ||
| Modelica.Blocks.Continuous.Integrator | integrator1 | ||
| Modelica.Blocks.Sources.Constant | zero1 | ||
| Modelica.Blocks.Sources.RealExpression | Massflow2 |