modelFeedInStorageTWVController

Controller to control the three way valve after the electrolyzer to grid and storage

Extends from TransiEnt.Basics.Icons.Controller (Icon for controller).

Information

1. Purpose of model

This is a controller to control the split ratio in a three way valve which splits the mass flow coming from the electrolyzer into the mass flow into the storage and through the bypass around it.

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

(no remarks)

3. Limits of validity

(no remarks)

4. Interfaces

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

m_flow_ely: input for the mass flow coming from the electrolyzer

splitRatio: output for the split ratio of the three way valve

5. Nomenclature

(no elements)

6. Governing Equations

(no remarks)

7. Remarks for Usage

(no remarks)

8. Validation

(no remarks)

9. References

(no remarks)

10. Version History


Model created by Carsten Bode (c.bode@tuhh.de) in April 2016

Parameters

TypeNameDefaultDescription
BooleanStoreAllHydrogenfalseAll Hydrogen is stored before beeing fed in
General › Controller
SI.Pressurep_minLow20e5Lower limit of the target pressure in storage
SI.Pressurep_maxLow29e5Lower limit of the target pressure in storage
SI.Pressurep_maxHigh30e5Upper limit of the target pressure in storage
SI.Pressurep_minHigh60e5if valve closed and p>p_high, open valve
SI.Pressurep_minLow_constantDemand50e5storage can be emptied via 'm_flow_hydrogenDemand_constant' up to 'p_minLow_constantDemand'
SI.MassFlowRatem_flow_hydrogenDemand_constant0constant hydrogen demand if hydrogen is available

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.General.MassFlowRateInm_flow_elyH2 mass flow out of the electrolyser
TransiEnt.Basics.Interfaces.General.MassFlowRateInm_flow_feedInmaximum mass flow that can be fed into the natural gas system
Modelica.Blocks.Interfaces.RealOutputsplitRatiosplit ratio of the three way valve
TransiEnt.Basics.Interfaces.General.PressureInpPressure in storage

Components

TypeNameDefaultDescription
SI.MassFlowRatem_flow_ely_minMinimal mass flow rate limited to eps
BooleanstorageFullhysteresis.ytrue if storage is full
TransiEnt.SimCentersimCenter
Modelica.Blocks.Logical.Hysteresishysteresis
Modelica.Blocks.Sources.RealExpressionrealExpression1
Modelica.Blocks.Logical.Hysteresishysteresis1
Modelica.Blocks.Logical.Switchswitch1
Modelica.Blocks.Sources.RealExpressionrealExpression2
Modelica.Blocks.Math.Gaingain