modelRealGasJunction_L2

Volume junction for real gases
Diagram of RealGasJunction_L2

Extends from TransiEnt.Basics.Icons.RealGasJunction_L2 (Icon for real gas junction).

Information

1. Purpose of model

This model represents a junction for real gases. It is a modified version of the model ClaRa.Components.VolumesValvesFittings.Fittings.FlueGasJunction_L2 from ClaRa version 1.3.0. The model is documented there and here only the changes are described.

2. Level of detail, physical effects considered, and physical insight

The two-phase region is deactivated. Pressure losses at the ports have been added. A simplified equation for constant composition can be used to improve simulation speed. Also, a heat port is added with which heat transfer can be integrated. You can choose a quasi-stationary or dynamic mass balance implementations. Additionally, the parameter variableCompositionEntries can be used in case that not all components are freely variable, e.g. when hydrogen is fed into natural gas.

3. Limits of validity

Only valid for real gases without phase change.

4. Interfaces

gasPort1: inlet for gas

gasPort2: inlet for gas

gasPort3: outlet for gas

eye1: outlet

eye2: outlet

heat: heat port

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 Christopher Helbig (christopher.helbig@tuhh.de), Nov 2014

Modified by Lisa Andresen (andresen@tuhh.de), Feb 2015

Edited by Carsten Bode (c.bode@tuhh.de), Apr 2016

Revised by Carsten Bode (c.bode@tuhh.de) in Apr 2018 (updated to new ClaRa version 1.3.0)

Modified by Carsten Bode (c.bode@tuhh.de), Feb 2019 (added temperature start value)

Modified by Carsten Bode (c.bode@tuhh.de), Mar 2019 (added pressure losses)

Modified by Carsten Bode (c.bode@tuhh.de), May 2019 (added simplified equation for constant composition)

Modified by Carsten Bode (c.bode@tuhh.de), Sep 2019 (added heat port)

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
BooleanshowDatatrue|Summary and Visualisation||True, if a data port containing p,T,h,s,m_flow shall be shown, else false
Fundamental Definitions
TILMedia.VLEFluidTypes.BaseVLEFluidmediumsimCenter.gasModel1
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
IntegermassBalance1Mass balance and species balance fomulation
BooleanshowHeatPortfalse
SI.Pressurep_min_assert0Minimum pressure in component below which the simulation terminates
SI.Pressurep_max_assert1000e5Maximum pressure in component above which the simulation terminates
Initial Values
IntegerinitOption0Type of initialisation
BooleanuseHomotopysimCenter.useHomotopyTrue, if homotopy method is used during initialisation
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.MassFractionxi_startmedium.xi_defaultInitial value for mass fractions
ClaRa.Basics.Units.TemperatureT_startsimCenter.T_groundInitial value for gas temperature (used in calculation of h_start)

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPort1
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPort2
TransiEnt.Basics.Interfaces.Gas.RealGasPortOutgasPort3
ClaRa.Basics.Interfaces.EyeOuteye1
ClaRa.Basics.Interfaces.EyeOuteye2
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheat

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter
PressureLoss1pressureLoss1
PressureLoss2pressureLoss2
PressureLoss3pressureLoss3
ClaRa.Basics.Units.MassFraction[medium.nc - 1]xi
Modelica.Units.SI.MassFractionxi_end1 - sum(xi)Last entry of mass fraction
Modelica.Units.SI.SpecificEnthalpyhSpecific enthalpy
ClaRa.Basics.Units.Pressurep
ClaRa.Basics.Units.MassmassGas mass in control volume
Summarysummary

Contents

NameDescription
Summaryprotected
PressureLoss1
PressureLoss2
PressureLoss3