modelGasStorage_varXi_L1
Extends from Base.PartialGasStorage_L1.
Information
1. Purpose of model
This model is a model for simple gas storage for real gases with variable 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. The parameter variableCompositionEntries can be used in case that not all components are freely variable, e.g. when hydrogen is fed into natural gas. This reduces the number of states.
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
(no remarks)
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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.SpecificEnthalpy | NCV (from PartialGasStorage) | TransiEnt.Basics.Functions.GasProperties.getRealGasNCVVector(medium, medium.nc) | NCV of gas components |
| SI.SpecificEnthalpy | GCV (from PartialGasStorage) | TransiEnt.Basics.Functions.GasProperties.getRealGasGCVVector(medium, medium.nc) | GCV of gas component |
| 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 (from PartialGasStorage) | simCenter.gasModel1 | Medium in the gas storage |
| Boolean | includeHeatTransfer (from PartialGasStorage) | true | consider heat transfer |
| SI.Pressure | p_gas_const (from PartialGasStorage_L1) | 20e5 | Constant pressure in the storage |
| Integer[:] | variableCompositionEntries | {0} | Entries of medium vector which are supposed to be completely variable |
| SI.MassFraction[medium.nc - 1] | xi_nom | medium.xi_default | Constant composition |
| Geometry | |||
| SI.Volume | V_geo (from PartialGasStorage) | 1 | geometric inner volume of the storage cylinder |
| Initialization | |||
| SI.Mass | m_gas_start (from PartialGasStorage) | 1e5 | Initial mass in the storage |
| SI.MassFraction[medium.nc - 1] | xi_gas_start | medium.xi_default | Initial composition in the storage |
| Statistics | |||
| Boolean | calculateCost (from PartialGasStorage) | simCenter.calculateCost | true if cost shall be calculated |
Connectors
Components
| Type | Name | Default | Description |
|---|---|---|---|
| TransiEnt.SimCenter | simCenter (from PartialGasStorage) | ||
| TransiEnt.ModelStatistics | modelStatistics (from PartialGasStorage) | ||
| SI.Mass | m_gas (from PartialGasStorage) | Gas mass | |
| SI.MassFraction[medium.nc - 1] | xi_gas (from PartialGasStorage) | Gas composition | |
| SI.EnergyFlowRate | H_flow_in_NCV (from PartialGasStorage) | Inflowing enthalpy flow based on NCV | |
| SI.EnergyFlowRate | H_flow_out_NCV (from PartialGasStorage) | Inflowing enthalpy flow based on NCV | |
| SI.Enthalpy | H_gas_NCV (from PartialGasStorage) | Enthalpy of the gas bulk based on NCV | |
| SI.EnergyFlowRate | H_flow_in_GCV (from PartialGasStorage) | Inflowing enthalpy flow based on GCV | |
| SI.EnergyFlowRate | H_flow_out_GCV (from PartialGasStorage) | Inflowing enthalpy flow based on GCV | |
| SI.Enthalpy | H_gas_GCV (from PartialGasStorage) | Enthalpy of the gas bulk based on GCV | |
| Modelica.Thermal.HeatTransfer.Sources.FixedHeatFlow | fixedHeatFlow (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 | |
| Modelica.Units.SI.MassFraction | xi_end | 1 - sum(xi_gas) | Last entry of mass fraction |