modelRealGasJunction_L2_nPorts_isoth
Isothermal volume junction with n ports for real gases
Extends from TransiEnt.Basics.Icons.RealGasJunction_L2 (Icon for real gas junction).
Information
1. Purpose of model
This model represents an isothermal junction for real gases with n ports with a given surrounding temperature.
2. Level of detail, physical effects considered, and physical insight
(no remarks)
3. Limits of validity
(no remarks)
4. Interfaces
gasPort1: inlet for gas
gasPort2: inlet for gas
gasPort3: outlet for gas
5. Nomenclature
(no elements)
6. Governing Equations
(no remarks)
7. Remarks for Usage
(no remarks)
8. Validation
(no remarks)
9. References
(no remarks)
10. Version History
Created by Carsten Bode (c.bode@tuhh.de), Sep 2019
Modified by Carsten Bode (c.bode@tuhh.de), May 2020 (added quasi-stationary equations and simplified equations for only dependent mass fractions)
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer[:] | dependentCompositionEntries | if variableCompositionEntries[1] == 0 then 1:medium.nc else TransiEnt.Basics.Functions.findSetDifference(1:medium.nc, variableCompositionEntries) | Entries of medium vector which are supposed to be dependent on the variable entries |
| Fundamental Definitions | |||
| TILMedia.VLEFluidTypes.BaseVLEFluid | medium | simCenter.gasModel1 | Medium in the component |
| SI.Temperature | T_ground | simCenter.T_ground | Temperature of the surrounding ground |
| Integer | n_ports | 3 | |
| ClaRa.Basics.Units.Volume | volume | 0.1 | Volume of the junction |
| Boolean | constantComposition | simCenter.useConstCompInGasComp | Use simplified equation for constant composition (xi_nom will be used) |
| SI.MassFraction[medium.nc - 1] | xi_nom | medium.xi_default | Constant composition |
| Integer[:] | variableCompositionEntries | simCenter.variableCompositionEntriesGasPipes | Entries of medium vector which are supposed to be completely variable |
| Integer | massBalance | simCenter.massBalanceGasPipes | Mass balance and species balance fomulation |
| Modelica.Units.SI.MassFlowRate[n_ports] | m_flow_nom | ones(n_ports)*10 | Nominal mass flow rate |
| Modelica.Units.SI.PressureDifference[n_ports] | Delta_p_nom | zeros(n_ports) | Nominal pressure loss at m_flow_nom |
| Initial Values | |||
| ClaRa.Basics.Units.Pressure | p_start | simCenter.p_amb_const + simCenter.p_eff_2 | Initial value for gas pressure |
| ClaRa.Basics.Units.EnthalpyMassSpecific | h_start | TILMedia.Internals.VLEFluidConfigurations.FullyMixtureCompatible.VLEFluidFunctions.specificEnthalpy_pTxi(medium, p_start, T_start, xi_start) | Initial value for gas specific enthalpy |
| ClaRa.Basics.Units.MassFraction[medium.nc - 1] | xi_start | medium.xi_default | Initial value for mass fractions |
| ClaRa.Basics.Units.Temperature | T_start | simCenter.T_ground | Initial value for gas temperature (used in calculation of h_start) |
| Integer | initOption | simCenter.initOptionGasPipes | Type of initialisation |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.Basics.Interfaces.Gas.RealGasPortIn[n_ports] | gasPort |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.SimCenter | simCenter | ||
| TransiEnt.Components.Gas.VolumesValvesFittings.Fittings.RealGasJunction_L2_nPorts | junction | ||
| Modelica.Blocks.Sources.RealExpression | realExpression | ||
| Storage.Gas.Base.ConstantHTOuterTemperature_L2 | ht |