modelFeedInStation_Methanation

Extends from TransiEnt.Producer.Gas.Electrolyzer.Base.PartialFeedInStation.

Information

1. Purpose of model

This model represents a feed in station where hydrogen is produced with an electrolyzer and methanated in a methanator to be fed in into a natural gas grid.

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

The hydrogen can be produced in an electrolyzer and be stored if desired. Herefore one of the FeedInSystems with an electrolzer can be chosen.

The methanation of hydrogen takes place after the hydrogen production and the possible storage.

The methanation can be avoided by a bypass. This bypass is is controlled by the output molar content of hydrogen which can be defined by the parameter 'hydrogenContentOutput'. If this parameter is set to '1' all hydrogen is bypassed. If the parameter is set to '0' all hydrogen is methanated. The bypass fraction is controlled via a PID-controller whereby the set value is equal to 'hydrogenContentOutput'. if 'useVariableHydrogenFraction'=false the meassurement-signal is equal to the volumetric hydrogen fraction at the output. If 'useVariableHydrogenFraction'=true the meassurement-signal is equal to the input value 'hydrogenFraction_input'. This allows defining the hydrogen fraction in the SNG depending of the hydrogen fraction in an outer gas grid.

Consider that the output of the methanator still contains hydrogen such that an actual molar hydrogen content of '0' can not be achieved.

Via the parameter 'useSeperateHydrogenOutput' an additional hydrogen output can be activated. The gas of this output is not methanated before and can be controlled via the input m_flow_feedIn_H2.

Via parameter 'useLeakageMassFlow' a small mass flow of 'simCenter.m_flow_small' is always flowing out of gas ports (to avoid Zero-Mass-Flow problems)

3. Limits of validity

see sub models

4. Interfaces

P_el_set: input for the set value for the electric power

m_flow_feedIn: input for the possible feed-in mass flow into the natural grid etc.

m_flow_feedIn_H2: input for the possible feed-in mass flow of Hydrogen into the natural grid etc.

epp: electric power port for the electrolyzer

gasPortOut: outlet of SNG

gasPortOut_H2: outlet of hydrogen

5. Nomenclature

(no elements)

6. Governing Equations

(no remarks)

7. Remarks for Usage

For start up, a small hydrogen mass flow for the electrolyzer can be set to allow for simpler initialisation.

If useMassFlowControl=true, the electrical power of the electrolyzer will no more be limited by given m_flow_feed. This simplifies the controller if limitation is not needed. useMassFlowControl=false should only be used if feedInStation_Hydrogen has no hydrogen storage and the parameter useMassFlowControl is set to 'false' in feedInStation_Hydrogen as well.

8. Validation

Tested in check model TransiEnt.Producer.Gas.MethanatorSystem.Check.Test FeedInStation_Methanator

9. References

(no remarks)

10. Version History


Model created by Oliver Schülting (oliver.schuelting@tuhh.de) in Feb 2018

Model modified by Oliver Schülting (oliver.schuelting@tuhh.de) in Jul 2018: added conditional separate hydrogen port

Model modified by Oliver Schülting (oliver.schuelting@tuhh.de) in Nov 2018: TWV for Hydrogen output is controled without PID now for faster simulation results. useLeakageMassFlow added

Model modified by Oliver Schülting (oliver.schuelting@tuhh.de) in April 2019: added Boolean useMassFlowControl

Model modified by Carsten Bode (c.bode@tuhh.de), Feb 2021 (added separate medium models for CO2 and H2/SNG)

Parameters

