modelMethanatorSystem_L1
Extends from TransiEnt.Producer.Gas.MethanatorSystem.PartialMethanatorSystem.
Information
1. Purpose of model
This represents a simplified version of the model 'MethanatorSystem'.
2. Level of detail, physical effects considered, and physical insight
This model contains no detailed physical equations, but mainly consists of a stoichiometric balance for the methanation process. The methanation process can be defined via the parameter 'conversionFactor_H2' which defines the fraction of input hydrogen, that is methanation. With a conversion factor <1 the product gas also contains H2 and CO2 besides CH4 which represents a physically realistic result.
Calculation of Coolant Heat Flow:
Via the parameteres 'useHeatPort' or 'useFluidCoolantPort' a heat port or two fluid ports can be activated to model the needed coolant heat flow. Only one port at a time can be modeled. When using the fluid ports the output temperature can be defined via the input 'T_set_coolant_out'. This temperature will be limited by the technical feasible temperature. This input needs to be activated via the parameter 'useVariableCoolantOutputTemperature'. If not used the temperature of the coolant will be equal to the technical feasible temperature, in this case defined by the parameter 'T_coolant_out_max_set'.
3. Limits of validity
(no elements)
4. Interfaces
gasPortIn: inlet for real gas
gasPortOut: outlet for real gas
5. Nomenclature
(no elements)
6. Governing Equations
(no elements)
7. Remarks for Usage
Hydrogen has to be the last component in the fluid model.
8. Validation
(no elements)
9. References
(no remarks)
10. Version History
Model created by Oliver Schülting (oliver.schuelting@tuhh.de) in Jul 2019
Model modified by Carsten Bode (c.bode@tuhh.de) in Feb 2021 (made model more general so that it works for other fluids as well)
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.SpecificEnthalpy | NCV (from PartialMethanatorSystem) | TransiEnt.Basics.Functions.GasProperties.getRealGasNCVVector(medium, medium.nc) | NCV of gas components |
| SI.SpecificEnthalpy | GCV (from PartialMethanatorSystem) | TransiEnt.Basics.Functions.GasProperties.getRealGasGCVVector(medium, medium.nc) | GCV of gas component |
| SI.Density | rho_H2 (from PartialMethanatorSystem) | TILMedia.Internals.VLEFluidFunctions.density_pTxi(p_nom[1], T_out_SNG, {0, 0, 0}, vle_sg4.concatVLEFluidName, vle_sg4.nc + TILMedia.Internals.redirectModelicaFormatMessage()) | |
| TransiEnt.Basics.Media.Gases.Gas_VDIWA_SG4_var | gas_sg4 (from PartialMethanatorSystem) | ||
| TransiEnt.Basics.Media.Gases.VLE_VDIWA_SG4_var | vle_sg4 (from PartialMethanatorSystem) | ||
| SI.MolarMass | M_H2O | 18.01528 | |
| SI.MolarMass | M_H2 | 2.01588 | |
| SI.MolarMass | M_CO2 | 44.0095 | |
| SI.MolarMass | M_CH4 | 16.0425 | |
| Integer | idx_CH4 | Modelica.Math.BooleanVectors.firstTrueIndex(Modelica.Utilities.Strings.isEqual(fill("Methane", medium.nc), TransiEnt.Basics.Functions.GasProperties.shortenCompName(medium.vleFluidNames))) | |
| Integer | idx_H2 | Modelica.Math.BooleanVectors.firstTrueIndex(Modelica.Utilities.Strings.isEqual(fill("Hydrogen", medium.nc), TransiEnt.Basics.Functions.GasProperties.shortenCompName(medium.vleFluidNames))) | |
| Integer | idx_CO2 | Modelica.Math.BooleanVectors.firstTrueIndex(Modelica.Utilities.Strings.isEqual(fill("Carbon_Dioxide", medium.nc), TransiEnt.Basics.Functions.GasProperties.shortenCompName(medium.vleFluidNames))) | |
| Integer[:] | idx_otherComp | if idx_CO2 == 0 then TransiEnt.Basics.Functions.findSetDifference(1:medium.nc - 1, {idx_CH4}) else TransiEnt.Basics.Functions.findSetDifference(1:medium.nc - 1, {idx_CH4, idx_CO2}) | |
| Coolant | |||
| Boolean | useFluidCoolantPort (from PartialHeatProvision) | false | choose if fluid port for coolant shall be used |
| Boolean | useHeatPort (from PartialHeatProvision) | false | choose if heat port for coolant shall be used |
| Boolean | externalMassFlowControl (from PartialHeatProvision) | false | choose if coolant mass flow is defined by input |
| Boolean | useVariableCoolantOutputTemperature (from PartialHeatProvision) | false | choose if temperature of cooland output shall be defined by input |
| SI.Temperature | T_out_coolant_target (from PartialHeatProvision) | 500 + 273.15 | output temperature of coolant - will be limited by temperature which is technically feasible |
| Integer | heatLossCalculation (from PartialMethanatorSystem) | 1 | |
| Real | percentageLosses (from PartialMethanatorSystem) | 0.01 | |
| SI.Temperature | T_out_coolant_max_set | 700 + 273.15 | technically feasible limitation for coolant output temperature |
| Fundamental Definitions | |||
| Integer | N_cv (from PartialMethanatorSystem) | 10 | Number of control volumes |
| Nominal Values | |||
| SI.Temperature[N_cv] | T_nom (from PartialMethanatorSystem) | (273.15 + 270)*ones(N_cv) | Nominal gas and catalyst temperature in the control volumes |
| SI.Pressure[N_cv] | p_nom (from PartialMethanatorSystem) | (17e5)*ones(N_cv) | Nominal pressure in the control volumes |
| SI.MassFraction[N_cv,vle_sg4.nc - 1] | xi_nom (from PartialMethanatorSystem) | fill({0.30439, 0.00997376, 0.683929}, N_cv) | Nominal values for mass fractions |
| Integer | scalingOfReactor (from PartialMethanatorSystem) | 2 | Chooce by which value the scaling of the reactor is defined |
| SI.MassFlowRate | m_flow_n_Methane (from PartialMethanatorSystem) | 0.0675008 | Nominal mass flow rate of methane at the outlet |
| SI.MassFlowRate | m_flow_n_Hydrogen (from PartialMethanatorSystem) | 0.0339027 | Nominal mass flow rate of hydrogen at the inlet |
| SI.EnthalpyFlowRate | H_flow_n_Methane (from PartialMethanatorSystem) | 3.375921e6 | Nominal enthalpy flow rate of methane at the output |
| SI.EnthalpyFlowRate | H_flow_n_Hydrogen (from PartialMethanatorSystem) | 4.0673747e6 | Nominal enthalpy flow rate of hydrogen at the input |
| Initialization | |||
| SI.Temperature[N_cv] | T_start (from PartialMethanatorSystem) | (273.15 + 270)*ones(N_cv) | Initial gas and catalyst temperature in the control volumes |
| SI.Pressure[N_cv] | p_start (from PartialMethanatorSystem) | 17e5*ones(N_cv) | Initial pressure in the control volumes |
| SI.MassFraction[N_cv,gas_sg4.nc - 1] | xi_start (from PartialMethanatorSystem) | fill({0.30439, 0.00997376, 0.683929}, N_cv) | Initial values for mass fractions |
| Sources and Sinks | |||
| SI.Temperature | T_co2_source (from PartialMethanatorSystem) | simCenter.T_amb_const | Temperature for CO2 from source |
| SI.Temperature | T_water_source (from PartialMethanatorSystem) | simCenter.T_amb_const | Temperature of water from source |
| SI.Pressure | p_water_sink_hex (from PartialMethanatorSystem) | simCenter.p_amb_const | Pressure of water at sink after HEX |
| SI.Pressure | p_water_sink_dryer (from PartialMethanatorSystem) | simCenter.p_amb_const | Pressure of water at sink after dryer |
| General | |||
| Boolean | useCO2Input (from PartialMethanatorSystem) | false | Use gas port for CO2 for methanation |
| SI.VolumeFraction | hydrogenFraction_fixed (from PartialMethanatorSystem) | 0.1 | target volume fraction of hydrogen |
| Boolean | useVariableHydrogenFraction (from PartialMethanatorSystem) | false | meassured hydrogen fraction for hydrogen-fraction-controller |
| General › General | |||
| TILMedia.VLEFluidTypes.BaseVLEFluid | medium (from PartialMethanatorSystem) | simCenter.gasModel1 | Natural Gas model to be used |
| TILMedia.VLEFluidTypes.BaseVLEFluid | medium_CO2 (from PartialMethanatorSystem) | simCenter.gasModel1 | CO2 model to be used |
| Boolean | integrateMassFlow (from PartialMethanatorSystem) | false | True if mass flow shall be integrated |
| Real | conversionFactor_H2 | if idx_CO2 == 0 then 1 else 0.9889744935 | fraction of hydrogen that is methanated |
| Dryer | |||
| SI.Temperature | T_out_SNG (from PartialMethanatorSystem) | 20 + 273.15 | output temperature of synthetic natural gas after drying |
Connectors
Components
Contents
| Name | Description |
|---|---|