원시데이터 수집 시스템
선정목록으로

Modeling and Simulation of the Hydrogen Value Chain with ThermoSysPro and Modelica

간접 관련 수소연료전지 · (7) MEA(막전극접합체) (5) 연료전지용 수분제어장치(가습기)(6) PEM(고분자전해질막)

기본 정보

저자
  1. Sebastian Vallejo Jimenez — ENSTA Paris, France,
  2. Luis Corona Mesa-Moles — EDF R&D, France,
  3. Damien Faille — EDF R&D, France,
  4. Dina Irofti — EDF R&D, France,
DOI
10.3384/ecp204229
저널
Linköping electronic conference proceedings
발행년도
2023
발행기관
Linköping University Electronic Press
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3384/ecp204229
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W4392668177

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(5) 연료전지용 수분제어장치(가습기), (6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.80
근거 용어
hydrogen value chain, electrolyzer, Modelica, simulation, hydrogen production
판단 근거
이 논문은 수소 생산(수전해), 저장, 소비를 포함한 수소 밸류체인 전체를 Modelica 라이브러리를 통해 모델링하고 시뮬레이션하는 방법을 다룹니다. 코오롱인더스트리의 직접적인 제품인 PEMFC(5, 6, 7) 소재 자체를 연구하는 것은 아니지만, 수소 시스템의 설계 및 진단 단계에서 활용 가능한 시스템 레벨의 모델링 기법을 제시하고 있습니다.
R&D 활용 포인트
수소 연료전지 시스템의 전체적인 에너지 효율 및 동적 거동을 예측하기 위한 시스템 시뮬레이션 모델링 기술로 활용 가능합니다.
평가 입력
본문 53,335자 중 30,032자 발췌

초록

Hydrogen will play a key role in the global energy transition if we are able to produce it with low-carbon emissions. However, clean hydrogen production today is mostly limited to demonstration projects ranging from 2 up to 20 MW. Modeling the way low-carbon hydrogen is produced, stored and used will allow us to significantly improve our understanding of how clean hydrogen could be produced and thus increase the production efficiency. In this paper, we show that the newest version of ThermoSysPro (TSP), an open-source Modelica library for modeling energy systems, provides a suitable framework to model and simulate the hydrogen production, storage and consumption. The model presented in this paper contains three electrolyzers, a storage station and a vehicle station. We present how the model was built, which components were adapted and how, and show that its simulation can be useful in the design phase, as well as for diagnosis purposes.

본문 53,335자

본문 펼치기
# Modeling and Simulation of the Hydrogen Value Chain with ThermoSysPro and Modelica Sebastian Vallejo Jimenez <sup>1</sup> Luis Corona Mesa-Moles <sup>2</sup> Damien Faille <sup>2</sup> Dina Irofti <sup>2</sup> 1ENSTA Paris, France, sebastian.vallejo-jimenez@ensta-paris.fr 2EDF R&D, France, {luis.corona-mesa-moles, damien.faille, dina.irofti}@edf.fr ### Abstract Hydrogen will play a key role in the global energy transition if we are able to produce it with low-carbon emissions. However, clean hydrogen production today is mostly limited to demonstration projects ranging from 2 up to 20 MW. Modeling the way low-carbon hydrogen is produced, stored and used will allow us to significantly improve our understanding of how clean hydrogen could be produced and thus increase the production efficiency. In this paper, we show that the newest version of ThermoSysPro (TSP), an open-source Modelica library for modeling energy systems, provides a suitable framework to model and simulate the hydrogen production, storage and consumption. The model presented in this paper contains three electrolyzers, a storage station and a vehicle station. We present how the model was built, which components were adapted and how, and show that its simulation can be useful in the design phase, as well as for diagnosis purposes. In the future, a complete validation of these developments will be performed when experimental data is publicly available. _Keywords:_ _Modelica,_ _ThermoSysPro,_ _Hydrogen,_ _Real_ _gas, Equation Of State_ ### 1 Introduction The global energy system is undergoing major changes, (International Energy Agency 2022b). This transformation aims mostly at reducing the oil and other fossil fuels dependency in order to cut as much as possible _CO_ 2 emissions and thus the consequences of global warming. In this context, hydrogen plays a crucial role in accelerating this energy transition by allowing the decarbonisation of key sectors like industry, aviation, shipping or heavy-duty transport, (International Energy Agency 2022a; _Green hy-_ _drogen cost reduction_ 2020). Hydrogen has already been identified as indispensable in the strategy to build a climate-neutral Europe (European Commission 2020). However, it is still mostly produced with natural gas, which represents 96% of the total production (European Commission 2023). For this reason, and in order to accomplish the ambitious climate objectives, it is extremely important to develop technologies able of producing clean hydrogen (i.e. with no or low _CO_ 2 emissions) at a large scale and in a competitive way. To successfully develop these hydrogen related technologies and integrate them in the future energy mix, the development of flexible and adequate modeling tools is also fundamental. This will allow to contribute and accelerate the ongoing energy transition. Hydrogen based systems can be modeled with different types of modeling tools. Without attempting to be exhaustive, in the literature it is possible to find Matlab (Khan and Iqbal 2005; Eriksson and Gray 2017; Bhuyan, Hota, and Panda 2018), Python (Kuroki et al. 2021) and Modelica (Migoni et al. 2016) based models. These models aim at representing different aspects of a hydrogen based system (electrolyzers, vehicle hydrogen fueling, storage, etc.) and for different purposes (optimization of the management of hydrogen based technologies, better understanding of the physical behavior of such systems, etc.). Hydrogen based systems usually require different types of physics to be described and this is why the Modelica language can be suitable to describe such systems. In particular, it can be interesting to adapt existing Modelica libraries that have already shown relevant and trustful results in similar domains. This is the case of the ThermoSysPro (TSP) library <sup>1</sup> (El Hefni and Bouskela 2019), an open-source Modelica library developed by EDF R&D <sup>2</sup>, which has already been used to successfully model other energy systems such as power plants, industrial processes, energy conversion systems etc. (El Hefni and Bouskela 2017). To achieve these results, different physics are already available in TSP such as thermalhydraulics, combustion, solar radiation and neutronics. In addition, to these already existing features, the latest version of ThermoSysPro <sup>3</sup>, the so-called V4, allows to easily modify the fluid considered for modeling in addition of giving the possibility to handle efficiently zero-mass flowrates configurations (based on the principles explained in (Bouskela and El Hefni 2014b). For the reasons previously mentioned, the ThermoSysPro library appears as suitable starting point to model and simulate hydrogen based systems. 1https://thermosyspro.com 2ThermoSysPro is compatible with OpenModelica and many organizations and individuals use currently ThermoSysPro around the world to model different types of energy systems. 3ThermoSysPro is freely available here: https://github. com/ThermoSysPro/ThermoSysPro. DOI Proceedings of the Modelica Conference 2023 229 <u>Modeling</u> <u>and</u> <u>Simulation</u> <u>of</u> <u>the</u> <u>Hydrogen</u> <u>Value</u> <u>Chain</u> <u>with</u> <u>ThermoSysPro</u> <u>and</u> <u>Modelica</u> The goal of this paper is therefore to expose and show how the latest version of the ThermoSysPro library has been adapted to efficiently model and simulate hydrogen based systems that already exist or that are going to exist in the future. To illustrate the modification of ThermoSysPro previously described, this paper focus on the modeling and simulation of a low-carbon hydrogen platform in which the whole value chain of hydrogen is considered (production, storage and distribution, and consumption/application (TÜV SÜD 2023)). This paper is structured as follows. Section 2 describes the model considered in this study as well as the equations implemented in the new developed modules. Section 3 presents the construction of the model as well as the simulations performed with this model. Finally, section 4 presents the discussion as well as the future work that can be initiated with the promising results presented in this paper. ### 2 Model Description and Equations In this section, the proposed low-carbon hydrogen platform is presented as well as the components that constitute a library dedicated to hydrogen which is compatible with ThermoSysPro. As mentioned previously, TSP is already available and thus provides certain advantages like the possibility of reusing some of its components in this hydrogen platform. 2.1 Gas Plate Scheme The proposed platform is denominated Gas Plate and it serves to connect the components of the system. Such components include mainly, as seen in the simplified model scheme on Figure 1, electrolyzers and a set of blocks as valves, compressors and heat exchangers to compose two branches: Storage and Station, each representing one of the considered final applications. First of all, the block corresponding to the electrolyzer allows to estimate hydrogen production through water electrolysis at given conditions. Such hydrogen gas will then go through a check valve, ensuring one-directional flow in the platform. Afterwards a compressor and a heat exchanger block will allow to reach the desired conditions in terms of temperature and pressure depending on each final use: either storing it directly or manipulating it in a filling station. Finally, to ensure the correct flow of hydrogen, a control valve will be used for each one of these so-called branches. Figure 1. Case study model 2.2 Notations _Cp_ _kgKJ_ Isobaric heat capacity 4From now on referred as PR-EOS _<u>m</u>_ <sup>4</sup> _Cv_ _sN_ <sup>5</sup> Flow coefficient _CV_ _kgKJ_ Isochoric heat capacity _CV_ <sup>0</sup> _kgKJ_ Ideal gas isochoric heat capacity _CV_ <sup>0</sup> _kgKJ_ Ideal gas isochoric heat capacity ∆ _rg_ <sup>0</sup> _molJ_ Reference specific Gibbs free energy difference for the reaction ∆ _rh_ <sup>0</sup> _molJ_ Difference in specific enthalpy of reference for the reaction ∆ _TLM_ _K_, °C Logarithmic mean temperature difference _η_ - Energy efficiency _η_ _f_ - Faraday efficiency _ηis,comp_ - Isentropic compression efficiency _F_ 96485 _mol_ <sup>_<u>C</u>_</sup> Faraday constant _h_ _kgJ_ Specific enthalpy _I_ _A_ Current _m_ ˙ _<u>kgs</u>_ Mass flow rate _V_ _m_ ˙ _<u>kgs</u>_ Mass flow rate _LHVH_ 2 _kgJ_ _LHVH_ 2 _kgJ_ Low Heat Value for hydrogen _P_ _bar_, _Pa_ Absolute pressure _Pc_ _bar_, _Pa_ Critical pressure _PvH_ 2 _O_ _bar_, _Pa_ Vapor pressure _R_ 8 _._ 31 _molKJ_ Ideal gas constant _s_ _kgJ_ Specific entropy _T_ _K_, °C Temperature _Tc_ _K_, °C Critical temperature _Tr_ - Reduced temperature _u_ _kgJ_ Specific internal energy _U_ _<u>W</u>_ Overall heat transfer coefficient _m_ <sup>2</sup> _K_ _Uact_ V Activation over-potential _Ucell_ V Cell voltage _Ures_ V Resistive over-voltage _Urev_ V Reversible voltage := ∆ _Eeq_ _µJT_ _barK_ Joule-Thomson coefficient _<u>m</u>_ <sup>3</sup> _v_ _mol_ Molar volume _ω_ - Acentric factor 2.3 Pure Real Gas Properties The hydrogen platform operates at a pressure ranging from a few decades to several hundred bars. At high pressure, the ideal gas assumption is not precise enough and the use of an Equation of State for real gas is preferable. The so-called Peng-Robinson Equation of State (Equation 1) <sup>4</sup> can be found in the classical literature of thermodynamics and process engineering (Zohuri 2018): _P_ = _v_ <sup>_<u>RT</u>_</sup> _−_ _b_ <sup>_−_</sup> _v_ <sup>2</sup> + 2 _<u>αbva</u>_ _−_ _b_ <sup>2</sup> (1) _<u>c</u>_ _a_ = 0 _._ 45723553 <sup>_<u>R</u>_</sup> <sup>2</sup> <sup>_<u>T</u>_</sup> <sup>2</sup> _Pc_ ; _b_ = 0 _._ 07779607 <sup>_<u>RTc</u>_</sup> _Pc_ ; 230 Proceedings of the Modelica Conference 2023 DOI - - - _<u>T</u>_ _α_ = 1 + _k_ 1 _−_ _Tc_ <u>��2</u> ; _k_ = 0 _._ 37464 + 1 _._ 54226 _ω −_ 0 _._ 26993 _ω_ <sup>2</sup> ; <u>Session</u> <u>2-C:</u> <u>Thermodynamic</u> <u>and</u> <u>energy</u> <u>systems</u> <u>applications</u> <u>1</u> developments to use the following expressions in order to calculate such properties: _h_ = _u_ + _Pv_ (7) - _<u>Psat</u>_ _Pc_ _dv_ (8) _v_ _ω_ = _−_ 1 _−_ log _Tr_ =0 _._ 7 _,_ _s_ 2 _−_ _s_ 1 = - _v_ 2 _v_ 1 - _<u>∂</u>_ _<u>P</u>_ <u>(</u> _<u>v,</u>_ _<u>T</u>_ <u>)</u> _∂_ _T_ - _T_ 2 _T_ 1 _<u>CV</u>_ _T_ <sup>_dT_</sup> <sup>+</sup> where " _a_ " accounts for inter-molecular attractive forces (it decreases the pressure that molecules exert on the reservoir (Zohuri 2018)), while " _b_ " represents the volume occupied by the gas molecules. The molar volume is represented by _v_, _P_ <sup>_sat_</sup> is the saturation pressure of the fluid (to find the acentric factor _ω_ we use the value of _P_ <sup>_sat_</sup> considering _Tr_ = _T_ <sup>_<u>T</u>_</sup> _c_ <sup>= 0</sup> <sup>_._</sup> <sup>7) and</sup> <sup>_R_</sup> <sup>is the universal gas constant.</sup> Taking the total derivative of the internal energy ( _u_ = _f_ ( _T,_ _v_ )) and after development using Maxwell’s third relation, we obtain the following expression verified by (Cengel and Boles 2015) where the pressure _P_ is defined by the PR-EOS and the isochoric heat capacity _CV_ is unknown. However, Equation 8 is expressed more specifically as follows, where the integrals are to be solved: 2) _√_ _~~√~~_ <u>d</u> <sup>2</sup> _<u>α</u>_ d _T_ <sup>2</sup> <sup>_dT_</sup> _v_ 2 _V_ <sup>0</sup> <sup>ln</sup> <sup>_<u>T</u>_</sup> <sup><u>2</u></sup> _<u>v</u>_ <u>+</u> _<u>b</u>_ <u>(1</u> _<u>−</u>_ _<u>v</u>_ <u>+</u> _<u>b</u>_ <u>(1</u> _<u>−</u>_ <u>2)</u> _~~√~~_ _v_ + _b_ (1 + 2) ∆ _s_ = _CV_ <sup>0</sup> _T_ 1 _<u>a</u>_ _−_ _~~√~~_ ln 2 2 _b_ ������ 0 - _T_ 2 _T_ 1 _v_ + - _v_ 2 _v_ 1 - _<u>∂</u>_ _<u>P</u>_ <u>(</u> _<u>v,</u>_ _<u>T</u>_ <u>)</u> _∂_ _T_ _dv_ (9) - _v_ 2 _v_ 1 _−_ _P_ _dv_ (2) - _<u>∂</u>_ _<u>P</u>_ _∂_ _T_ _v_ ∆ _u_ = - _T_ 2 _T_ 1 _CV_ _dT_ + _T_ Concerning Modelica, a function called _PR_ _ _InternalEnergy_ (containing the Equation 4) is created after having developed the Equation 2 considering the state 1 as _v_ 0 = ∞ and using the PR-EOS Equation 1 (Trujillo, O’Rourke, and Torres n.d.): _u_ ( _v,_ _T_ ) _−_ _u_ ( _v_ 0 _,_ _T_ 0) = _u_ ( _v_ 0 _,_ _T_ ) _−_ _u_ ( _v_ 0 _,_ _T_ 0) - _v_ + _v_ 0 _T_ - _<u>∂</u>_ _<u>P</u>_ _∂_ _T_ _v_ _−_ _P_ _dv_ (3) 2) _√_ _~~√~~_ The derived formulas for internal energy, enthalpy and entropy can be found in the Appendix subsection 4.1. 2.4 Electrolyzer To model the electrolyzer we start from the classical expression (Kuroki et al. 2021; Ulleberg 1998) <sup>5</sup> which includes the over-potentials in the electrodes of the cell: _Ucell_ = _Urev_ + _Ures_ + _Uact_ (10) The term _Urev_ concerns the reversible tension expressed by the Nernst equation (Atkins and Paula 2006). It is obtained by considering that two opposite forces of equal magnitude act on the ion at equilibrium, electrical forces and diffusion forces are equal in magnitude but of opposite sign. From such expression, while making certain assumptions <sup>6</sup>, the Equation 11 is obtained to approximate the value of the reversible voltage. - _α −_ _T_ <sup><u>d</u></sup> <sup>_<u>α</u>_</sup> d _T_ _<u>v</u>_ <u>+</u> _<u>b</u>_ <u>(1</u> _<u>−</u>_ _<u>v</u>_ <u>+</u> _<u>b</u>_ <u>(1</u> _<u>−</u>_ <u>2)</u> _~~√~~_ _v_ + _b_ (1 + 2) _u_ ( _v,_ _T_ ) = _u_ <sup>0</sup> + _a_ - <u>1</u> _~~√~~_ ln 2 2 _b_ - <u>1</u> _~~√~~_ 2 <sup><u>3</u></sup> <sup>_<u>RT</u>_</sup> - _<u>P</u>_ _<u>−</u>_ _<u>PvH</u>_ <u>2</u> _<u>O</u>_ 4 _F_ <sup>ln</sup> _P_ 0 _,_ (11) (4) With : <u>d</u> _<u>α</u>_ _<u>−k</u>_ _√α_ (5) d _T_ <sup>=</sup> _~~√~~_ _TcT_ Where _u_ <sup>0</sup> = _CV_ <sup>0</sup> <sup>_T_</sup> <sup>, and</sup> <sup>_C_</sup> _V_ <sup>0</sup> <sup>corresponds to the isochoric</sup> heat capacity of perfect gases. Then, according to (Leachman et al. 2009) one can express such isochoric heat capacity according to the following expression: _Urev_ := ∆ _Eeq ≈_ <sup><u>∆</u></sup> <sup>_<u>rg</u>_</sup> <sup>0(</sup> <sup>_<u>T</u>_</sup> <sup><u>)</u></sup> <sup>_<u>g</u>_</sup> <sup>0(</sup> <sup>_<u>T</u>_</sup> <sup><u>)</u></sup> + <sup><u>3</u></sup> <sup>_<u>RT</u>_</sup> _nF_ 4 _F_ Where _u_ <sup>0</sup> = _CV_ <sup>0</sup> _V_ <sup>0</sup> <sup>_T_</sup> <sup>, and</sup> <sup>_C_</sup> _V_ <sup>0</sup> _<u>CRV</u>_ <sup>0</sup> <sup>= 1</sup> <sup>_._</sup> <sup>5</sup> <sup>+</sup> _<u>CV</u>_ <sup>0</sup> _N_ ## ∑ _k_ =1 _uk_ - _<u>vk</u>_ _T_ where the vapor pressure _PvH_ 2 _O_ is defined by _PvH_ 2 _O ≈_ _e_ <sup>(37</sup> <sup>_._</sup> <sup>04</sup> <sup>_−_</sup> <sup><u>6276</u></sup> _<u>T</u>_ <sup>_−_</sup> <sup>3</sup> <sup>_._</sup> <sup>416ln</sup> <sup>_T_</sup> <sup>)</sup> _,_ (12) with pressures expressed in bar and T in Kelvin. The approximation (12) is valid between 25-250°C (Patterson et al. 2019). To determine the last two terms of Equation 10 (namely the over-potentials _Ures_ and _Uact_, referring to the electrical and the activation resistance of the electrodes, respectively) we consider semi-empirical models found in the literature for alkaline electrolyzers. For the time being, 5It should be noted that there exists also a component called diffusion over-potential ( _Udif f_ ) but it is negligible (Ulleberg 1998). It is created by slow diffusion of ions through the electrolyte making it harder for ions to reach active sites. 6Considering the isobaric heat capacity ( _Cp_ ) to be constant, uniform acidity between the electrodes, water as an undiluted liquid, and oxygen and hydrogen to be ideal gases at the same pressure equal to the total pressure minus the vapor pressure of water (Patterson et al. 2019) �2 <u>exp(</u> _<u>vk/T</u>_ <u>)</u> (6) (exp( _vk/T_ ) _−_ 1) <sup>2</sup> �2 <u>exp(</u> _<u>vk/T</u>_ <u>)</u> The parameters _uk_ and _vk_ are taken from (Leachman et al. 2009) for normal hydrogen (n- _H_ 2) because in the temperature range of interest ( _≈_ 260 _−_ 360 _K_ ) one will always have n- _H_ 2. Moreover, n- _H_ 2 is defined as hydrogen’s equilibrium concentration at room temperature, which corresponds to 75% orthohydrogen and 25% parahydrogen. Finally, as there is interest in estimating enthalpy and entropy at different states, we take advantage of previous DOI Proceedings of the Modelica Conference 2023 231 <u>Modeling</u> <u>and</u> <u>Simulation</u> <u>of</u> <u>the</u> <u>Hydrogen</u> <u>Value</u> <u>Chain</u> <u>with</u> <u>ThermoSysPro</u> <u>and</u> <u>Modelica</u> two semi-empirical models were coded and an ulterior and more detailed work will compare both models as it is beyond the scope of the present work. Therefore, only the one found in literature will be presented here. The model in question is taken from the work of (Ulleberg 1998; Ulleberg 2003) which models a stand-alone photovoltaichydrogen power plant (PHOEBUS) in Jülich (Germany) equipped with an alkaline electrolyzer with circular bipolar cells and a 30 wt% KOH solution as electrolyte. _<u>I</u>_ _Ures_ = ( _r_ 1 + _r_ 2 _T_ ) _Acell_ _I_ + 1 - _t_ 1 + <sup>_<u>t</u>_</sup> _<u>T</u>_ <sup><u>2</u></sup> (13) (14) _Uact_ = ( _s_ 1 + _s_ 2 _T_ + _s_ 3 _T_ <sup>2</sup> ) log _<u>T</u>_ <sup>2</sup> _Acell_ <sup>_<u>t</u>_</sup> _<u>T</u>_ <sup><u>2</u></sup> <sup>+</sup> _<u>T</u>_ <sup>_<u>t</u>_</sup> <sup><u>32</u></sup> Where _si_, _ti_, and _ri_ are known parameters <sup>7</sup>, _Acell_ is the area of a cell in _m_ <sup>2</sup>, _I_ is the current in amperes and the temperature _T_ is expressed in °C. We can observe that Equation 14 is an expression derived from the Butler-Volmer relation. Then, for all that concerns the Faraday efficiency, we consider the model developed by (Ulleberg 1998) and already used in (Khan and Iqbal 2005) where the temperature _T_ is expressed in °C: �2 (15) <u>�2</u> _η_ _f_ = _f_ 2 - _<u>I</u>_ _Acell_ <u>�</u> _<u>I</u>_ _Acell_ _f_ 1 + _f_ 1 = 2 _._ 5 _T_ + 50 ; _f_ 2 = _−_ 0 _._ 00075 _T_ + 1 This calculation allows to estimate the real production of hydrogen in the electrolyzer considering the current losses and the number of cells _Ncell_ in the stack. _m_ ˙ _H_ 2 = _η_ _f_ _<u>NcellMH</u>_ <u>2</u> _I_ (16) 2 _F_ In addition, we want to estimate the heat losses since they could potentially be used as an energy source for the heating of the water inlet. This is obtained by an energy balance: _Q_ ˙ = _W_ ˙ _elec −_ ∆ _H_ ˙ = _W_ ˙ _elec −_ _m_ ˙ _H_ 2 �∆ _rh_ <sup>0</sup> _T_ <sup>0</sup> _T_ <sup>0 +</sup> <sup>∆</sup> <sup>_rCp_</sup> <sup>(</sup> <sup>_T −_</sup> <sup>_T_</sup> <sup>0)</sup> (17) Finally, we can also estimate the energy efficiency of our electrolyzer by using the lower heating value of hydrogen. _η_ = <sup>_<u>m</u>_</sup> <sup><u>˙</u></sup> <sup>_<u>H</u>_</sup> <sup><u>2</u></sup> <sup>_<u>LHVH</u>_</sup> <sup><u>2</u></sup> _W_ ˙ _elec_ (18) Figure 2. Model of Alkaline Electrolyzer with corresponding inputs and outputs Figure 3. Polarization curves at two different temperatures (80 <sup>_◦_</sup> C in red lines, and 25 <sup>_◦_</sup> C in blue lines) After having modeled the electrolyzer, it is pertinent to obtain the polarization curve (which represents the voltage as a function of current density) to verify that the cell voltage calculated using Ulleberg (1998) model has been well coded. From its shape and values, Figure 3 corresponds to the expected behaviour for alkaline electrolysis at two working temperatures (80 <sup>_◦_</sup> C in red line, and 25 <sup>_◦_</sup> C in blue line). The cell voltage _Ucell_ is represented by the continuous lines and the reversible voltage _Urev_ is represented by the dotted lines. By observing the continuous lines (cell voltage), one could also specifically verify that when placed around low current densities, the activation over-potential (Equation 14) has a more important impact on the total voltage of the cell and at higher densities the behavior is rather linear due to the shape of the resistance over-potential (Equation 13). One can also verify that the reversible potential (Equation 11) is independent of the current density. 2.5 Compressor The compressor is modeled using a isentropic efficiency coefficient. From Equation 8 isentropic processes may then be introduced. They refer to the assumption of equal entropy between two different states (1 _−→_ 2). Namely, there is not any change when moving from state 1 to state 2, and then the left side of Equation 8 becomes equal In Figure 2, we observe that there are inputs as working temperature ( _Tref_ ), the supplied current ( _I_ ) and the water inlet at a given pressure ( _Pre f_ ); as well as the outputs of oxygen and hydrogen flows on the top side of the electrolyzer model. 7The empirical parameters ( _si_, _ti_, and _ri_ ) can be found numerically using non-linear regression techniques. Consequently one can fit the model for an alkaline electrolyzer in particular 232 Proceedings of the Modelica Conference 2023 DOI <u>Session</u> <u>2-C:</u> <u>Thermodynamic</u> <u>and</u> <u>energy</u> <u>systems</u> <u>applications</u> <u>1</u> to zero. Knowing the properties in such a state allows us to use the isentropic efficiency of the compressor defined by Equation 19. A graphical representation of the compressor model is given in Figure 4a. is the area of exchange. After developing Equation 20 we obtain an expression according to the specific heat capacities of "cold" and "hot" fluids ( _Cp,_ _f_ and _Cp,c_ respectively): (21) - <u>1</u> _m_ ˙ _f_ _Cp,_ _f_ <u>1</u> _−_ _m_ ˙ _cCp,c_ _ηis,comp_ = <sup>_<u>h</u>_</sup> <sup><u>2</u></sup> <sup>_<u>is −</u>_</sup> <sup>_<u>h</u>_</sup> <sup><u>1</u></sup> _h_ 2 _−_ _h_ 1 = _UA_ (19) ln <sup><u>∆</u></sup> <sup>_<u>Tb</u>_</sup> ∆ _Ta_ Starting from the fact that the state 1 and the value of _ηis,comp_ is known, and considering ∆ _s_ = 0 in Equation 8, _h_ 2 _is_, the enthalpy in the state 2 _is_ where _s_ 2 _is_ = _s_ 1 is calculated, and then _h_ 2 for state 2 is obtained from Equation 19. Moreover, when looking at the safety aspect, one must not forget that there are limits concerning the temperature and pressure that the gas should reach. For example, the SAE J2601 standard mentioned in the section "SAE2020" indicates these upper limits during hydrogen refueling. So for compression a maximum temperature of 135°C (Institute 2007) may be established (recommendation for high pressure hydrogen rich services) when using a piston compressor. This safety measure consequently sets a maximum compression ratio and therefore probably the need to compress in several stages. (a) Representation of the compressor model (b) Representation of the Pressure Control Valve model (c) Representation of the gaseous storage model Figure 4. Example of model components. 2.6 Heat Exchanger For the heat exchanger used to cool the hydrogen, the concept of the Logarithmic Mean Temperature Difference (LMTD) should be introduced first. According to Newton’s law of cooling, the rate of heat transfer is related to the instantaneous temperature difference between the hot and cold media (in a heat transfer process, the temperature difference varies with position and time). As a result, the temperature variation is non-linear and can best be represented by a logarithmic calculation, hence the LMTD (Engineering ToolBox 2003). As the main interest of this first work is not particularly the heat transfer phenomenon, the heat exchanger model is quite simple which entails to having certain limitations that must be indicated to not make physical mistakes while using the component. Such limitations and assumptions will be discussed in Section 4 Figure 5. Test model of the heat exchanger component 2.7 Pressure Control Valve The valve flow coefficient ( _Cv_ ) is defined as the flow capacity of a control valve under fully open conditions relative to the pressure drop across the valve. It is defined as the volume of water (GPM in the U.S.) at 60°F that will flow through a fully open valve with a pressure differential of 1 psi across the valve. It is useful to know how to calculate _Cv_ because it is the standard method of sizing and selecting control valves used in the industry. In addition, an oversized valve can lead to control problems such as flushing or poor heat transfer (∆ _T_ ) through a coil due to overflow. Conversely, an undersized valve may not provide sufficient flow and exceed the available ∆ _P_ . In general, the volume flow rate _q_ and _Cv_ are related by an expression of type Where G is the specific gravity of the fluid ( _G_ = _ρ/ρair_ ). However, the functions to describe the behavior of the gas passing through the valve are generally more complex. According to (Swagelok 2007) they can be expressed with the following two equations, where _p_ = [ _bar_ ] _,_ _T_ = [ _K_ ] _,_ _q_ = - _std_ _min_ <sup>_<u>L</u>_</sup> �: - <u>∆</u> _<u>P</u>_ _q_ = _Cv f_ ( _x_ ) _G_ �: - _std_ <sup>_<u>L</u>_</sup> _min_ _Q_ ˙ = _UA_ ∆ _TLM_ _,_ ∆ _TLM_ <u>∆</u> _<u>Tb −</u>_ <u>∆</u> _<u>Ta</u>_ ln <sup><u>∆</u></sup> <sup>_<u>Tb</u>_</sup> ∆ _Ta_ (20) _q_ <sup>2</sup> _GT_ 1 = (0 _._ 471 _N_ 2) <sup>2</sup> _Cv_ <sup>2</sup> _v_ <sup>2</sup> <sup>_p_</sup> <sup>2</sup> 1 <sup>2</sup> 1 <sup>_,_</sup> <sup>_p_</sup> <sup>2</sup> <sup>_≤_</sup> <sup>_<u>p</u>_</sup> <sup><u>1</u></sup> (22) 2 Where ∆ _Ta_ is the temperature difference between the two flows at the _A_ end, and ∆ _Tb_ is the temperature difference between the two flows at the _B_ end (sides of the exchanger whether if its design is that of a counter-current heat exchanger or not), _Q_ <sup>˙</sup> [ _W_ ] is the heat service exchanged, U [ _m_ <sup>_<u>W</u>_</sup> <sup>2</sup> _K_ <sup>]</sup> <sup>is</sup> <sup>the</sup> <sup>overall</sup> <sup>heat</sup> <sup>transfer</sup> <sup>coefficient,</sup> <sup>and</sup> <sup>_A_</sup> <sup>[</sup> <sup>_m_</sup> <sup>2]</sup> _q_ <sup>2</sup> _GT_ 1 = _N_ 2 <sup>2</sup> <sup>_C_</sup> _v_ <sup>2</sup> <sup>_p_</sup> <sup>1</sup> �1 _−_ <sup><u>2∆</u></sup> <sup>_<u>P</u>_</sup> 3 _p_ 1 �2 ∆ _P_ _,_ _p_ 2 _>_ <sup>_<u>p</u>_</sup> <sup><u>1</u></sup> (23) 2 �2 ∆ _P_ _,_ _p_ 2 _>_ <sup>_<u>p</u>_</sup> <sup><u>1</u></sup> _N_ 1 and _N_ 2 are parameters provided in (Swagelok 2007) that depend on the units used and the volumetric flow rate _q_ is expressed under standard conditions (25°C and 1 atm). DOI Proceedings of the Modelica Conference 2023 233 <u>Modeling</u> <u>and</u> <u>Simulation</u> <u>of</u> <u>the</u> <u>Hydrogen</u> <u>Value</u> <u>Chain</u> <u>with</u> <u>ThermoSysPro</u> <u>and</u> <u>Modelica</u> On the other hand, it is also necessary to illustrate this valve from a thermodynamic point of view to understand the physical process. Choke valves are generally small devices, and the flow through them can be assumed to be adiabatic ( _Q_ <sup>_∼_</sup> = 0) since there is not enough time or area for efficient heat transfer to occur. There is also no work done ( _w_ <sup>_∼_</sup> = 0), and the change in potential energy, if there is any, is very small ( _ep_ <sup>_∼_</sup> = 0). Even though the output velocity is often considerably larger than the input velocity, in many cases the increase in kinetic energy is negligible (Cengel and Boles 2015). Then the energy conservation equation for this single-stream steady-state flow device reduces to: _h_ 1 <sup>_∼_</sup> = _h_ 2 _u_ 1 + _P_ 1 _v_ 1 <sup>_∼_</sup> = _u_ 2 + _P_ 2 _v_ 2 (24) Thus, the end result of a throttling process depends on how much a certain property has increased during the process. If the flow of energy increases during the process ( _P_ 2 _v_ 2 _> P_ 1 _v_ 1), this can be at the expense of the internal energy. As a result, the internal energy decreases, which is usually accompanied by a decrease in temperature. If the _Pv_ of the product decreases, the internal energy and temperature of a fluid will increase during a throttling process <sup>8</sup> . In these cases, the magnitude of the ∆ _T_ is governed by a property called the Joule-Thomson coefficient : _H_ _µJT_ = - _<u>∂</u>_ _<u>T</u>_ _∂_ _P_ (25) Figure 6. Inversion temperatures for three real gases: nitrogen, hydrogen and helium (Central Michigan University 2013) - _Cvmax_ : 0 _._ 015 <sup>_<u>m</u>_</sup> <sup>4</sup> _sN_ <sup>5</sup> - Outlet pressure which varies from 150 to 350 _bar_ In this comparative simulation, the valve opening is controlled to obtain a certain outlet pressure that will vary from 150 to 350 _bar_ . The goal is to analyze the change of the outlet temperature as a function of pressure and while maintaining the same inlet pressure, thus generating a different pressure drop value at each moment. From the main result (Figure 7), it is observed that the outlet temperature of the PCV ( _PCV_ _ _realsgas.T_ ) evolves in function of the outlet pressure ( _sensorP.C_ 2 _.P_ ), which is not the case when using the TSP default valve ( _PCV_ _ _idealgas.T_ ) that considers an ideal fluid. Specifically, it is noted that for the operating conditions of temperature and pressure, the Joule-Thomson coefficient is always negative, causing a temperature rise during the isenthalpic expansion process, which can be verified in Figure 6. Therefore, it is proved that the modified valve does include the Joule-Thomson phenomenon through the use of PR-EOS which describes a real gas. Even though the results have not been compared to real values from experimentation, the PR-EOS is widely accepted as an approximation in the process engineering field, however the use of a hydrogen-dedicated equation of state could be envisaged (Sakoda et al. 2012). Figure 7. Outlet temperature comparison for two valve models at variable outlet pressure The Joule-Thomson coefficient is a measure of the variation of temperature versus pressure during a process with constant enthalpy, which corresponds to the situation of the valve. So if this coefficient is negative, the temperature increases during an expansion. The sign of the coefficient will therefore depend on the conditions in which the gas is, and the so-called inversion temperature (Figure 6) at these conditions. Thus, considering such phenomenon, a valve model is adapted (Figure 4b) from TSP to take into account the effects on temperature of a throttling process with hydrogen as a fluid. From such development, and through a comparative simulation, one can observe the difference in properties at the end of the expansion process using the TSP valve <sup>9</sup> and the hydrogen-adapted Pressure Control Valve (PCV). As a simple study case, a simulation is carried out with the following parameters for both of the valves: - Inlet pressure: 400 _bar_ - Hydrogen flow rate: 0 _._ 0038885674 <sup>_<u>kg</u>_</sup> _s_ - Inlet temperature: 65°C 8In the case of an ideal gas, _h_ = _h_ ( _T_ ); therefore, the temperature must remain constant during a throttling process, which is not the case for a real gas where _h_ = _h_ ( _T,_ _P_ ) 9The valve available on TSP was initially designed for water and steam flows applications 234 Proceedings of the Modelica Conference 2023 DOI <u>Session</u> <u>2-C:</u> <u>Thermodynamic</u> <u>and</u> <u>energy</u> <u>systems</u> <u>applications</u> <u>1</u> 2.8 Gaseous Storage The modeling of the pressurized gas storage is summarized in (Migoni et al. 2016) where an equation of state is implemented to estimate the pressure. However, unlike such work which uses the ideal gas equation, one can improve the estimates by using the PR-EOS. For that the Equation 1 which allows to model the pressure is used. Then it is necessary to know the mass stored in a given moment. For that we use a mass balance (Equation 26) which allows to calculate the quantity of hydrogen in each bottle and finally to estimate the pressure according to this mass and the volume of the tank. The number of bottles in the storage is a parameter that can be modified and the way in which the bottles are filled is directly managed by the model itself (a maximum and a minimum pressure in each bottle can be provided in order to manage the switches). <u>d</u> _<u>m</u>_ d _t_ <sup>=</sup> <sup>_m_</sup> <sup>˙</sup> <sup>_in −_</sup> <sup>_m_</sup> <sup>˙</sup> <sup>_out_</sup> (26) ### 3 Gas Plate modeling 3.1 Model construction The case study model (Figure 1) was briefly presented in subsection 2.1 where the general idea of the so-called Gas Plate was introduced alongside the two branches (Storage and Station) which illustrate the final usages of the lowcarbon hydrogen produced upstream through water electrolysis. At this time the theoretical fundamentals of each of the components (or blocks) in the platform has been settled and so a more detailed version of the model may be presented. Such is the case for Figure 8, where three electrolyzers are placed upstream on the left, and then a series of components such as pressure loss blocks at the outlet of each electrolyzer, valves <sup>10</sup>, volumes, sensors (to read temperature, pressure and mass flow) compose the hydrogen pipeline towards two branches or usages. On the right upper side (Storage Branch) a pressure control valve, a compressor, and counter-current heat exchanger are used to regulate the flow, to obtain a desired pressure and to refrigerate the hydrogen flow to a safe temperature, respectively. This, to finally arrive to the gaseous storage system at the end of the branch. On the other hand, the charging station branch in our chain is composed of a compressor to increase the pressure to the desired values according to the type of vehicle, a valve (PCV) that allows to regulate the output pressure according to the normative (SAE 2020), and a heat exchanger between those previous components in order to limit the temperature rise due to the Joule-Thomson effect in the valve. Finally, it must be noted that some of the components used in this platform are taken from the TSP library. Such 10The Check Valve right before the volume that serves to divide the flow into the two branches is found on TSP (El Hefni and Bouskela 2019) and the PCVs used once on the Storage branch and twice on the Station branch is adapted from the Control Valve model of the same TSP library is the case for the Singular pressure loss component at the outlet of each electrolyzer, the volumes, the check valve and other common blocks as signals and sources. Components like the sensors, the compressor and the pressure control valve where adapted from TSP; other blocks like the electrolyzer and the storage tanks where developed for a new hydrogen-dedicated library compatible with TSP. 3.2 Model simulation The model presented in Figure 8 and described in the previous subsection has been used to perform various dynamic simulations that have allowed to validate and better understand the physical behavior of the hydrogen platform. These simulations give as well an overview of the different types of predictions that can be performed with this model. For this purpose, three different scenarios have been considered. These dynamic simulations in which several events occur are described below together with graphs showing the evolution of key variables for each scenario. Scenario 1 : the three electrolyzers are working during the whole simulation and at the beginning the hydrogen storage is being filled up. At 500s, the outlet mass flow rate of the storage is temporarily increased (see dotted red line in Figure 9). During this simulation it is possible to observe the filling of gaseous storage while there is no increase in the outlet mass flow rate, see continuous blue line in Figure 9 in which the evolution of the hydrogen mass in the first bottle (and only bottle in this simulation) of the gaseous storage is presented . When the outlet mass flow rate increases, it can be observed how the bottle is being emptied before resuming the filling at the end of the simulation. Scenario 2 : as in the previous scenario, the three electrolyzers are working during the whole simulation and at 1200 seconds the valve of the storage branch of the platform is partially closed (as shown by Figure 10a). The consequence of closing this valve is directly observed in the storage inlet mass flow-rate evolution, see Figure 10b where a remarkable decrease is shown after 1200s. In addition to this important decrease, it is also possible to notice in the previous graph a small perturbation of the inlet mass flow-rate at around 800s. This reduction can be explained by the graph plotted in Figure 10c and in which the evolution of the hydrogen mass in the storage is represented: the blue line corresponds to the total hydrogen mass of the first bottle and the red one to the total hydrogen mass in the second bottle. The above-mentioned perturbation of the inlet mass flow-rate occurs when the switch between the filling of the first and second bottle occurs (corresponding to the moment at which the maximum allowed pressure in the first bottle is reached). The valve closing occurs therefore when the second bottle is being filled and the consequences can be observed in the red curve where the increase of the hydrogen mass in the second bottle is reduced (slope decrease) after 1200s. Scenario 3 : contrary to the previous scenarios, in this DOI Proceedings of the Modelica Conference 2023 235 <u>Modeling</u> <u>and</u> <u>Simulation</u> <u>of</u> <u>the</u> <u>Hydrogen</u> <u>Value</u> <u>Chain</u> <u>with</u> <u>ThermoSysPro</u> <u>and</u> <u>Modelica</u> Figure 8. ThermoSysPro model of the hydrogen platform modeling. In our case study, we created two new components in TSP (the electrolyzer and the storage station) and adapted the other components (the compressor, the pressure control valve and the heat exchanger). Figure 9. Scenario 1 simulation results case, the three electrolyzers of the gas plate are not working during the whole simulation. In this scenario, one of the electrolyzers is completely shutdown at 200s as shown by the dotted red line in Figure 11 which represents the evolution of the current in this electrolyzer. When this shutdown occurs, the hydrogen produced by the three electrolyzers is reduced by a third. The corresponding evolution of the hydrogen mass flow rate leaving all the electrolyzers is plotted in continous blue line in Figure 11. The three simulated scenarios correspond to smooth transients implying slow dynamics and to avoid numerical problems the valves are never completely closed. ### 4 Discussion and Further Work In this paper, we illustrated how to use the latest version of ThermoSysPro Modelica-based library, the so-called V4, in order to model a hydrogen platform where hydrogen is produced by three electrolyzers, stored in a storage station and consumed by a vehicle station. It turns out that one advantage of using TSP is that some components of TSP library can be reused and easily adapted to hydrogen Even if the results obtained so far are already extremely encouraging and useful for the current studies, it is important to keep in mind that the modeled components have some limitations. For instance, the dynamics were neglected for the pipes, the heat exchanger and the electrolyzer. Also, the heat transfer equations might not be adapted for fast transients. Moreover, even though the last version of TSP can handle zero flow rate, this feature has not been tested in the present work and fast closing of valves may require solutions like multi-mode simulation for instance (Bouskela and El Hefni 2014a; Bouskela 2016). In addition, some simplifications have been made in the architecture of the gas plate with respect to a real installation. For example, here we only modeled the electrolyzer behaviour without considering the water purification or gas separation. We also merged the various compression and cooling stages into one single stage. Considering the above mentioned limitations, we argue that the model presented in this paper is good enough for what it was meant for: model a hydrogen platform at a large-scale with Modelica and show its potential applications. The model presented in this work shows how this modeling approach can be used in the design phase of an hydrogen platform (determine an adequate architecture, study the dynamic response of the platform, etc.) and could be used as well in the operation phase of the platform. In this later case, the model developed would correspond to an existing platform, and the results provided by this model could be combined to on-site measurements in order to provide accurate diagnosis. This diagnosis could be performed using advanced mathematical methods that allow to combine simulated and measured and that have recently been adapted to Modelica models such as Data 236 Proceedings of the Modelica Conference 2023 DOI (a) Valve opening command (b) Hydrogen storage inlet mass flow rate <u>Session</u> <u>2-C:</u> <u>Thermodynamic</u> <u>and</u> <u>energy</u> <u>systems</u> <u>applications</u> <u>1</u> Assimilation (Corona Mesa-Moles, Argaud, et al. 2019; Corona Mesa-Moles, Henningsson, et al. 2021) or Data Reconciliation (Bouskela, Jardin, et al. 2021). In addition of the above-mentioned advanced uses of the models, in future work, the model developed could be used to optimize other systems of the hydrogen platform such as the associated instrumentation and control (using a linearized version of the model) or to perform technicaleconomic optimization. This kind of approach could be used as well to optimize the overall architecture of the hydrogen platform (number of electrolyzers, storage volume, number of branches for the fuelling station, etc.). In addition, this model can be easily enriched to include for example the source of energy used for the electrolyzers (for instance wind or solar energy sources). It is however important to keep in mind the possible simulation difficulties that may occur when increasing the size of the model or combining different kind of physics. Furthermore, the TSP developments to correctly model hydrogen based systems could be continued. For example, the library can be completed to model more detailed components and physical phenomena as needed or required to correctly model the behaviour of the real system. To reach this goal it is important to validate the models with experimental data, however, as far as we know, there is no publicly available data on real experiments to validate the developments presented in this article as a whole. For now, only validated models in the literature can be considered, such as the filling stations models (Kuroki et al. 2021) which have been validated with experimental data (SAE 2020). ### References Atkins, Peter and Julio de Paula (2006). _Physical chemistry_ . Ed. by W. H. Freeman and Company. 8th. 1. Oxford: Oxford University Press. ISBN: 0-7167-8759-8. Bhuyan, Sujit Kumar, Prakash Kumar Hota, and Bhagabat Panda (c) Hydrogen mass in the pressurized gas storage composed of two bottles Figure 10. Scenario 2 simulation results Figure 11. Scenario 3 simulation results (2018-06). “Modeling, control and power management strategy of a grid connected hybrid energy system”. In: _Interna-_ _tional Journal of Electrical and Computer Engineering_ 8 (3), pp. 1345–1356. ISSN: 20888708. DOI: 10.11591/ijece.v8i3. pp1345-1356. Bouskela, Daniel (2016). “Multi-Mode Physical Modelling of a Drum Boiler”. In: _Procedia_ _Computer_ _Science_ 95. Complex Adaptive Systems Los Angeles, CA November 2-4, 2016, pp. 516–523. ISSN: 1877-0509. DOI: https://doi.org/10.1016/ j.procs.2016.09.331. URL: https://www.sciencedirect.com/ science/article/pii/S1877050916325042. Bouskela, Daniel and Baligh El Hefni (2014a). “A physical so lution for solving the zero-flow singularity in static thermalhydraulics mixing models”. In: _10th_ _Modelica_ _Conference_ _2014_ . Linköping, Sweden, pp. 847–855. DOI: http://dx.doi. org/10.3384/ecp14096847. URL: https://ep.liu.se/ecp/096/ 088/ecp14096088.pdf. Bouskela, Daniel and Baligh El Hefni (2014b). “Modeling and simulation of complex ThermoSysPro model with OpenModelica - Dynamic Modeling of a combined cycle power plant”. In: _10th_ _Modelica_ _Conference_ _2014_ . Linköping, France, pp. 847–855. DOI: 10.3384/ecp14096847. DOI Proceedings of the Modelica Conference 2023 237 <u>Modeling</u> <u>and</u> <u>Simulation</u> <u>of</u> <u>the</u> <u>Hydrogen</u> <u>Value</u> <u>Chain</u> <u>with</u> <u>ThermoSysPro</u> <u>and</u> <u>Modelica</u> Bouskela, Daniel, Audrey Jardin, et al. (2021-09). “New Method to Perform Data Reconciliation with OpenModelica and ThermoSysPro”. In: _14th Modelica Conference 2021_ . Linköping, France, pp. 453–462. DOI: 10.3384/ecp21181453. Cengel, Yunus and Michael Boles (2015). _Termodinámica_ _de_ _Cengel_ . 8th ed. The McGraw-Hill Companies, p. 1001. ISBN: 978-607-15-0743-3. Central Michigan University (2013). URL: http : / / people . se . cmich.edu/teckl1mm/pchemi/chm351ch3bf01.htm. Corona Mesa-Moles, Luis, Jean-Philippe Argaud, et al. (2019 03). “Robust Calibration of Complex ThermosysPro Models using Data Assimilation Techniques: Application on the Secondary System of a Pressurized Water Reactor”. In: _The_ _13th_ _International_ _Modelica_ _Conference,_ _Regensburg,_ _Ger-_ _many, March 4–6, 2019_ . Regensburg, Germany, pp. 553–560. DOI: 10.3384/ecp19157553. URL: https://hal.science/hal03540782. Corona Mesa-Moles, Luis, Erik Henningsson, et al. (2021-09). “New Equation-based Method for Parameter and State Estimation”. In: _14th_ _Modelica_ _Conference_ _2021_ . Linköping, France, pp. 129–139. DOI: 10.3384/ecp21181129. URL: https: //hal.science/hal-03540777. El Hefni, Baligh and Daniel Bouskela (2017-05). “Modeling and simulation of complex ThermoSysPro model with OpenModelica - Dynamic Modeling of a combined cycle power plant”. In: _12th_ _Modelica_ _Conference_ _2017_ . Linköping, France, pp. 407–414. DOI: 10.3384/ecp17132407. El Hefni, Baligh and Daniel Bouskela (2019). _Modeling_ _and_ _Simulation_ _of_ _Thermal_ _Power_ _Plants_ _with_ _ThermoSysPro_ _A_ _Theoretical Introduction and a Practical Guide_ . Springer Nature Switzerland AG. Engineering ToolBox (2003). URL: https : / / www . engineeringtoolbox . com / arithmetic - logarithmic - mean temperature-d_436.html. Eriksson, E. L.V. and E. Mac A. Gray (2017). “Optimization and integration of hybrid renewable energy hydrogen fuel cell energy systems - A critical review”. In: _Applied_ _Energy_ 202, pp. 348–364. ISSN: 03062619. DOI: 10 . 1016 / j . apenergy. 2017.03.132. URL: http://dx.doi.org/10.1016/j.apenergy. 2017.03.132. European Commission (2020). _A_ _hydrogen_ _strategy_ _for_ _a_ _climate-neutral Europe_ . Tech. rep. European Commission. European Commission (2023). _Energy Systems Integration - Hy-_ _drogen_ . https://energy.ec.europa.eu/topics/energy-systemsintegration/hydrogen_en. Consultation date: 2023-03-02. _Green_ _hydrogen_ _cost_ _reduction_ (2020). Tech. rep. International Renewable Energy Agency. Institute, American Petroleum (2007). _API Standard 618_ . International Energy Agency (2022a). _Hydrogen_ . Tech. rep. In ternational Energy Agency. International Energy Agency (2022b). _World_ _Energy_ _Outlook_ _2022_ . Tech. rep. International Energy Agency. Khan, M. J. and M. T. Iqbal (2005). “Dynamic modeling and simulation of a small wind-fuel cell hybrid energy system”. In: _Renewable_ _Energy_ 30.3, pp. 421–439. ISSN: 09601481. DOI: 10.1016/j.renene.2004.05.013. Kuroki, Taichi et al. (2021-06). “Thermodynamic modeling of hydrogen fueling process from high-pressure storage tank to vehicle tank”. In: _International Journal of Hydrogen Energy_ 46 (42), pp. 22004–22017. ISSN: 03603199. DOI: 10.1016/j. ijhydene.2021.04.037. Leachman, J. W. et al. (2009). “Fundamental equations of state for parahydrogen, normal hydrogen, and orthohydrogen”. In: and the second integral solution - _v_ 2 _<u>∂</u>_ _<u>P</u>_ <u>(</u> _<u>v,T</u>_ <u>)</u> _v_ 1 _∂_ _T_ _~~√~~_ _v_ <sup>_dv_</sup> <sup>=</sup> - _R_ ln _|v_ _−_ _b|−_ _a_ <sup><u>d</u></sup> <sup>_<u>α</u>_</sup> _~~√~~_ <u>1</u> - _<u>v</u>_ <u>+</u> _<u>b</u>_ <u>(1</u> _<u>−</u>_ _~~√~~_ <u>2)</u> _v_ 2. d _T_ 2 _b_ <sup>ln</sup> ����� d _T_ _Journal_ _of_ _Physical_ _and_ _Chemical_ _Reference_ _Data_ 38 (3), pp. 721–748. ISSN: 00472689. DOI: 10.1063/1.3160306. Migoni, G. et al. (2016-08). “Efficient simulation of Hybrid Re newable Energy Systems”. In: _International_ _Journal_ _of_ _Hy-_ _drogen_ _Energy_ 41 (32), pp. 13934–13949. ISSN: 03603199. DOI: 10.1016/j.ijhydene.2016.06.019. Patterson, Bruce D. et al. (2019). “Renewable CO2 recycling and synthetic fuel production in a marine environment”. In: _Pro-_ _ceedings_ _of_ _the_ _National_ _Academy_ _of_ _Sciences_ _of_ _the_ _United_ _States of America_ 116.25, pp. 12212–12219. ISSN: 10916490. DOI: 10.1073/pnas.1902335116. SAE (2020). _Fueling Protocols for Light Duty Gaseous Hydro-_ _gen Surface Vehicles J2601_202005_ . SAE Mobilus. Sakoda, N. et al. (2012). “Burnett PVT measurements of hy drogen and the development of a virial equation of state at pressures up to 100 MPa”. In: _International Journal of Ther-_ _mophysics_ 33 (3), pp. 381–395. ISSN: 0195928X. DOI: 10. 1007/s10765-012-1168-2. Swagelok (2007). _Valve_ _Sizing_ . DOI: 10.1016/b978- 0- 7506 2255-4.50070-2. Trujillo, Mario, Peter O’Rourke, and David Torres (n.d.). _Gener-_ _alizing the Thermodynamics State Relationships in KIVA-3V_ . TÜV SÜD (2023). _Explore_ _the_ _hydrogen_ _value_ _chain_ . https : / / www. tuvsud . com / en / themes / hydrogen / explore - the hydrogen - value - chain# : ~ : text = The % 20hydrogen % 20value % 20chain % 20is, %2C % 20and % 20standards % 20(RCS). Consultation date: 2023-03-21. Ulleberg, Øystein (1998). “Stand-alone power systems for the future: Optimal design, operation & control of solarhydrogen energy systems”. PhD thesis. Norwegian University of Science and Technology Trondheim. Ulleberg, Øystein (2003). “Modeling of advanced alkaline elec trolyzers a system”. In: _Hydrogen Energy_ 28, pp. 21–33. Zohuri, Bahman (2018). _Physics_ _of_ _Cryogenics:_ _An_ _Ultralow_ _Temperature Phenomenon_ . Elsevier, pp. 59–70. ### Appendices 4.1 Properties Equation Solutions 4.1.1 Specific Internal Energy (Equation 4) _<u>v</u>_ <u>+</u> _<u>b</u>_ <u>(1</u> _<u>−</u>_ _<u>v</u>_ <u>+</u> _<u>b</u>_ <u>(1</u> _<u>−</u>_ <u>2)</u> _~~√~~_ _v_ + _b_ (1 + 2) _~~√~~_ _~~√~~_ 2) - _α −_ _T_ <sup><u>d</u></sup> <sup>_<u>α</u>_</sup> d _T_ - _α −_ _T_ <sup><u>d</u></sup> <sup>_<u>α</u>_</sup> - <u>1</u> _~~√~~_ ln 2 2 _b_ - <u>1</u> _~~√~~_ 2 _u_ ( _v,_ _T_ ) = _u_ <sup>0</sup> + _a_ _,_ _√α_ . with <sup><u>d</u></sup> d <sup>_<u>α</u>_</sup> _T_ <sup>=</sup> _~~√~~_ _<u>−TckT</u>_ <sup><u>d</u></sup> d <sup>_<u>α</u>_</sup> _T_ <sup>=</sup> _~~√~~_ _<u>−TckT</u>_ 4.1.2 Specific Enthalpy (Equation 7) - _~~√~~_ <u>1</u> 2 - _<u>v</u>_ <u>+</u> _<u>b</u>_ <u>(1</u> _<u>−</u>_ 2 _b_ <sup>ln</sup> _v_ + _b_ (1+ _<u>v</u>_ <u>+</u> _<u>b</u>_ <u>(1</u> _<u>−</u>_ <u>2)</u> _~~√~~_ _v_ + _b_ (1+ 2) _~~√~~_ _~~√~~_ 2) _h_ ( _v,_ _T_ ) = _u_ <sup>0</sup> + _a_ + _Pv_, with _√α_ . - _α −_ _T_ <sup><u>d</u></sup> d <sup>_<u>α</u>_</sup> _T_ - _α −_ _T_ <sup><u>d</u></sup> d <sup>_<u>α</u>_</sup> _T_ <u>dd</u> _<u>αT</u>_ <sup>=</sup> _~~√~~_ _<u>−TckT</u>_ 4.1.3 Specific Entropy (Equation 9) <u>)</u> _v_ 2 ) ����0 ∆ _s_ = _CV_ <sup>0</sup> <sup>ln</sup> <sup>_<u>T</u>_</sup> _T_ <sup><u>2</u></sup> 1 <sup>_−_</sup> 2 _~~√~~_ _<u>a</u>_ 2 _b_ <sup>ln</sup> - _<u>vv</u>_ <u>++</u> _<u>bb</u>_ <u>((11</u> _<u>−</u>_ + _~~√~~_ <u>22))</u> ���� _v_ 02 - _TT_ 12 <u>dd</u> <sup>2</sup> _Tα_ <sup>2</sup> <sup>_dT_</sup> <sup>+</sup> - _v_ 2 - _<u>∂</u>_ _<u>P</u>_ <u>(</u> _<u>v,T</u>_ <u>)</u> - has the first integral solution _v_ 1 _∂_ _T_ _v_ <sup>_dv_</sup> _V_ <sup>0</sup> <sup>ln</sup> <sup>_<u>T</u>_</sup> _T_ <sup><u>2</u></sup> 1 - _<u>v</u>_ <u>+</u> _<u>b</u>_ <u>(1</u> _<u>−</u>_ 2 _b_ <sup>ln</sup> _v_ + _b_ (1+ 2) _<u>v</u>_ <u>+</u> _<u>b</u>_ <u>(1</u> _<u>−</u>_ <u>2)</u> _~~√~~_ _v_ + _b_ (1+ 2) _~~√~~_ _~~√~~_ ∆ _s_ = _CV_ <sup>0</sup> <sup>_<u>T</u>_</sup> _T_ <sup><u>2</u></sup> 1 <sup>_−_</sup> 2 _~~√~~_ _<u>a</u>_ 0 - _T_ 2 _T_ 1 - _<u>∂</u>_ _<u>P</u>_ <u>(</u> _<u>v,T</u>_ <u>)</u> _v_ <sup>_dv_</sup> has the first integral solution _∂_ _T_ �1 _−_ _~~√~~_ <u>1</u> _Tc_ - _−_ _~~√~~_ _T_ <u>2</u> _cT_ ( _k_ + 1) ���� _T_ 2 _T_ 1 _T_ 1 - _T_ 2 _T_ 1 <u>d</u> <sup>2</sup> _<u>α</u>_ _<u>k</u>_ - _<u>k</u>_ <u>ln</u> _<u>T</u>_ = d _T_ <sup>2</sup> <sup>_dT_</sup> 2 _Tc_ , - _<u>∂</u>_ _<u>P</u>_ <u>(</u> _<u>v,T</u>_ <u>)</u> and the second integral solution - _v_ 2 _v_ 1 _∂_ _T_ <u>)</u> _v_ 2 ) ����� _v_ 1 _<u>v</u>_ <u>+</u> _<u>b</u>_ <u>(1</u> _<u>−</u>_ <u>2)</u> _~~√~~_ _v_ + _b_ (1+ 2) _~~√~~_ _~~√~~_ 2) _~~√~~_ <u>1</u> 2 - _<u>v</u>_ <u>+</u> _<u>b</u>_ <u>(1</u> _<u>−</u>_ 2 _b_ <sup>ln</sup> _v_ + _b_ (1+ _v_ 1 . 238 Proceedings of the Modelica Conference 2023 DOI

섹션 본문 70문단 · 30,971자

(제목 없음)

1Hydrogen will play a key role in the global energy transition if we are able to produce it with low-carbon emissions.However, clean hydrogen production today is mostly limited to demonstration projects ranging from 2 up to 20 MW.Modeling the way low-carbon hydrogen is produced, stored and used will allow us to significantly improve our understanding of how clean hydrogen could be produced and thus increase the production efficiency.In this paper, we show that the newest version of Ther-moSysPro (TSP), an open-source Modelica library for modeling energy systems, provides a suitable framework to model and simulate the hydrogen production, storage and consumption.The model presented in this paper contains three electrolyzers, a storage station and a vehicle station.We present how the model was built, which components were adapted and how, and show that its simulation can be useful in the design phase, as well as for diagnosis purposes.In the future, a complete validation of these developments will be performed when experimental data is publicly available.

Introduction

2The global energy system is undergoing major changes, (International Energy Agency 2022b).This transformation aims mostly at reducing the oil and other fossil fuels dependency in order to cut as much as possible CO 2 emissions and thus the consequences of global warming.In this context, hydrogen plays a crucial role in accelerating this energy transition by allowing the decarbonisation of key sectors like industry, aviation, shipping or heavy-duty transport, (International Energy Agency 2022a; Green hydrogen cost reduction 2020).

3Hydrogen has already been identified as indispensable in the strategy to build a climate-neutral Europe (European Commission 2020).However, it is still mostly produced with natural gas, which represents 96% of the total production (European Commission 2023).For this reason, and in order to accomplish the ambitious climate objectives, it is extremely important to develop technologies able of producing clean hydrogen (i.e. with no or low CO 2 emissions) at a large scale and in a competitive way.

4To successfully develop these hydrogen related technologies and integrate them in the future energy mix, the development of flexible and adequate modeling tools is also fundamental.This will allow to contribute and accelerate the ongoing energy transition.Hydrogen based systems can be modeled with different types of modeling tools.Without attempting to be exhaustive, in the literature it is possible to find Matlab (Khan and Iqbal 2005;Eriksson and Gray 2017;Bhuyan, Hota, and Panda 2018), Python (Kuroki et al. 2021) and Modelica (Migoni et al. 2016) based models.These models aim at representing different aspects of a hydrogen based system (electrolyzers, vehicle hydrogen fueling, storage, etc.) and for different purposes (optimization of the management of hydrogen based technologies, better understanding of the physical behavior of such systems, etc.).

5Hydrogen based systems usually require different types of physics to be described and this is why the Modelica language can be suitable to describe such systems.In particular, it can be interesting to adapt existing Modelica libraries that have already shown relevant and trustful results in similar domains.This is the case of the ThermoSysPro (TSP) library1 (El Hefni and Bouskela 2019), an open-source Modelica library developed by EDF R&D2 , which has already been used to successfully model other energy systems such as power plants, industrial processes, energy conversion systems etc. (El Hefni and Bouskela 2017).To achieve these results, different physics are already available in TSP such as thermalhydraulics, combustion, solar radiation and neutronics.In addition, to these already existing features, the latest version of ThermoSysPro3 , the so-called V4, allows to easily modify the fluid considered for modeling in addition of giving the possibility to handle efficiently zero-mass flowrates configurations (based on the principles explained in (Bouskela and El Hefni 2014b).For the reasons previously mentioned, the ThermoSysPro library appears as suitable starting point to model and simulate hydrogen based systems.

6The goal of this paper is therefore to expose and show how the latest version of the ThermoSysPro library has been adapted to efficiently model and simulate hydrogen based systems that already exist or that are going to exist in the future.To illustrate the modification of Ther-moSysPro previously described, this paper focus on the modeling and simulation of a low-carbon hydrogen platform in which the whole value chain of hydrogen is considered (production, storage and distribution, and consumption/application (TÜV SÜD 2023)).

7This paper is structured as follows.Section 2 describes the model considered in this study as well as the equations implemented in the new developed modules.Section 3 presents the construction of the model as well as the simulations performed with this model.Finally, section 4 presents the discussion as well as the future work that can be initiated with the promising results presented in this paper.

Model Description and Equations

8In this section, the proposed low-carbon hydrogen platform is presented as well as the components that constitute a library dedicated to hydrogen which is compatible with ThermoSysPro.As mentioned previously, TSP is already available and thus provides certain advantages like the possibility of reusing some of its components in this hydrogen platform.

Gas Plate Scheme

9The proposed platform is denominated Gas Plate and it serves to connect the components of the system.Such components include mainly, as seen in the simplified model scheme on Figure 1, electrolyzers and a set of blocks as valves, compressors and heat exchangers to compose two branches: Storage and Station, each representing one of the considered final applications.First of all, the block corresponding to the electrolyzer allows to estimate hydrogen production through water electrolysis at given conditions.Such hydrogen gas will then go through a check valve, ensuring one-directional flow in the platform.Afterwards a compressor and a heat exchanger block will allow to reach the desired conditions in terms of temperature and pressure depending on each final use: either storing it directly or manipulating it in a filling station.Finally, to ensure the correct flow of hydrogen, a control valve will be used for each one of these so-called branches.

Notations

10Ideal gas isochoric heat capacity ∆ r g 0

J mol

11Reference specific Gibbs free energy difference for the reaction ∆ r h

Pure Real Gas Properties

12The hydrogen platform operates at a pressure ranging from a few decades to several hundred bars.At high pressure, the ideal gas assumption is not precise enough and the use of an Equation of State for real gas is preferable.

13The so-called Peng-Robinson Equation of State (Equation 1)4 can be found in the classical literature of thermodynamics and process engineering (Zohuri 2018):

14(1)

15where "a" accounts for inter-molecular attractive forces (it decreases the pressure that molecules exert on the reservoir (Zohuri 2018)), while "b" represents the volume occupied by the gas molecules.The molar volume is represented by v, P sat is the saturation pressure of the fluid (to find the acentric factor ω we use the value of P sat considering T r = T T c = 0.7) and R is the universal gas constant.Taking the total derivative of the internal energy (u = f (T, v)) and after development using Maxwell's third relation, we obtain the following expression verified by (Cengel and Boles 2015) where the pressure P is defined by the PR-EOS and the isochoric heat capacity C V is unknown.

16Concerning Modelica, a function called PR_InternalEnergy (containing the Equation 4) is created after having developed the Equation 2 considering the state 1 as v 0 = ∞ and using the PR-EOS Equation 1 (Trujillo, O'Rourke, and Torres n.d.):

17Where u 0 = C 0 V T , and C 0 V corresponds to the isochoric heat capacity of perfect gases.Then, according to (Leachman et al. 2009) one can express such isochoric heat capacity according to the following expression:

18The parameters u k and v k are taken from (Leachman et al. 2009) for normal hydrogen (n-H 2 ) because in the temperature range of interest (≈ 260 − 360K) one will always have n-H 2 .Moreover, n-H 2 is defined as hydrogen's equilibrium concentration at room temperature, which corresponds to 75% orthohydrogen and 25% parahydrogen.

19Finally, as there is interest in estimating enthalpy and entropy at different states, we take advantage of previous developments to use the following expressions in order to calculate such properties:

20However, Equation 8 is expressed more specifically as follows, where the integrals are to be solved:

21The derived formulas for internal energy, enthalpy and entropy can be found in the Appendix subsection 4.1.

Electrolyzer

22To model the electrolyzer we start from the classical expression (Kuroki et al. 2021;Ulleberg 1998) 5 which includes the over-potentials in the electrodes of the cell:

23The term U rev concerns the reversible tension expressed by the Nernst equation (Atkins and Paula 2006).It is obtained by considering that two opposite forces of equal magnitude act on the ion at equilibrium, electrical forces and diffusion forces are equal in magnitude but of opposite sign.From such expression, while making certain assumptions6 , the Equation 11 is obtained to approximate the value of the reversible voltage.

24where the vapor pressure P vH 2 O is defined by

25with pressures expressed in bar and T in Kelvin.The approximation ( 12) is valid between 25-250°C (Patterson et al. 2019).

26To determine the last two terms of Equation 10(namely the over-potentials U res and U act , referring to the electrical and the activation resistance of the electrodes, respectively) we consider semi-empirical models found in the literature for alkaline electrolyzers.For the time being, two semi-empirical models were coded and an ulterior and more detailed work will compare both models as it is beyond the scope of the present work.Therefore, only the one found in literature will be presented here.The model in question is taken from the work of (Ulleberg 1998;Ulleberg 2003) which models a stand-alone photovoltaichydrogen power plant (PHOEBUS) in Jülich (Germany) equipped with an alkaline electrolyzer with circular bipolar cells and a 30 wt% KOH solution as electrolyte.

27Where s i , t i , and r i are known parameters 7 , A cell is the area of a cell in m 2 , I is the current in amperes and the temperature T is expressed in °C.We can observe that Equation 14is an expression derived from the Butler-Volmer relation.

28Then, for all that concerns the Faraday efficiency, we consider the model developed by (Ulleberg 1998) and already used in (Khan and Iqbal 2005) where the temperature T is expressed in °C:

29This calculation allows to estimate the real production of hydrogen in the electrolyzer considering the current losses and the number of cells N cell in the stack.

30In addition, we want to estimate the heat losses since they could potentially be used as an energy source for the heating of the water inlet.This is obtained by an energy balance:

31Finally, we can also estimate the energy efficiency of our electrolyzer by using the lower heating value of hydrogen.

32In Figure 2, we observe that there are inputs as working temperature (T re f ), the supplied current (I) and the water inlet at a given pressure (P re f ); as well as the outputs of oxygen and hydrogen flows on the top side of the electrolyzer model. 7The empirical parameters (s i , t i , and r i ) can be found numerically using non-linear regression techniques.Consequently one can fit the model for an alkaline electrolyzer in particular After having modeled the electrolyzer, it is pertinent to obtain the polarization curve (which represents the voltage as a function of current density) to verify that the cell voltage calculated using Ulleberg (1998) model has been well coded.From its shape and values, Figure 3 corresponds to the expected behaviour for alkaline electrolysis at two working temperatures (80 • C in red line, and 25 • C in blue line).The cell voltage U cell is represented by the continuous lines and the reversible voltage U rev is represented by the dotted lines.By observing the continuous lines (cell voltage), one could also specifically verify that when placed around low current densities, the activation over-potential (Equation 14) has a more important impact on the total voltage of the cell and at higher densities the behavior is rather linear due to the shape of the resistance over-potential (Equation 13).One can also verify that the reversible potential (Equation 11) is independent of the current density.

Compressor

33The compressor is modeled using a isentropic efficiency coefficient.From Equation 8 isentropic processes may then be introduced.They refer to the assumption of equal entropy between two different states (1 − → 2).Namely, there is not any change when moving from state 1 to state 2, and then the left side of Equation 8 becomes equal to zero.Knowing the properties in such a state allows us to use the isentropic efficiency of the compressor defined by Equation 19.A graphical representation of the compressor model is given in Figure 4a.

34Starting from the fact that the state 1 and the value of η is,comp is known, and considering ∆s = 0 in Equation 8, h 2is , the enthalpy in the state 2 is where s 2is = s 1 is calculated, and then h 2 for state 2 is obtained from Equation 19.

35Moreover, when looking at the safety aspect, one must not forget that there are limits concerning the temperature and pressure that the gas should reach.For example, the SAE J2601 standard mentioned in the section "SAE2020" indicates these upper limits during hydrogen refueling.So for compression a maximum temperature of 135°C (Institute 2007) may be established (recommendation for high pressure hydrogen rich services) when using a piston compressor.This safety measure consequently sets a maximum compression ratio and therefore probably the need to compress in several stages.

Heat Exchanger

36For the heat exchanger used to cool the hydrogen, the concept of the Logarithmic Mean Temperature Difference (LMTD) should be introduced first.According to Newton's law of cooling, the rate of heat transfer is related to the instantaneous temperature difference between the hot and cold media (in a heat transfer process, the temperature difference varies with position and time).As a result, the temperature variation is non-linear and can best be represented by a logarithmic calculation, hence the LMTD (Engineering ToolBox 2003).

37Where ∆T a is the temperature difference between the two flows at the A end, and ∆T b is the temperature difference between the two flows at the B end (sides of the exchanger whether if its design is that of a counter-current heat exchanger or not), Q [W ] is the heat service exchanged, U [ W m 2 K ] is the overall heat transfer coefficient, and

38is the area of exchange.After developing Equation 20we obtain an expression according to the specific heat capacities of "cold" and "hot" fluids (C p, f and C p,c respectively):

39As the main interest of this first work is not particularly the heat transfer phenomenon, the heat exchanger model is quite simple which entails to having certain limitations that must be indicated to not make physical mistakes while using the component.Such limitations and assumptions will be discussed in Section 4

Pressure Control Valve

40The valve flow coefficient (C v ) is defined as the flow capacity of a control valve under fully open conditions relative to the pressure drop across the valve.It is defined as the volume of water (GPM in the U.S.) at 60°F that will flow through a fully open valve with a pressure differential of 1 psi across the valve.It is useful to know how to calculate C v because it is the standard method of sizing and selecting control valves used in the industry.In addition, an oversized valve can lead to control problems such as flushing or poor heat transfer (∆T ) through a coil due to overflow.Conversely, an undersized valve may not provide sufficient flow and exceed the available ∆P.In general, the volume flow rate q and C v are related by an expression of type

41Where G is the specific gravity of the fluid (G = ρ/ρ air ).However, the functions to describe the behavior of the gas passing through the valve are generally more complex.

42According to (Swagelok 2007) they can be expressed with the following two equations, where p = [bar] , T = [K] , q = std L min :

43N 1 and N 2 are parameters provided in (Swagelok 2007) that depend on the units used and the volumetric flow rate q is expressed under standard conditions (25°C and 1 atm).On the other hand, it is also necessary to illustrate this valve from a thermodynamic point of view to understand the physical process.Choke valves are generally small devices, and the flow through them can be assumed to be adiabatic (Q ∼ = 0) since there is not enough time or area for efficient heat transfer to occur.There is also no work done (w ∼ = 0), and the change in potential energy, if there is any, is very small (e p ∼ = 0).Even though the output velocity is often considerably larger than the input velocity, in many cases the increase in kinetic energy is negligible (Cengel and Boles 2015).Then the energy conservation equation for this single-stream steady-state flow device reduces to:

44Thus, the end result of a throttling process depends on how much a certain property has increased during the process.If the flow of energy increases during the process (P 2 v 2 > P 1 v 1 ), this can be at the expense of the internal energy.As a result, the internal energy decreases, which is usually accompanied by a decrease in temperature.If

45Pv of the product decreases, the internal energy and temperature of a fluid will increase during a throttling process 8 .In these cases, the magnitude of the ∆T is governed by a property called the Joule-Thomson coefficient :

46The Joule-Thomson coefficient is a measure of the variation of temperature versus pressure during a process with constant enthalpy, which corresponds to the situation of the valve.So if this coefficient is negative, the temperature increases during an expansion.The sign of the coefficient will therefore depend on the conditions in which the gas is, and the so-called inversion temperature (Figure 6) at these conditions.Thus, considering such phenomenon, a valve model is adapted (Figure 4b) from TSP to take into account the effects on temperature of a throttling process with hydrogen as a fluid.From such development, and through a comparative simulation, one can observe the difference in properties at the end of the expansion process using the TSP valve 9 and the hydrogen-adapted Pressure Control Valve (PCV).As a simple study case, a simulation is carried out with the following parameters for both of the valves:

47• Inlet pressure: 400bar

48• Hydrogen flow rate: 0.0038885674 kg s • Inlet temperature: 65°C 8 In the case of an ideal gas, h = h(T ); therefore, the temperature must remain constant during a throttling process, which is not the case for a real gas where h = h(T, P) 9 The valve available on TSP was initially designed for water and steam flows applications In this comparative simulation, the valve opening is controlled to obtain a certain outlet pressure that will vary from 150 to 350 bar.The goal is to analyze the change of the outlet temperature as a function of pressure and while maintaining the same inlet pressure, thus generating a different pressure drop value at each moment.

49From the main result (Figure 7), it is observed that the outlet temperature of the PCV (PCV _realsgas.T ) evolves in function of the outlet pressure (sensorP.C2.P), which is not the case when using the TSP default valve (PCV _idealgas.T ) that considers an ideal fluid.Specifically, it is noted that for the operating conditions of temperature and pressure, the Joule-Thomson coefficient is always negative, causing a temperature rise during the isenthalpic expansion process, which can be verified in Figure 6.Therefore, it is proved that the modified valve does include the Joule-Thomson phenomenon through the use of PR-EOS which describes a real gas.Even though the results have not been compared to real values from experimentation, the PR-EOS is widely accepted as an approximation in the process engineering field, however the use of a hydrogen-dedicated equation of state could be envisaged (Sakoda et al. 2012).

Gaseous Storage

50The modeling of the pressurized gas storage is summarized in (Migoni et al. 2016) where an equation of state is implemented to estimate the pressure.However, unlike such work which uses the ideal gas equation, one can improve the estimates by using the PR-EOS.For that the Equation 1 which allows to model the pressure is used.Then it is necessary to know the mass stored in a given moment.For that we use a mass balance (Equation 26) which allows to calculate the quantity of hydrogen in each bottle and finally to estimate the pressure according to this mass and the volume of the tank.The number of bottles in the storage is a parameter that can be modified and the way in which the bottles are filled is directly managed by the model itself (a maximum and a minimum pressure in each bottle can be provided in order to manage the switches).

513 Gas Plate modeling

Model construction

52The case study model (Figure 1) was briefly presented in subsection 2.1 where the general idea of the so-called Gas Plate was introduced alongside the two branches (Storage and Station) which illustrate the final usages of the lowcarbon hydrogen produced upstream through water electrolysis.At this time the theoretical fundamentals of each of the components (or blocks) in the platform has been settled and so a more detailed version of the model may be presented.Such is the case for Figure 8, where three electrolyzers are placed upstream on the left, and then a series of components such as pressure loss blocks at the outlet of each electrolyzer, valves 10 , volumes, sensors (to read temperature, pressure and mass flow) compose the hydrogen pipeline towards two branches or usages.On the right upper side (Storage Branch) a pressure control valve, a compressor, and counter-current heat exchanger are used to regulate the flow, to obtain a desired pressure and to refrigerate the hydrogen flow to a safe temperature, respectively.This, to finally arrive to the gaseous storage system at the end of the branch.On the other hand, the charging station branch in our chain is composed of a compressor to increase the pressure to the desired values according to the type of vehicle, a valve (PCV) that allows to regulate the output pressure according to the normative (SAE 2020), and a heat exchanger between those previous components in order to limit the temperature rise due to the Joule-Thomson effect in the valve.

53Finally, it must be noted that some of the components used in this platform are taken from the TSP library.Such 10 The Check Valve right before the volume that serves to divide the flow into the two branches is found on TSP (El Hefni and Bouskela 2019) and the PCVs used once on the Storage branch and twice on the Station branch is adapted from the Control Valve model of the same TSP library is the case for the Singular pressure loss component at the outlet of each electrolyzer, the volumes, the check valve and other common blocks as signals and sources.Components like the sensors, the compressor and the pressure control valve where adapted from TSP; other blocks like the electrolyzer and the storage tanks where developed for a new hydrogen-dedicated library compatible with TSP.

Model simulation

54The model presented in Figure 8 and described in the previous subsection has been used to perform various dynamic simulations that have allowed to validate and better understand the physical behavior of the hydrogen platform.These simulations give as well an overview of the different types of predictions that can be performed with this model.

55For this purpose, three different scenarios have been considered.These dynamic simulations in which several events occur are described below together with graphs showing the evolution of key variables for each scenario.

56Scenario 1: the three electrolyzers are working during the whole simulation and at the beginning the hydrogen storage is being filled up.At 500s, the outlet mass flow rate of the storage is temporarily increased (see dotted red line in Figure 9).During this simulation it is possible to observe the filling of gaseous storage while there is no increase in the outlet mass flow rate, see continuous blue line in Figure 9 in which the evolution of the hydrogen mass in the first bottle (and only bottle in this simulation) of the gaseous storage is presented .When the outlet mass flow rate increases, it can be observed how the bottle is being emptied before resuming the filling at the end of the simulation.

57Scenario 2: as in the previous scenario, the three electrolyzers are working during the whole simulation and at 1200 seconds the valve of the storage branch of the platform is partially closed (as shown by Figure 10a).The consequence of closing this valve is directly observed in the storage inlet mass flow-rate evolution, see Figure 10b where a remarkable decrease is shown after 1200s.In addition to this important decrease, it is also possible to notice in the previous graph a small perturbation of the inlet mass flow-rate at around 800s.This reduction can be explained by the graph plotted in Figure 10c and in which the evolution of the hydrogen mass in the storage is represented: the blue line corresponds to the total hydrogen mass of the first bottle and the red one to the total hydrogen mass in the second bottle.The above-mentioned perturbation of the inlet mass flow-rate occurs when the switch between the filling of the first and second bottle occurs (corresponding to the moment at which the maximum allowed pressure in the first bottle is reached).The valve closing occurs therefore when the second bottle is being filled and the consequences can be observed in the red curve where the increase of the hydrogen mass in the second bottle is reduced (slope decrease) after 1200s.

58Scenario 3: contrary to the previous scenarios, in this

Discussion and Further Work

59In this paper, we illustrated how to use the latest version of ThermoSysPro Modelica-based library, the so-called V-4, in order to model a hydrogen platform where hydrogen is produced by three electrolyzers, stored in a storage station and consumed by a vehicle station.It turns out that one advantage of using TSP is that some components of TSP library can be reused and easily adapted to hydrogen modeling.In our case study, we created two new components in TSP (the electrolyzer and the storage station) and adapted the other components (the compressor, the pressure control valve and the heat exchanger).

60Even if the results obtained so far are already extremely encouraging and useful for the current studies, it is important to keep in mind that the modeled components have some limitations.For instance, the dynamics were neglected for the pipes, the heat exchanger and the electrolyzer.Also, the heat transfer equations might not be adapted for fast transients.Moreover, even though the last version of TSP can handle zero flow rate, this feature has not been tested in the present work and fast closing of valves may require solutions like multi-mode simulation for instance (Bouskela and El Hefni 2014a;Bouskela 2016).In addition, some simplifications have been made in the architecture of the gas plate with respect to a real installation.For example, here we only modeled the electrolyzer behaviour without considering the water purification or gas separation.We also merged the various compression and cooling stages into one single stage.

61Considering the above mentioned limitations, we argue that the model presented in this paper is good enough for what it was meant for: model a hydrogen platform at a large-scale with Modelica and show its potential applications.The model presented in this work shows how this modeling approach can be used in the design phase of an hydrogen platform (determine an adequate architecture, study the dynamic response of the platform, etc.) and could be used as well in the operation phase of the platform.In this later case, the model developed would correspond to an existing platform, and the results provided by this model could be combined to on-site measurements in order to provide accurate diagnosis.This diagnosis could be performed using advanced mathematical methods that allow to combine simulated and measured and that have recently been adapted to Modelica models such as Data Proceedings of the Modelica Conference 2023 October 9-11, 2023, Aachen, Germany DOI 10.3384/ecp204229 Assimilation (Corona Mesa-Moles, Argaud, et al. 2019;Corona Mesa-Moles, Henningsson, et al. 2021) or Data Reconciliation (Bouskela, Jardin, et al. 2021).

62In addition of the above-mentioned advanced uses of the models, in future work, the model developed could be used to optimize other systems of the hydrogen platform such as the associated instrumentation and control (using a linearized version of the model) or to perform technicaleconomic optimization.This kind of approach could be used as well to optimize the overall architecture of the hydrogen platform (number of electrolyzers, storage volume, number of branches for the fuelling station, etc.).In addition, this model can be easily enriched to include for example the source of energy used for the electrolyzers (for instance wind or solar energy sources).It is however important to keep in mind the possible simulation difficulties that may occur when increasing the size of the model or combining different kind of physics.Furthermore, the TSP developments to correctly model hydrogen based systems could be continued.For example, the library can be completed to model more detailed components and physical phenomena as needed or required to correctly model the behaviour of the real system.To reach this goal it is important to validate the models with experimental data, however, as far as we know, there is no publicly available data on real experiments to validate the developments presented in this article as a whole.For now, only validated models in the literature can be considered, such as the filling stations models (Kuroki et al. 2021) which have been validated with experimental data (SAE 2020).

Figure 1 .

63Figure 1.Case study model

Figure 2 .

64Figure 2. Model of Alkaline Electrolyzer with corresponding inputs and outputs

Figure 4 .

65Figure 4. Example of model components.

Figure 5 .

66Figure 5. Test model of the heat exchanger component

Figure 6 .

67Figure 6.Inversion temperatures for three real gases: nitrogen, hydrogen and helium (Central Michigan University 2013)

Figure 7 .

68Figure 7. Outlet temperature comparison for two valve models at variable outlet pressure

Figure 8 .Figure 9 .

69Figure 8. ThermoSysPro model of the hydrogen platform

( a )

70Figure 10.Scenario 2 simulation results

참고문헌 17건

  1. Generalizing the Thermodynamics State Relationships in KIVA-3V 2002 10.2172/809947
  2. Fundamental Equations of State for Parahydrogen, Normal Hydrogen, and Orthohydrogen Journal of Physical and Chemical Reference Data · American Institute of Physics · 2009 10.1063/1.3160306
  3. A physical solution for solving the zero-flow singularity in static thermal-hydraulics mixing models Linköping electronic conference proceedings · Linköping University Electronic Press · 2014 10.3384/ecp14096847
  4. Dynamic modeling and simulation of a small wind–fuel cell hybrid energy system Renewable Energy · Elsevier BV · 2004 10.1016/j.renene.2004.05.013
  5. Efficient simulation of Hybrid Renewable Energy Systems International Journal of Hydrogen Energy · Elsevier BV · 2016 10.1016/j.ijhydene.2016.06.019
  6. Multi-Mode Physical Modelling of a Drum Boiler Procedia Computer Science · Elsevier BV · 2016 10.1016/j.procs.2016.09.331
  7. Optimization and integration of hybrid renewable energy hydrogen fuel cell energy systems – A critical review Applied Energy · Elsevier BV · 2017 10.1016/j.apenergy.2017.03.132
  8. Modeling and simulation of complex ThermoSysPro model with OpenModelica - Dynamic Modeling of a combined cycle power plant Linköping electronic conference proceedings · Linköping University Electronic Press · 2017 10.3384/ecp17132407
  9. Modeling, Control and Power Management Strategy of a Grid connected Hybrid Energy System International Journal of Electrical and Computer Engineering (IJECE) · Institute of Advanced Engineering and Science (IAES) · 2018 10.11591/ijece.v8i3.pp1345-1356
  10. Modeling and Simulation of Thermal Power Plants with ThermoSysPro: A Theoretical Introduction and a Practical Guide 2019
  11. Robust Calibration of Complex ThermosysPro Models using Data Assimilation Techniques: Application on the Secondary System of a Pressurized Water Reactor Linköping electronic conference proceedings · Linköping University Electronic Press · 2019 10.3384/ecp19157553
  12. Renewable CO<sub>2</sub>recycling and synthetic fuel production in a marine environment Proceedings of the National Academy of Sciences · National Academy of Sciences · 2019 10.1073/pnas.1902335116
  13. Green Hydrogen Cost Reduction 2020
  14. Thermodynamic modeling of hydrogen fueling process from high-pressure storage tank to vehicle tank International Journal of Hydrogen Energy · Elsevier BV · 2021 10.1016/j.ijhydene.2021.04.037
  15. New Equation-based Method for Parameter and State Estimation Linköping electronic conference proceedings · Linköping University Electronic Press · 2021 10.3384/ecp21181129
  16. New Method to Perform Data Reconciliation with OpenModelica and ThermoSysPro Linköping electronic conference proceedings · Linköping University Electronic Press · 2021 10.3384/ecp21181453
  17. Modeling and Simulation of the Hydrogen Value Chain with ThermoSysPro and Modelica Linköping electronic conference proceedings · Linköping University Electronic Press · 2023 10.3384/ecp204229