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

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.MolarMassM_H2O18.01528
SI.MolarMassM_H22.01588
SI.MolarMassM_CO244.0095
SI.MolarMassM_CH416.0425
Integeridx_CH4Modelica.Math.BooleanVectors.firstTrueIndex(Modelica.Utilities.Strings.isEqual(fill("Methane", medium.nc), TransiEnt.Basics.Functions.GasProperties.shortenCompName(medium.vleFluidNames)))
Integeridx_H2Modelica.Math.BooleanVectors.firstTrueIndex(Modelica.Utilities.Strings.isEqual(fill("Hydrogen", medium.nc), TransiEnt.Basics.Functions.GasProperties.shortenCompName(medium.vleFluidNames)))
Integeridx_CO2Modelica.Math.BooleanVectors.firstTrueIndex(Modelica.Utilities.Strings.isEqual(fill("Carbon_Dioxide", medium.nc), TransiEnt.Basics.Functions.GasProperties.shortenCompName(medium.vleFluidNames)))
Integer[:]idx_otherCompif 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
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
SI.TemperatureT_out_coolant_max_set700 + 273.15technically feasible limitation for coolant output temperature
Fundamental Definitions
IntegerN_cv (from PartialMethanatorSystem)10Number 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
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
RealconversionFactor_H2if idx_CO2 == 0 then 1 else 0.9889744935fraction of hydrogen that is methanated
Dryer
SI.TemperatureT_out_SNG (from PartialMethanatorSystem)20 + 273.15output temperature of synthetic natural gas after drying

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.ModelStatisticsmodelStatistics
TransiEnt.Components.Sensors.RealGas.CompositionSensormoleCompIn
Summarysummary
SI.Massmass_SNGtotal produced SNG
SI.MassFlowRatem_flow_bypass
SI.MassFlowRatem_flow_methanator_in_H2
SI.MassFlowRatem_flow_methanator_out
SI.MassFlowRatem_flow_methanator_out_CH4
SI.MassFlowRatem_flow_methanator_out_CO2
SI.MassFlowRatem_flow_methanator_out_H2
SI.MassFlowRatem_flow_methanator_out_H2O
SI.MassFlowRatem_flow_out
SI.MassFraction[medium.nc - 1]composition_methanator_out_dried
SI.MassFraction[medium.nc - 1]composition_out
SI.VolumeFractionx_H2calculated hydrogen volume fraction in output
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_pTxiboundary_pTxi
Modelica.Blocks.Sources.RealExpressionrealExpression
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_Txim_flowSink_CO2
Modelica.Blocks.Sources.RealExpressionrealExpression1
Modelica.Blocks.Sources.RealExpressionrealExpression2
Modelica.Blocks.Sources.RealExpressionrealExpression4
TransiEnt.Basics.Blocks.LimPIDPID
Modelica.Blocks.Sources.RealExpression[medium.nc - 1]realExpression3
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_Txim_flowboundary_Txim_flow1
SI.Efficiencyeta_NCVoverall efficiency of reactor based on NCV
SI.Efficiencyeta_GCVoverall efficiency of reactor based on GCV
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
TransiEnt.Components.Sensors.RealGas.CompositionSensormoleCompOut_Dried
TransiEnt.Producer.Gas.MethanatorSystem.Controller.ControllerCO2ForMethanatorcontrollerCO2ForMethanator
Modelica.Blocks.Math.Gaingain
Modelica.Blocks.Math.GainPID_y
Modelica.Blocks.Sources.RealExpressionrealExpression_one

Contents

NameDescription
Outlineprotected
Summaryprotected