modelGasStorage_constXi_L2

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

Extends from Base.PartialGasStorage_L2 (Partial model of a simple gas storage volume for real gases).

Information

1. Purpose of model

This model represents a compressed gas storage for real gases with constant composition. It extends Base.PartialGasStorage_L2.

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

The model consists of a volume, in which the gas located. Pressure losses inside the volume and during charging and discharging are neglected. There is no discretisation of the flow field or the heat transfer. The heat transfer is modelled using a replacable heat transfer model, the default model uses a constant heat transfer coefficient.

3. Limits of validity

The model is only valid for negligible pressure losses and negligible changes of the heat transfer coefficient (other heat transfer models can be used) as well as constant compositions. For high pressures there are errors due to errors in the gas models.

4. Interfaces

gasPortIn and gasPortOut: Real gas input and output

heat: heat port for the heat flow into/out of the storage

p_storage: signal output of the gas pressure

5. Nomenclature

(no elements)

6. Governing Equations

Simple mass and energy 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

Validated because this model including heat transfer (UndergroundGasStorageHeatTransfer_L2) is validated.

9. References

(no remarks)

10. Version History

Model created by Carsten Bode (c.bode@tuhh.de) in Apr 2016

Revised by Lisa Andresen (andresen@tuhh.de) in May 2016

Modeli modified by Carsten Bode (c.bode@tuhh.de) in Apr 2021 (added simplifications for composition)

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
SI.Diameterdiameter (from PartialGasStorage_L2)sqrt(4*V_geo/(pi*height))Diameter of storage
SI.AreaA_heat (from PartialGasStorage_L2)pi/2*diameter^2 + pi*diameter*heightSurface area of storage
Fundamental Definitions
TILMedia.VLEFluidTypes.BaseVLEFluidmedium (from PartialGasStorage)simCenter.gasModel1Medium in the gas storage
BooleanincludeHeatTransfer (from PartialGasStorage)trueconsider heat transfer
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
SI.Heightheight (from PartialGasStorage_L2)3.779*V_geo^(1/3)Height of storage
Initialization
SI.Massm_gas_start (from PartialGasStorage)1e5Initial mass in the storage
Booleanstart_pressure (from PartialGasStorage_L2)truetrue if a start pressure is defined, false if a start mass is defined
SI.Pressurep_gas_start (from PartialGasStorage_L2)1e5pressure in storage at t=0
SI.ThermodynamicTemperatureT_gas_start (from PartialGasStorage_L2)283.15Temperature of gas in storage at t=0
Statistics
BooleancalculateCost (from PartialGasStorage)simCenter.calculateCosttrue if cost shall be calculated
TransiEnt.Basics.Units.MonetaryUnitPerEnergyCspec_demAndRev_elsimCenter.Cspec_demAndRev_freeSpecific cost per electric energy for start gas generation
SI.Efficiencyeta_ely0.75Electrolyzer efficiency with which the start gas is produced
SI.Pressurep_max200e5Maximum pressure in storage

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
HeatTransferheatTransfer (from PartialGasStorage_L2)
Summarysummary

Contents

NameDescription
Outlineprotected
Summaryprotected