modelMethanatorSystem_L4

Extends from TransiEnt.Producer.Gas.MethanatorSystem.PartialMethanatorSystem.

Information

1. Purpose of model

This model is based on the Methanator model and is basically only expanded by a dryer-model such that the product gas stream has sufficient properties to be fed in the natural gas grid according to DNVGW G 260/262.

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

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. Consider that using the heatPort will allow a simplified simulation of the heat Flow but will neglect the temperature level of the heat.

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

(no elements)

8. Validation

Tested in the check model "TransiEnt.Producer.Gas.MethanatorSystem.Check.Test_MethanatorSystem"

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 April 2018: added H2 bypass, changed medium type of gasPortIn/gasPortOut

Parameters

TypeNameDefaultDescription
SI.SpecificEnthalpyNCV (from PartialMethanatorSystem)TransiEnt.Basics.Functions.GasProperties.getRealGasNCVVector(medium, medium.nc)NCV of gas components
SI.SpecificEnthalpyGCV (from PartialMethanatorSystem)TransiEnt.Basics.Functions.GasProperties.getRealGasGCVVector(medium, medium.nc)GCV of gas component
SI.Densityrho_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_vargas_sg4 (from PartialMethanatorSystem)
TransiEnt.Basics.Media.Gases.VLE_VDIWA_SG4_varvle_sg4 (from PartialMethanatorSystem)
SI.MassFlowRatem_flow_n_CH4if scalingOfReactor == 1 then m_flow_n_Methane elseif scalingOfReactor == 2 then m_flow_n_Hydrogen*2.0422868 elseif scalingOfReactor == 3 then H_flow_n_Methane/50.013e6 elseif scalingOfReactor == 4 then H_flow_n_Hydrogen*0.83/50.013e6 else -99esimiation of nominal mass flow of methanation - else case is error case
Coolant
BooleanuseFluidCoolantPort (from PartialHeatProvision)falsechoose if fluid port for coolant shall be used
BooleanuseHeatPort (from PartialHeatProvision)falsechoose if heat port for coolant shall be used
BooleanexternalMassFlowControl (from PartialHeatProvision)falsechoose if coolant mass flow is defined by input
BooleanuseVariableCoolantOutputTemperature (from PartialHeatProvision)falsechoose if temperature of cooland output shall be defined by input
SI.TemperatureT_out_coolant_target (from PartialHeatProvision)500 + 273.15output temperature of coolant - will be limited by temperature which is technically feasible
IntegerheatLossCalculation (from PartialMethanatorSystem)1
RealpercentageLosses (from PartialMethanatorSystem)0.01
Fundamental Definitions
IntegerN_cv (from PartialMethanatorSystem)10Number of control volumes
SI.Volumevolume_junctionm_flow_n_CH4*2/10.8563966junction of volume
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
IntegerscalingOfReactor (from PartialMethanatorSystem)2Chooce by which value the scaling of the reactor is defined
SI.MassFlowRatem_flow_n_Methane (from PartialMethanatorSystem)0.0675008Nominal mass flow rate of methane at the outlet
SI.MassFlowRatem_flow_n_Hydrogen (from PartialMethanatorSystem)0.0339027Nominal mass flow rate of hydrogen at the inlet
SI.EnthalpyFlowRateH_flow_n_Methane (from PartialMethanatorSystem)3.375921e6Nominal enthalpy flow rate of methane at the output
SI.EnthalpyFlowRateH_flow_n_Hydrogen (from PartialMethanatorSystem)4.0673747e6Nominal 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.TemperatureT_co2_source (from PartialMethanatorSystem)simCenter.T_amb_constTemperature for CO2 from source
SI.TemperatureT_water_source (from PartialMethanatorSystem)simCenter.T_amb_constTemperature of water from source
SI.Pressurep_water_sink_hex (from PartialMethanatorSystem)simCenter.p_amb_constPressure of water at sink after HEX
SI.Pressurep_water_sink_dryer (from PartialMethanatorSystem)simCenter.p_amb_constPressure of water at sink after dryer
General
BooleanuseCO2Input (from PartialMethanatorSystem)falseUse gas port for CO2 for methanation
SI.VolumeFractionhydrogenFraction_fixed (from PartialMethanatorSystem)0.1target volume fraction of hydrogen
BooleanuseVariableHydrogenFraction (from PartialMethanatorSystem)falsemeassured hydrogen fraction for hydrogen-fraction-controller
General › General
TILMedia.VLEFluidTypes.BaseVLEFluidmedium (from PartialMethanatorSystem)simCenter.gasModel1Natural Gas model to be used
TILMedia.VLEFluidTypes.BaseVLEFluidmedium_CO2 (from PartialMethanatorSystem)simCenter.gasModel1CO2 model to be used
BooleanintegrateMassFlow (from PartialMethanatorSystem)falseTrue if mass flow shall be integrated
Dryer
SI.TemperatureT_out_SNG (from PartialMethanatorSystem)20 + 273.15output temperature of synthetic natural gas after drying
Pressure Losses
SI.PressureDifferenceDelta_p_meth0e5Pressure loss in the methanator
SI.PressureDifferenceDelta_p_hEXBeforeMeth0e5Pressure loss in the heat exchanger before the methanator
SI.PressureDifferenceDelta_p_gas_hEXAfterMeth0e5Pressure loss on the gas side in the heat exchanger after the methanator
SI.PressureDifferenceDelta_p_water_hEXAfterMeth0e5Pressure loss on the water side in the heat exchanger after the methanator
SI.PressureDifferenceDelta_p_dryer0e5Pressure loss in the dryer
Initial Values
SI.Pressurep_start_junctionp_start[N_cv]Initial value for gas pressure
SI.TemperatureT_start_junctionT_out_SNGInitial value for gas temperature (used in calculation of h_start)
SI.MassFractionxi_start_junction{xi_start[1, 1]/(1 - xi_start[1, 3]), xi_start[1, 2]/(1 - xi_start[1, 3]), 0}Initial value for mass fractions