TypeNameDefaultDescription
General
BooleanusePowerPort (from PartialFeedInStation)trueTrue if power port shall be used
RealhydrogenFraction_fixed0Target fraction of hydrogen in ouput
BooleanuseSeperateHydrogenOutputfalseUse additional gas port for hydrogen only
BooleanuseVariableHydrogenFractionfalsemeassured hydrogen fraction for hydrogen-fraction-controller
BooleanuseMassFlowControltruechoose if output of FeedInStation is limited by m_flow_feedIn - if 'false': m_flow_feedIn has no effect - should only be 'false' if feedInStation_Hydrogen has no storage and useMassFlowControl='false' in feedInStation_Hydrogen as well
BooleanuseCO2InputfalseUse gas port for CO2 for methanation
General › General
TILMedia.VLEFluidTypes.BaseVLEFluidmediumsimCenter.gasModel1Natural Gas model to be used
TILMedia.VLEFluidTypes.BaseVLEFluidmedium_CO2simCenter.gasModel1CO2 model to be used
Methanation › Nominal Values
SI.Temperature[N_cv]T_nom(273.15 + 270)*ones(N_cv)Nominal gas and catalyst temperature in the control volumes
SI.Pressure[N_cv]p_nom(17e5)*ones(N_cv)Nominal pressure in the control volumes
SI.MassFraction[N_cv,vle_sg4.nc - 1]xi_nomfill({0.296831, 0.0304503, 0.666944}, N_cv)Nominal values for mass fractions
IntegerscalingOfReactor2Chooce by which value the scaling of the reactor is defined
SI.MassFlowRatem_flow_n_Methane0.0675008Nominal mass flow rate of methane at the outlet
SI.MassFlowRatem_flow_n_Hydrogen0.0339027Nominal mass flow rate of hydrogen at the inlet
SI.EnthalpyFlowRateH_flow_n_Methane3.375921e6Nominal enthalpy flow rate of methane at the output
SI.EnthalpyFlowRateH_flow_n_Hydrogen4.0673747e6Nominal enthalpy flow rate of hydrogen at the input
Methanation › Fundamental Definitions
IntegerN_cv10Number of control volumes
SI.TemperatureT_out_SNG273.15 + 20Temperature of Synthetic Natural Gas after drying
Methanation › Coolant
IntegerheatLossCalculation1
RealpercentageLosses0.01
Methanation › Initialization
SI.Temperature[N_cv]T_start503.15*ones(N_cv)Initial gas and catalyst temperature in the control volumes
SI.Pressure[N_cv]p_start17e5*ones(N_cv)Initial pressure in the control volumes
SI.MassFraction[N_cv,gas_sg4.nc - 1]xi_startfill({0.296831, 0.0304503, 0.666944}, N_cv)Initial values for mass fractions
Numerical Stability
BooleanuseLeakageMassFlowfalseConstant leakage gas mass flow of 'm_flow_small' to avoid zero mass flow
SI.MassFlowRatem_flow_smallsimCenter.m_flow_smallleakage mass flow if useLeakageMassFlow=true
Coolant
BooleanuseFluidCoolantPortfalsechoose if fluid port for coolant shall be used
BooleanuseHeatPortfalsechoose if heat port for coolant shall be used
BooleanuseVariableCoolantOutputTemperaturefalsechoose if temperature of cooland output shall be defined by input
SI.TemperatureT_out_coolant_target500 + 273.15output temperature of coolant - will be limited by temperature which is technically feasible
BooleanexternalMassFlowControlfalsechoose if coolant mass flow is defined by input
IntegerchooseHeatSources1

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.General.MassFlowRateInm_flow_feedIn (from PartialFeedInStation)Mass flow rate input
TransiEnt.Basics.Interfaces.Electrical.ElectricPowerInP_el_set (from PartialFeedInStation)Electric power input
TransiEnt.Basics.Interfaces.Gas.RealGasPortOutgasPortOut (from PartialFeedInStation)
TransiEnt.Basics.Interfaces.Electrical.ActivePowerPortepp (from PartialFeedInStation)
TransiEnt.Basics.Interfaces.Gas.RealGasPortOutgasPortOut_H2
TransiEnt.Basics.Interfaces.General.MassFlowRateInm_flow_feedIn_H2
Modelica.Blocks.Interfaces.RealInputhydrogenFraction_input
Basics.Interfaces.Thermal.FluidPortInfluidPortIn
Basics.Interfaces.Thermal.FluidPortOutfluidPortOut
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPortIn_CO2
Basics.Interfaces.General.TemperatureInT_set_coolant_out
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheat

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter (from PartialFeedInStation)
TransiEnt.Producer.Gas.Electrolyzer.Systems.FeedInStation_woStoragefeedInStation_Hydrogen
TransiEnt.Producer.Gas.MethanatorSystem.Controller.MassFlowFeedInSystemControllermassFlowFeedInSystemController
TransiEnt.Components.Sensors.RealGas.CompositionSensorcompositionSensor
TransiEnt.Basics.Media.Gases.VLE_VDIWA_SG4_varvle_sg4
TransiEnt.Basics.Media.Gases.Gas_VDIWA_SG4_vargas_sg4
TILMedia.Internals.VLEFluidConfigurations.FullyMixtureCompatible.VLEFluid_phgasOut
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_Txim_flowboundary_Txim_flow1
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_Txim_flowboundary_Txim_flow2
Summarysummary
TransiEnt.Components.Gas.VolumesValvesFittings.Valves.ThreeWayValveRealGas_L1_simpleTWV1
TransiEnt.Components.Sensors.RealGas.MassFlowSensormassFlowSensor_SNG1
Modelica.Blocks.Sources.RealExpressionrealExpression1
Modelica.Blocks.Sources.RealExpressionZero
MethanatorSystem_L4methanation

Contents

NameDescription
Outlineprotected
Summaryprotected