modelGasStorage_constXi_L1

L1: Model of a simple gas storage volume for constant composition

Extends from Base.PartialGasStorage_L1.

Information

1. Purpose of model

This model is a model for simple gas storage for real gases with constant composition.

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

The specific enthalpies are passed through, there is no energy balance. The pressure is constant.

3. Limits of validity

The model is only valid if pressure and temperature of the gas are not of interest.

4. Interfaces

gasPortIn and gasPortOut: Real gas input and output

5. Nomenclature

(no elements)

6. Governing Equations

Simple total and component mass balances are used.

7. Remarks for Usage

useXiConstParameter can be used to either use the inStream value of gasPortIn or xi_const for the composition.

8. Validation

No validation necessary because only fundamental equations are used.

9. References

(no remarks)

10. Version History

Model created by Carsten Bode (c.bode@tuhh.de), Dec 2018

Parameters

TypeNameDefaultDescription
SI.SpecificEnthalpyNCV (from PartialGasStorage)TransiEnt.Basics.Functions.GasProperties.getRealGasNCVVector(medium, medium.nc)NCV of gas components
SI.SpecificEnthalpyGCV (from PartialGasStorage)TransiEnt.Basics.Functions.GasProperties.getRealGasGCVVector(medium, medium.nc)GCV of gas component
Fundamental Definitions
TILMedia.VLEFluidTypes.BaseVLEFluidmedium (from PartialGasStorage)simCenter.gasModel1Medium in the gas storage
BooleanincludeHeatTransfer (from PartialGasStorage)trueconsider heat transfer
SI.Pressurep_gas_const (from PartialGasStorage_L1)20e5Constant pressure in the storage
BooleanuseXiConstParameterfalsetrue if parameter xi_const shall be used, false if actualStream(gasPortIn.xi_outflow) shall be used
SI.MassFraction[medium.nc - 1]xi_constmedium.xi_defaultConstant composition
Geometry
SI.VolumeV_geo (from PartialGasStorage)1geometric inner volume of the storage cylinder
Initialization
SI.Massm_gas_start (from PartialGasStorage)1e5Initial mass in the storage
Statistics
BooleancalculateCost (from PartialGasStorage)simCenter.calculateCosttrue if cost shall be calculated

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPortIn (from PartialGasStorage)
TransiEnt.Basics.Interfaces.Gas.RealGasPortOutgasPortOut (from PartialGasStorage)
TransiEnt.Basics.Interfaces.General.PressureOutp_gas (from PartialGasStorage)
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheat (from PartialGasStorage)

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter (from PartialGasStorage)
TransiEnt.ModelStatisticsmodelStatistics (from PartialGasStorage)
SI.Massm_gas (from PartialGasStorage)Gas mass
SI.MassFraction[medium.nc - 1]xi_gas (from PartialGasStorage)Gas composition
SI.EnergyFlowRateH_flow_in_NCV (from PartialGasStorage)Inflowing enthalpy flow based on NCV
SI.EnergyFlowRateH_flow_out_NCV (from PartialGasStorage)Inflowing enthalpy flow based on NCV
SI.EnthalpyH_gas_NCV (from PartialGasStorage)Enthalpy of the gas bulk based on NCV
SI.EnergyFlowRateH_flow_in_GCV (from PartialGasStorage)Inflowing enthalpy flow based on GCV
SI.EnergyFlowRateH_flow_out_GCV (from PartialGasStorage)Inflowing enthalpy flow based on GCV
SI.EnthalpyH_gas_GCV (from PartialGasStorage)Enthalpy of the gas bulk based on GCV
Modelica.Thermal.HeatTransfer.Sources.FixedHeatFlowfixedHeatFlow (from PartialGasStorage_L1)
Real[medium.nc]xi_in (from PartialGasStorage_L1)composition at inlet
Real[medium.nc]xi_out (from PartialGasStorage_L1)composition at outlet