Connectors

TypeNameDefaultDescription
Basics.Interfaces.Thermal.FluidPortInfluidPortIn (from PartialHeatProvision)
Basics.Interfaces.Thermal.FluidPortOutfluidPortOut (from PartialHeatProvision)
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_aheat (from PartialHeatProvision)
Basics.Interfaces.General.TemperatureInT_set_coolant_out (from PartialHeatProvision)
Basics.Interfaces.General.MassFlowRateInhydrogenFraction_input (from PartialMethanatorSystem)
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPortIn (from PartialMethanatorSystem)
TransiEnt.Basics.Interfaces.Gas.RealGasPortOutgasPortOut (from PartialMethanatorSystem)
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPortIn_CO2 (from PartialMethanatorSystem)

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter (from PartialHeatProvision)
Components.Boundaries.Heat.Heatflow_L1heatFlow_externalMassFlowControl (from PartialHeatProvision)
Modelica.Blocks.Sources.RealExpressionQ_flow_positive (from PartialHeatProvision)
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowprescribedHeatFlow (from PartialHeatProvision)
Components.Boundaries.Heat.Heatflow_L1_idContrMFlow_tempheatflow_L1_idContrMFlow_temp (from PartialHeatProvision)
Modelica.Blocks.Sources.RealExpressionrealExpression8 (from PartialHeatProvision)
SI.HeatFlowRateQ_flow_heatprovision (from PartialHeatProvision)
SI.TemperatureT_out_coolant (from PartialHeatProvision)min(T_out_coolant_target, T_out_coolant_max)
SI.TemperatureT_out_coolant_max (from PartialHeatProvision)
SI.HeatFlowRateQ_flow (from PartialMethanatorSystem)
SI.HeatFlowRateQ_loss (from PartialMethanatorSystem)Thermal losses to environment
SI.MassFlowRatem_flow_n_Hydrogen_is (from PartialMethanatorSystem)Nominal mass flow rate of hydrogen at the inlet calculated by nominal scaling value
ClaRa.Components.Sensors.SensorVLE_L1_TT_coolant_out (from PartialMethanatorSystem)
ClaRa.Components.Sensors.SensorVLE_L1_TT_coolant_in (from PartialMethanatorSystem)
TransiEnt.Components.Gas.Reactor.Methanator_L4methanator
TransiEnt.Components.Sensors.RealGas.CompositionSensormoleCompIn
Modelica.Thermal.HeatTransfer.Sources.PrescribedTemperatureprescribedTemperature_preheater
TransiEnt.Basics.Adapters.Gas.Ideal_to_Realideal_to_Real
TransiEnt.Basics.Adapters.Gas.Real_to_Idealreal_to_Ideal
TransiEnt.Components.Sensors.RealGas.CompositionSensormoleCompOut_Dried
Modelica.Blocks.Sources.RealExpressionrealExpression
TransiEnt.Components.Gas.VolumesValvesFittings.Valves.ValveDesiredPressureBeforevalve_pBeforeValveDes1
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_Txim_flowSink_CO2
TransiEnt.Components.Gas.GasCleaning.Dryer_L1dryer
TransiEnt.Components.Boundaries.FluidFlow.BoundaryVLE_pTxisink_water
TransiEnt.Components.Gas.HeatExchanger.HEXOneRealGasOuterTIdeal_L1hEXBeforeMeth
TransiEnt.Components.Gas.HeatExchanger.HEXOneRealGasOuterTIdeal_L1hEXOneRealGasOuterTIdeal_L1_1
Modelica.Thermal.HeatTransfer.Sources.PrescribedTemperatureprescribedTemperature_cooler
Modelica.Blocks.Sources.RealExpressionrealExpression1
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_Txim_flowSource_CO2
TransiEnt.Producer.Gas.MethanatorSystem.Controller.ControllerCO2ForMethanatorcontrollerCO2ForMethanator
TransiEnt.Components.Sensors.RealGas.MassFlowSensormassFlowSensor_Hydrogen
TransiEnt.Components.Gas.VolumesValvesFittings.Valves.ThreeWayValveRealGas_L1_simpleTWV
TransiEnt.Components.Gas.VolumesValvesFittings.Fittings.RealGasJunction_L2junction
TransiEnt.Components.Sensors.RealGas.CompositionSensorcompositionSensor
Modelica.Blocks.Sources.RealExpressionrealExpression2
Modelica.Blocks.Sources.RealExpressionrealExpression4
TransiEnt.Basics.Blocks.LimPIDPID
TransiEnt.Basics.Adapters.Gas.RealNG7_to_RealSG4realNG7_SG_to_RealSG4_var
TransiEnt.Basics.Adapters.Gas.RealSG4_to_RealNG7realSG4_var_to_RealNG7_SG
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_Txim_flowSource_smallMassFlow
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_Txim_flowSink_smallMassFlow
Modelica.Blocks.Sources.RealExpressionrealExpression5
Modelica.Blocks.Sources.RealExpressionrealExpression7
Modelica.Blocks.Math.Addadd
Summarysummary
Modelica.Thermal.HeatTransfer.Sources.PrescribedTemperature[N_cv]prescribedTemperature_wasteHeat
Modelica.Blocks.Sources.RealExpression[N_cv]realExpression3
SI.PowerH_flow_in_NCVinflowing enthalpy flow based on NCV
SI.PowerH_flow_out_NCVoutflowing enthalpy flow based on NCV
SI.PowerH_flow_in_GCVinflowing enthalpy flow based on GCV
SI.PowerH_flow_out_GCVoutflowing enthalpy flow based on GCV

Contents

NameDescription
Outlineprotected
Summaryprotected