modelRealGasJunction_L2_isoth

Isothermal volume junction 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 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

TypeNameDefaultDescription
Integer[:]dependentCompositionEntriesif 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.BaseVLEFluidmediumsimCenter.gasModel1Medium in the component
SI.TemperatureT_groundsimCenter.T_groundTemperature of the surrounding ground
ClaRa.Basics.Units.Volumevolume0.1Volume of the junction
BooleanconstantCompositionsimCenter.useConstCompInGasCompUse simplified equation for constant composition (xi_nom will be used)
SI.MassFraction[medium.nc - 1]xi_nommedium.xi_defaultConstant composition
Integer[:]variableCompositionEntries{0}Entries of medium vector which are supposed to be completely variable
IntegermassBalancesimCenter.massBalanceGasPipesMass balance and species balance fomulation
Initial Values
ClaRa.Basics.Units.Pressurep_startsimCenter.p_amb_const + simCenter.p_eff_2Initial value for gas pressure
ClaRa.Basics.Units.EnthalpyMassSpecifich_startTILMedia.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_startmedium.xi_defaultInitial value for mass fractions
ClaRa.Basics.Units.TemperatureT_startsimCenter.T_groundInitial value for gas temperature (used in calculation of h_start)
IntegerinitOptionsimCenter.initOptionGasPipesType of initialisation
Summary and Visualisation
BooleanshowDatatrueTrue, if a data port containing p,T,h,s,m_flow shall be shown, else false

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPort1
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPort2
TransiEnt.Basics.Interfaces.Gas.RealGasPortOutgasPort3

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter
TransiEnt.Components.Gas.VolumesValvesFittings.Fittings.RealGasJunction_L2junction
Modelica.Blocks.Sources.RealExpressionrealExpression
Storage.Gas.Base.ConstantHTOuterTemperature_L2ht

Contents

NameDescription
PressureLoss1
PressureLoss2
PressureLoss3