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

Control-Oriented Modeling of the Cooling Process of a PEMFC-Based $\mu$ -CHP System

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

기본 정보

저자
  1. Santiago Navarro Giménez — Instituto Universitario de Automática e Informática Industrial, Universitat Politècnica de València, Valencia, Spain
  2. J.M. Herrero — Instituto Universitario de Automática e Informática Industrial, Universitat Politècnica de València, Valencia, Spain
  3. Xavier Blasco — Instituto Universitario de Automática e Informática Industrial, Universitat Politècnica de València, Valencia, Spain
  4. Raúl Simarro — Instituto Universitario de Automática e Informática Industrial, Universitat Politècnica de València, Valencia, Spain
DOI
10.1109/access.2019.2928632
저널
IEEE Access
발행년도
2019
발행기관
Institute of Electrical and Electronics Engineers
피인용수
17
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2019.2928632
토픽
Electrocatalysts for Energy Conversion
OpenAlex ID
W2923249078

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(5) 연료전지용 수분제어장치(가습기), (6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.90
근거 용어
PEMFC, stack temperature control, cooling system, dynamic model, micro-CHP
판단 근거
본 논문은 PEMFC(고분자전해질 연료전지) 스택의 온도 제어를 위한 냉각 시스템의 동적 모델링을 다루고 있습니다. 이는 코오롱인더스트리의 수소연료전지 사업 분야 중 MEA(7) 및 가습기(5) 등의 시스템 성능 및 내구성 최적화를 위한 상위 시스템 제어 연구와 밀접한 관련이 있습니다.
R&D 활용 포인트
PEMFC 스택의 열관리 및 냉각 시스템 최적화 모델링 기술을 통해 연료전지 구성 요소(MEA, 가습기 등)의 열적 안정성과 내구성을 예측하고 제어 로직을 설계하는 데 활용 가능합니다.
평가 입력
본문 96,963자 중 30,032자 발췌

초록

Micro-combined heat and power systems (μ-CHP) based on proton exchange membrane fuel cell stacks (PEMFC) are capable of supplying electricity and heat for the residential housing sector with a high energy efficiency and a low level of CO <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sub> emissions. For this reason, they are regarded as a promising technology for coping with the current environmental challenges. In these systems, the temperature control of the stack is crucial, since it has a direct impact on its durability and electrical efficiency. In order to design a good temperature control, however, a dynamic model of the μ-CHP cooling system is required. In this paper, we present a model of the cooling system of a PEMFC-based μ-CHP system, which is oriented to the design of the temperature control of the stack. The model has been developed from a μ-CHP system located in the laboratory of our research team, the predictive control and heuristic optimization group (CPOH). It is based on first principles, dynamic, non-linear, and has been validated against the experimental data. The model is implemented in Matlab/Simulink and the adjustment of its parameters was carried out using evolutionary optimization techniques. The methodology followed to obtain it is also described in detail. Both the model and the test data used for its adjustment and validation are accessible to anyone who wants to consult them. The results show that the model is able to faithfully represent the dynamics of the μ-CHP cooling system, so it is appropriate for the design of the stack temperature control.

본문 96,963자

본문 펼치기
Received May 28, 2019, accepted July 10, 2019, date of publication July 15, 2019, date of current version August 2, 2019. _Digital Object Identifier 10.1109/ACCESS.2019.2928632_ # Control-Oriented Modeling of the Cooling Process of a PEMFC-Based µ -CHP System SANTIAGO NAVARRO GIMÉNEZ, JUAN MANUEL HERRERO DURÁ, FRANCESC XAVIER BLASCO FERRAGUD, AND RAÚL SIMARRO FERNÁNDEZ Instituto Universitario de Automática e Informática Industrial, Universitat Politècnica de València, 46022 Valencia, Spain Corresponding author: Santiago Navarro Giménez (sannagi@etsii.upv.es) This work was supported in part by the Ministerio de Economía y Competitividad, Spain, under Grant DPI2015-71443-R and Grant RTI2018-096904-B-I00, and in part by the Local Administration Generalitat Valenciana under Project GV/2017/029. ABSTRACT Micro-combined heat and power systems ( _µ_ -CHP) based on proton exchange membrane fuel cell stacks (PEMFC) are capable of supplying electricity and heat for the residential housing sector with a high energy efficiency and a low level of _CO_ 2 emissions. For this reason, they are regarded as a promising technology for coping with the current environmental challenges. In these systems, the temperature control of the stack is crucial, since it has a direct impact on its durability and electrical efficiency. In order to design a good temperature control, however, a dynamic model of the _µ_ -CHP cooling system is required. In this paper, we present a model of the cooling system of a PEMFC-based _µ_ -CHP system, which is oriented to the design of the temperature control of the stack. The model has been developed from a _µ_ -CHP system located in the laboratory of our research team, the predictive control and heuristic optimization group (CPOH). It is based on first principles, dynamic, non-linear, and has been validated against the experimental data. The model is implemented in Matlab/Simulink and the adjustment of its parameters was carried out using evolutionary optimization techniques. The methodology followed to obtain it is also described in detail. Both the model and the test data used for its adjustment and validation are accessible to anyone who wants to consult them. The results show that the model is able to faithfully represent the dynamics of the _µ_ -CHP cooling system, so it is appropriate for the design of the stack temperature control. INDEX TERMS Micro CHP, PEM fuel cell, cooling system, modeling, dynamic, control. LIST OF SYMBOLS The following list includes all the symbols of the model. The list is ordered alphabetically. In the description of each symbol, besides its meaning and its units, it is indicated whether it represents a variable (V), a constant (C) or a parameter adjusted by the genetic algorithm (P). _ca_ Specific heat of air, C, _J_ _/_ ( _kg_ - _K_ ). _calTaout_ Correction coefficient of the calibration error of _Taout_, P, _K_ . _calTp_ 4 _out_ Correction coefficient of the calibration error of _Tp_ 4 _out_, P, _K_ . _calTwout_ Correction coefficient of the calibration error of _Twout_, P, _K_ . _Cfc_ Stack heat capacity, C, _J_ _/K_ . The associate editor coordinating the review of this manuscript and approving it for publication was Mouloud Denai. _cw_ Specific heat of water, C, _J_ _/_ ( _kg_ - _K_ ). _�T_ <sup>¯</sup> _ts_ Logarithmic mean temperature difference in the heat exchanger, V, _K_ . _�Ttsin_ Temperature difference between heat exchanger inlets (tube-shell), V, _K_ . _�Ttsout_ Temperature difference between heat exchanger outlets (tube-shell),V, _K_ . _Fa_ Air flow rate, V, _m_ <sup>3</sup> _/s_ . _Famax_ Maximum value of _Fa_, C, _l/min_ . _Famin_ Minimum value of _Fa_, C, _l/min_ . _Fw_ 1 Water flow rate (primary circuit), V, _m_ <sup>3</sup> _/s_ . _Fw_ 1 _max_ Maximum value of _Fw_ 1, C, _l/min_ . _Fw_ 1 _min_ Minimum value of _Fw_ 1, C, _l/min_ . _Fw_ 2 Water flow rate (secondary circuit), V, _m_ <sup>3</sup> _/s_ . _Fw_ 2 _max_ Maximum value of _Fw_ 2, C, _l/min_ . _Fw_ 2 _min_ Minimum value of _Fw_ 2, C, _l/min_ . _ha_ Air side heat transfer parameter in the stack, V, _W_ _/K_ . _hamax_ Value of _ha_ at _Famax_, P, _W_ _/K_ . _hamin_ Value of _ha_ at _Famin_, P, _W_ _/K_ . _haw_ Water-air interface heat transfer parameter in the stack, P, _W_ _/K_ . _he_ Conduction heat transfer parameter in the heat exchanger (wall), C, _W_ _/K_ . _hfcloss_ Stack-ambient heat transfer parameter, P, _W_ _/K_ . _hfc_ 1 Overall water-air heat transfer parameter in the stack, V, _W_ _/K_ . _hfc_ 2 Water-housing heat transfer parameter in the stack, V, _W_ _/K_ . _hfc_ 2 _max_ Value of _hfc_ 2 at _Fw_ 1 _max_, P, _W_ _/K_ . _hfc_ 2 _min_ Value of _hfc_ 2 at _Fw_ 1 _min_, P, _W_ _/K_ . _hp_ 1 _loss_ Water-ambient heat transfer parameter in pipe 1, P, _W_ _/K_ . _hp_ 4 _loss_ Water-ambient heat transfer parameter in pipe 4, P, _W_ _/K_ . _hr_ Water-ambient heat transfer parameter in the radiator, V, _W_ _/K_ . _hrOFF_ Value of _hr_ at _R_ = 0, V, _W_ _/K_ . _hrOFFmax_ Value of _hrOFF_ at _Fw_ 2 _max_, P, _W_ _/K_ . _hrOFFmin_ Value of _hrOFF_ at _Fw_ 2 _min_, P, _W_ _/K_ . _hrON_ Value of _hr_ at _R_ = 1, V, _W_ _/K_ . _hrONmax_ Value of _hrON_ at _Fw_ 2 _max_, P, _W_ _/K_ . _hrONmin_ Value of _hrON_ at _Fw_ 2 _min_, P, _W_ _/K_ . _hs_ Convection heat transfer parameter in the heat exchanger (shell side), V, _W_ _/K_ . _hsmax_ Value of _hs_ at _Fw_ 2 _max_, P, _W_ _/K_ . _hsmin_ Value of _hs_ at _Fw_ 2 _min_, P, _W_ _/K_ . _ht_ Convection heat transfer parameter in the heat exchanger (tube side), V, _W_ _/K_ . _htmax_ Value of _ht_ at _Fw_ 1 _max_, P, _W_ _/K_ . _htmin_ Value of _ht_ at _Fw_ 1 _min_, P, _W_ _/K_ . _hts_ Overall heat transfer parameter in the heat exchanger (tube-shell), V, _W_ _/K_ . _hw_ Water side heat transfer parameter in the stack, V, _W_ _/K_ . _hwmax_ Value of _hw_ at _Fw_ 1 _max_, P, _W_ _/K_ . _hwmin_ Value of _hw_ at _Fw_ 1 _min_, P, _W_ _/K_ . _i_ Electric current supplied by the stack, V, _A_ . _ka_ Product _ρaca_, P, _J_ _/_ ( _m_ <sup>3</sup> - _K_ ). _kw_ Product _ρwcw_, C, _J_ _/_ ( _m_ <sup>3</sup> - _K_ ). _nc_ Number of cells in the stack, C, _ud_ . _nch_ Number of channels in the heat exchanger, C, _ud_ . _�Qa_ Heat difference (stack air), V, _W_ . _Qfcloss_ Heat flow rate (stack-ambient), V, _W_ . _Qheat_ Heat flow rate generated by the reaction in the stack, V, _W_ . _�Qp_ 1 Heat difference (pipe 1), V, _W_ . _Qp_ 1 _loss_ Heat flow rate (pipe 1-ambient), V, _W_ . _�Qp_ 2 Heat difference (pipe 2), V, _W_ . _�Qp_ 3 Heat difference (pipe 3), V, _W_ . _�Qp_ 4 Heat difference (pipe 4), V, _W_ . _Qp_ 4 _loss_ Heat flow rate (pipe 4-ambient), V, _W_ . _Qre_ Heat flow rate (radiator-ambient), V, _W_ . _�Qr_ Heat difference (radiator), V, _W_ . _�Qs_ Heat difference (heat exchanger shell side), V, _W_ . _�Qt_ Heat difference (heat exchanger tube side), V, _W_ . _Qts_ Heat flow rate (tube-shell), V, _W_ . _�Qt_ 1 Heat difference (tank 1), V, _W_ . _�Qt_ 2 Heat difference (tank 2), V, _W_ . _Qwa_ Heat flow rate (water-air, in the stack), V, _W_ . _Qwfc_ Heat flow rate (water-housing, in the stack), V, _W_ . _�Qw_ Heat difference (stack water), V, _W_ . _R_ Radiator activation signal (ON/OFF), V, −. _ρa_ Air density, C, _kg/m_ <sup>3</sup> . _ρw_ Water density, C, _kg/m_ <sup>3</sup> . _T_ ¯ _a_ Average air temperature in the stack, V, _K_ . _Tain_ Air temperature (stack air inlet), V, _K_ . _Tamb_ Ambient temperature, V, _K_ . _Tambr_ Ambient temperature for the radiator, P, _K_ . _Taout_ Air temperature (stack air outlet), V, _K_ . _Tfc_ Stack housing temperature, V, _K_ . _T_ ¯ _p_ 1 Average water temperature in pipe 1, V, _K_ . _Tp_ 1 _in_ Water temperature (pipe 1 inlet), V, _K_ . _Tp_ 1 _out_ Water temperature (pipe 1 outlet), V, _K_ . _Tp_ 2 _in_ Water temperature (pipe 2 inlet), V, _K_ . _Tp_ 2 _out_ Water temperature (pipe 2 outlet), V, _K_ . _Tp_ 3 _in_ Water temperature (pipe 3 inlet), V, _K_ . _Tp_ 3 _out_ Water temperature (pipe 3 outlet), V, _K_ . _T_ ¯ _p_ 4 Average water temperature in pipe 4, V, _K_ . _Tp_ 4 _in_ Water temperature (pipe 4 inlet), V, _K_ . _Tp_ 4 _out_ Water temperature (pipe 4 outlet), V, _K_ . _T_ ¯ _r_ Average water temperature in radiator, V, _K_ . _Trin_ Water temperature (radiator inlet), V, _K_ . _Trout_ Water temperature (radiator outlet), V, _K_ . _Tsin_ Water temperature (heat exchanger shell inlet), V, _K_ . _Tsout_ Water temperature (heat exchanger shell outlet), V, _K_ . _Ttin_ Water temperature (heat exchanger tube inlet), V, _K_ . _Ttout_ Water temperature (heat exchanger tube outlet), V, _K_ . _Tt_ 1 Water temperature (tank 1), V, _K_ . _Tt_ 1 _in_ Water temperature (tank 1 inlet), V, _K_ . _Tt_ 2 Water temperature (tank 2), V, _K_ . _Tt_ 2 _in_ Water temperature (tank 2 inlet), V, _K_ . _T_ ¯ _w_ Average water temperature in the stack, V, _K_ . _Twin_ Water temperature (stack water inlet), V, _K_ . _Twout_ Water temperature (stack water outlet), V, _K_ . _v_ Stack voltage, V, _V_ . _Va_ Volume of air in the stack, P, _m_ <sup>3</sup> . _Vp_ 1 Volume of pipe 1, P, _m_ <sup>3</sup> . _Vp_ 2 Volume of pipe 2, C, _m_ <sup>3</sup> . _Vp_ 3 Volume of pipe 3, C, _m_ <sup>3</sup> . _Vp_ 4 Volume of pipe 4, P, _m_ <sup>3</sup> . _Vr_ Volume of water in the radiator, P, _m_ <sup>3</sup> . _Vs_ Volume of the heat exchanger shell, C, _m_ <sup>3</sup> . _Vt_ Volume of the heat exchanger tube, C, _m_ <sup>3</sup> . _Vt_ 1 Volume of tank 1, P, _m_ <sup>3</sup> . _Vt_ 2 Volume of tank 2, P, _m_ <sup>3</sup> . _Vw_ Volume of water in the stack, P, _m_ <sup>3</sup> . NOTE: In this paper, the symbol _h_ ( _W_ _/K_ ) is named ‘‘heat transfer parameter’’ and denotes the product of the overall heat transfer coefficient _U_ in _W_ _/_ ( _K_ - _m_ <sup>2</sup> ) and the heat transfer area _A_ in _m_ <sup>2</sup>, i.e. _h_ = _UA_ . I. INTRODUCTION Currently, there are serious environmental problems: global warming, air pollution and depletion of fossil fuel reserves. Governments are aware of it and they are taking measures to address them. New technologies in the energy sector can help to achieve these objectives. One of these technologies is _µ_ -CHP systems [1]–[4]. A _µ_ -CHP system produces electricity and heat (cogeneration) for the energy supply in the residential sector. The main advantage of these systems over traditional power generation systems is that they take advantage of the heat which is produced during the process of electrical energy generation, which results in a total energy efficiency that can exceed 90%, much higher than that of conventional systems, which is around 40%. Their high efficiency means lower fuel consumption, which leads to a reduction in the operating cost and a reduction in the amount of greenhouse gases emitted into the atmosphere [5]–[7]. There are several types of _µ_ -CHP systems, depending on the technology on which they are based: internal combustion engine, Stirling engine, turbines or fuel cells [8], [9]. Among them, the one based on proton exchange membrane fuel cell (PEMFC) is a promising option, because this first mover has some advantages over the rest: 1) high electrical efficiency, 2) low heat-to-power ratio, 3) low level of noise and 4) low level of _CO_ 2 emissions [5]–[7], [10]. There are already some commercial _µ_ -CHP systems based on PEMFC and the trend is upwards, but mass production has not been reached yet, because their prices are high [6], [7]. In order to overcome this frontier, it is necessary to advance in several technical aspects, with the aim of improving the performance of these systems and reducing their costs [10], [11]. One of the most important work areas and where there is a greater opportunity for improvement is the temperature control of the PEMFC. In effect, the correct design of the stack cooling system, which includes its control, plays a crucial role in the durability, cost, reliability and energy efficiency of the stack [11]–[18]. However, to design a good temperature control of the stack, it is necessary to have a good model of the cooling system. In the literature, there are several models of the cooling system of a PEMFC-based _µ_ -CHP system [19]–[26], [31]. There are also thermal models of PEMFCs which are interesting in the context of this work, although they do not belong to _µ_ -CHP applications [13], [27]–[30], [32], i.e. they do not contemplate a heat recovery subsystem, which is an essential unit of a _µ_ -CHP system [7]. However, most of the models of the first group are static, not dynamic, and to develop a temperature control a dynamic model is needed. Moreover, few have been validated against test data from a real system. Therefore, there is a need for dynamic models that have been experimentally validated [5], [33]. For example, Ahn and Choe [13] developed a control-oriented model of a PEMFC stack cooling system. This model is dynamic and based on first principles, but it was not empirically validated. Cozzolino _et al._ [19] obtained a model of the cooling system of a PEMFC-based _µ_ -CHP system and they validated it experimentally against a real system. However, their model is static, not dynamic. Barelli _et_ _al._ [20] presented a dynamic model of a complete PEMFC-based _µ_ -CHP system, including the cooling system. They used it to analyze the behavior of their _µ_ -CHP system in response to variable electrical and thermal demands, but it is a linear model that represents the system only around an operating point and it was not validated experimentally. Asensio _et_ _al._ [21] proposed a control-oriented model of the cooling system of a 600W PEMFC stack. The stack is cooled by water and is integrated into a laboratory equipment that emulates a real _µ_ -CHP system. This model is able to provide the stack temperature as a function of the water flow rate, the stack inlet water temperature and the electric current demanded, but this model is static, not dynamic, and it was experimentally validated only for a value of the water flow rate (1 l/min), i.e. at an operating point. For an overview of the thermal models found in the literature and their main characteristics, see Appendix B. In this paper, we present a model of the cooling system of a PEMFC-based _µ_ -CHP system, which includes both the stack and the heat recovery unit. The purpose of this model is to be useful for the design of the temperature control of the PEMFC stack. The model is based on a real system which is located in our laboratory. It has been adjusted by means of an evolutionary optimization algorithm, in particular a genetic algorithm (GA). It is a first principles model, non-linear, dynamic and has been experimentally validated. A model of these characteristics (dynamic and experimentally validated) is helpful for the design of the stack temperature control and, according to the bibliographic evidence supplied in this introduction and in Appendix B, it represents a relevant contribution to the existing body of knowledge in the subject area of _µ_ -CHP Modeling. The rest of the article is structured as follows: In Section II, we present the complete _µ_ -CHP system that we have in our laboratory. In Section III, we describe the part of the _µ_ -CHP system that is going to be modeled (the cooling system), the modeling methodology, the tests performed for the adjustment and validation of the model, the genetic optimization FIGURE 1. The _µ_ -CHP system. The PEMFC stack is fed with hydrogen and air, and generates electricity and heat. The electronic load emulates electrical energy demands and the fan-cooled radiator emulates thermal energy demands. The hot water tank serves as a buffer where heat can be stored. The whole system is controlled by a control unit, which is based on a CompactRIO from National Instruments. algorithm used for its adjustment, and the equations of the model. In Section IV, we present the results and discuss them. Finally, in Section V, we conclude. II. DESCRIPTION OF THE MICRO-CHP SYSTEM In this section, we describe the _µ_ -CHP system on which the tests were carried out and whose cooling system we model. Fig. 1 shows the complete system. The core of the _µ_ -CHP system is the PEMFC stack, which is from the company Nedstack, model 2.0HP. The stack consumes hydrogen and oxygen, and produces power and heat. It is able to produce up to 2 kW of electrical energy and 3.3 kW of thermal energy. The electrical energy is consumed by an electronic load and the thermal energy is removed from the stack by means of a water cooling system and then transferred, through the heat exchanger, to a hot water tank that serves as a buffer of heat. This is the part of the system that we model, the cooling system (i.e. the stack and the heat recovery unit, see Fig. 3), and will be described in detail in Section III-A. The supply of oxygen comes from an external air compressor and the supply of hydrogen from a pressurized bottle. A mass flow meter and a proportional valve are installed in each supply line. By means of these devices the supply flow rates can be measured and varied depending on the electrical energy demanded by the electronic load. Both air and hydrogen must enter the stack under certain conditions of temperature and humidity. In order to condition them, the equipment includes a heating and humidification system. This system takes part of the humidity and heat present in the air at the stack air outlet and transfers them to the supply gases. The electronic load demands electrical energy from the stack, by requiring an electrical current ( _i_ ). In order to generate this current the stack must be fed with hydrogen and oxygen (which is taken from the air supply). The amount of these gases to be supplied to the stack depends on the electrical current demanded. The hydrogen supply flow rate is _FH_ 2, which enters the stack at a temperature of _TH_ 2 _in_ ; the air supply flow rate is _Fa_, which enters the stack at a temperature of _Tain_ . Both flows enter the stack at a relative humidity of 40% (calculated at stack temperature). Periodically, the circuit of hydrogen is purged, in order to remove impurities inside the stack and avoid its flooding. This is done by a valve which is activated by the signal _UH_ 2 _purge_ . The exhaust air from the stack leaves the stack at a temperature of _Taout_ and at a relative humidity of 100%. It is possible to program profiles of electrical demand in the electronic load and, in this way, to emulate the electrical consumption of a house (lighting and appliances). The equipment also has a fan-cooled radiator through which it is possible to emulate the thermal energy consumption (heating and hot water). This radiator, however, works only in two states, FIGURE 2. Main screen of the SCADA implemented in LabView for the monitoring and operation of the _µ_ -CHP system. on and off. When on, it extracts heat from the secondary circuit of the cooling system. Several magnitudes have to be controlled to ensure the correct operation of the system: inlet and outlet water temperature of the stack, air supply flow rate, hydrogen pressure at the stack anode inlet, and the relative humidity and the temperature of air and hydrogen supply flows. For this, the equipment includes several sensors and actuators, which are connected to a control unit based on a CompactRIO from National Instruments. The controllers of these magnitudes are implemented within this control unit. There are a total of six control loops. The CompactRIO communicates with a PC via Ethernet. A Supervisory Control and Data Acquisition (SCADA) system runs on the PC, by which it is possible to monitor the process, to log its signals, to change the set point of any control loop and to parameterize the controllers. Fig. 2 shows its main screen. The SCADA and the control system that runs on the CompactRIO have been implemented in LabView. The facility that has been described ( _µ_ -CHP system, SCADA and control unit) is an open system and, consequently, very flexible when it comes to making modifications in it or performing tests. The system has been conceived so that research and development activities aimed at optimizing the performance of _µ_ -CHP systems can be conducted, with an emphasis on energy efficiency improvement, and this in two areas: control and energy management. The model that we present in this article is the first result of this line of work. III. MODELING In this section we describe, first, the part of the _µ_ -CHP that we model, i.e. the stack cooling system (Section III-A), the modeling methodology (Section III-B), the tests conducted to obtain the model and to validate it (Section III-C), and the optimization algorithm used to adjust the parameters of the model (Section III-D). Then, we introduce the four submodels that together constitute the complete model, as well as their equations and the assumptions assumed in their conception (Sections III-E, III-F, III-G and III-H). Finally, we present the complete model (Section III-I). _A._ _THE COOLING SYSTEM_ The cooling system of the _µ_ -CHP plant which was presented in Section II is shown in Fig. 3 and is described in detail in this section. It consists of two water circuits, the primary circuit and the secondary circuit, coupled by a heat exchanger. The water of the primary circuit, which passes through the stack, is demineralized water, with a conductivity lower than 10 _µS/cm_ . The stack generates the electrical energy required by the electronic load and, as a by-product, produces heat within itself. The stack voltage ( _v_ ) depends on the electrical current demanded ( _i_ ) and on the temperature of the stack, among other variables, and is determined by the characteristic curve of the stack. The heat generated by the stack is removed by the water flow of the primary circuit ( _Fw_ 1) and transferred to the secondary circuit through the heat exchanger. This heat finally ends up in the hot water tank (tank 2), which serves as a heat storage. Pump 1 propels the water in the primary circuit and operates in steady state ( _UP_ 1 = 100%). The water flow that passes through the stack ( _Fw_ 1) is regulated by the motorized valve installed after pump 1 ( _Uv_ ). There is an internal control loop of _Fw_ 1, so a user (or a controller) can directly assign set points FIGURE 3. Diagram of the PEMFC stack cooling system. to _Fw_ 1 without having to worry about the motorized valve. This water flow rate is measured with a flow meter. By varying _Fw_ 1 it is possible to vary the amount of heat extracted from the stack. If _Fw_ 1 increases, more heat is extracted and the stack cools down. If it decreases, less heat is removed and the stack heats up. The outlet water temperature of the stack ( _Twout_ ) is used as a measure of the temperature of the stack. The radiator emulates the demand of thermal energy. This radiator is activated by the signal _R_ and has two states, on and off. When the radiator is on, it extracts heat from the secondary circuit and evacuates it to the environment, as a result the water temperature in tank 2 ( _Tt_ 2) decreases. When the radiator is off, the heat losses in the system are residual, although they exist. These residual losses are due to the transfer of heat from all the elements of the system to the environment. The ambient temperature is, therefore, a relevant variable in the process. A temperature sensor is installed for its measurement ( _Tamb_ ). The water flow rate of the secondary circuit ( _Fw_ 2) is varied by means of the control signal of pump 2 ( _UP_ 2), which is driven by a variable-speed drive. Like _Fw_ 1, _Fw_ 2 is also internally controlled. The flow rate _Fw_ 2 is estimated from a measurement of the pressure at the inlet of the heat exchanger shell ( _Psin_ ). If this flow rate decreases, the amount of heat transferred through the heat exchanger also decreases, as a result less heat passes from the primary circuit to the secondary circuit, and this causes the water temperature at the stack inlet ( _Twin_ ) to increase; and vice versa, if the flow rate _Fw_ 2 increases, the amount of heat transferred from the primary to the secondary circuit increases and the temperature of the water entering the stack decreases. For the stack to work properly, there must be a temperature control system that maintains _Twout_ and _Twin_ at its set points, minimizing the effect of the disturbances to which these signals will be subjected as a result of changes in the demands of electrical and thermal energy. The set points of _Twout_ and _Twin_ are, on the recommendation of the stack manufacturer, 65 <sup>◦</sup> C and 60 <sup>◦</sup> C, respectively. This control system will manipulate the flows _Fw_ 1 and _Fw_ 2, which, as we have seen, have an influence on those temperatures and, consequently, serve as manipulable variables. This temperature control system, as noted in the Introduction, is of great importance, since the electrical efficiency and lifetime of the stack depend on it. Currently, a relatively simple temperature control system is implemented. This control consists of two proportional-integral (PI) controllers, one for each temperature, which were adjusted using a linear model of the process. The non-linear model that we present in this work would enable a control engineer to develop a more sophisticated temperature control and, consequently, to improve the efficiency and lifetime of the stack. _B._ _MODELING METHODOLOGY_ The methodology used for the development of the model consists of the following stages: A) To delimit the part of the _µ_ -CHP system that we want to model (the cooling system), specifying its inputs and outputs. B) Definition of the range of validity of the model. C) Conceptual division of the cooling system into subsys tems, specifying the inputs and outputs of each subsystem. D) Modeling and validation of each subsystem separately. E) Interconnection of the submodels obtained in the pre vious stage to build the complete model. F) Fine adjustment of the complete model. G) Validation of the complete model. The modeling and validation of each subsystem (stage D) is divided, in turn, into the following steps: 1) Identification of the main elements of the subsystem. 2) Identification of the natural phenomena involved in the operation of these elements as well as the physical principles that govern them. 3) Introduction of simplifying hypotheses. 4) Determination of the structure of the submodel (set of equations) and its parameters, which is based on the physical principles and simplifying hypotheses. 5) Adjustment of the parameters of the submodel. 6) Evaluation of the results of the adjustment. If OK, validation (step 7); if not OK, revision of the simplifying hypotheses (step 3). 7) Validation of the submodel. If OK, the submodel is released; if not OK, revision of the simplifying hypotheses (step 3). The part of the _µ_ -CHP plant that we want to model is the cooling system. This system was described in Section III-A and is represented in Fig. 3. Note that here we consider this system as _a_ _thermal_ _process_ . This is important, because the selection of input and output signals that we detail below can only be understood in light of that fact. The signals that we consider as inputs to the system and as outputs are indicated in Fig. 3, the inputs in red and the outputs in blue. The electric current ( _i_ ) and the stack voltage ( _v_ ) provided by the stack are, considering the system as a thermal process, inputs, because the voltage and the current of the stack determine the amount of thermal energy it produces. The signals _FH_ 2 and _TH_ 2 _in_ are also, from this point of view, inputs to the system ( _UH_ 2 _purge_ only affects _FH_ 2). However, we decided to ignore them, because the influence of the hydrogen flow rate and its temperature on the system turned out to be negligible, in comparison with the effect of the air flow rate ( _Fa_ ) and its temperature ( _Tain_ ), which we do take into account. The signals _Fw_ 1 and _Fw_ 2 are inputs to the system. In fact, these are the variables which any temperature control will have to manipulate to control the temperature of the stack. The ambient temperature _Tamb_ is also considered as an input, because it affects the thermal behavior of the system, just like _R_, the activation signal of the radiator. The signals chosen as outputs are: _Twout_, _Twin_, _Tt_ 2, _Taout_, _Tsin_ and _Tsout_ . In general, the range of validity of a model, i.e. the range of operation within which the model is intended to represent the process, depends on the purpose of the model. In our case, the purpose of the model is to serve for the design of the stack temperature control. By taking into account this basic consideration, we established that the model had to be valid for current demands ( _i_ ) between 140 A and 200 A, and for water temperatures in tank 2 ( _Tt_ 2) between 53 <sup>◦</sup> C and 56 <sup>◦</sup> C. Outside these ranges, no controller will be able to keep _Twout_ and _Twin_ at their set points, because its control actions ( _Fw_ 1 and _Fw_ 2) saturate if these ranges are exceeded. This is simply a physical restriction of the system. Since our model is oriented towards control design, further increasing its range of validity would increase the complexity of the model without adding any additional value to its purpose. The cooling system was divided into four subsystems: SS1, SS2, SS3 and SS4 (see Fig. 3). Each of these subsystems was modeled independently, giving rise to submodels SM1, SM2, SM3 and SM4 (see Fig. 11). The adjustments of the parameters of the models, both those of the submodels (step 5) and the fine adjustment of the complete model (stage F), were made using the data set from the test for modeling (setM). The validations (stage G and step 7) were performed using the data set from the test for validation (setV). These two tests are described in detail in Section III-C. Note that the process of modeling is iterative: if the results of the adjustment of a submodel (step 6) or its validation (step 7) are unsatisfactory, one goes back to step 3 to revise the simplifying hypotheses. This is because it is not always easy to determine a priori which physical phenomena are relevant and which are not. In the same way, it is not self-evident to what extent the equations representing these physical phenomena can be simplified without this entailing a deterioration in the capacity of the submodel for representing reality. What we were looking for was a model in first principles, suitable for the design of a temperature control, but not unnecessarily complicated. Therefore, in practice, for each submodel we started with a simple structure and evaluated the goodness of its adjustment. If it was insufficient, we revised the simplifying assumptions and incorporated more complexity, until the adjustment and the validation satisfied our expectations. For example, when modeling the radiator, we initially assumed that the heat transfer parameters to the ambient for the states ON and OFF ( _hrON_ and _hrOFF_ ) were constant. Under this hypothesis, the adjustment achieved by the optimization algorithm displayed an intolerable discrepancy with respect to the test data. This fact led us to revise that hypothesis, assuming now that those heat transfer parameters depended on the water flow rate of the secondary circuit ( _Fw_ 2), which is the water flow that passes through the radiator. The new adjustment improved substantially and, in addition, this improvement could be quantified. It is interesting to note that in some cases the opposite happened, that is, the results of the adjustment indicated that a certain physical phenomenon that had been considered as relevant was not. For example, it was initially assumed that there was a loss of heat between the water in tank 2 and the environment, and that the corresponding heat transfer parameter could be approximated by a constant. When adjusting submodel SM4, to which tank 2 belongs, the optimization algorithm returned a value close to 0 _W_ _/K_ for that coefficient. This informed us that that phenomenon, which we had assumed as relevant, was in fact negligible. Additionally, during the analysis of the adjustment of each submodel, we paid attention to the values of the parameters provided by the optimization algorithm and we checked whether these values were plausible or not. We could do this because the submodels are expressed in first principles, so their parameters have a direct physical sense. If the value of any of the parameters was unlikely, this was a clue that possibly there was some other relevant phenomenon that we were not considering, whose effect was being absorbed, incorrectly, by that parameter. The fact that the model is formulated in first principles represented still another advantage during the modeling process: since the parameters of the model have a clear physical sense, it is simple and intuitive to estimate an initial search range for each of them. Once again, the analysis of the adjustment guided us in this task: when the search of a parameter tried to exit its search range, this suggested an increase in the limits of the search range of that parameter. As can be seen, the analysis of the adjustment provided by the optimization algorithm gives many clues about which physical phenomena are relevant and are not being considered, and vice versa, which physical phenomena that were incorporated into the model are not relevant. For this reason, it serves as a starting point for the revision of the simplifying hypotheses. This is a useful help for the modeler, because it allows them to find, through this iterative process, the desired trade-off between model complexity and goodness of fit. The adjustment of the parameters of each submodel (step 5) consists in finding the set of values of these parameters that provides the ‘‘best’’ fit between the submodel response and the experimental data from the test for modeling (setM), which means to solve an optimization problem. To quantify the goodness of the fit, i.e. what ‘‘best’’ means, we used an index. The formulation of the optimization problem and the index will be described in detail in Section III-D. As in any optimization problem, here there arises the difficulty that the cost function to be optimized (i.e. the index) presents local minimums and that the optimization algorithm, instead of finding the global optimum, is trapped in one of these local minimums. In our case, since we are dealing with the adjustment of a non-linear model with a lot of parameters, the probability that there are local minimums is high. To cope with this problem we did two things. First, we employed a genetic algorithm as optimization algorithm, because genetic algorithms have proven to be effective as global optimizers. Moreover, our research team has experience in their use. Second, we launched the algorithm three times (in parallel) for each adjustment. In this way, since the genetic algorithm begins with a random population, if the three executions of the algorithm returned the same solution, this was a reasonable proof that this solution was precisely the global optimum. It should be added that the search space was discretized. That is, for each parameter, apart from its range of values, which defines the search space for that parameter, a minimum step was defined. For example, for a given heat transfer parameter the range could be from 0 to 10 W/K and the step 0.1 W/K; this would result in a set of 101 possible values for that parameter. The discretization of the search space makes optimization more efficient. The determination of the minimum steps is intuitive, thanks to the fact that the model is expressed in first principles. In addition, the minimum steps can be revised if the accuracy of the adjustment is unsatisfactory. In order to evaluate the adjustment of each submodel (step 6), we used, on the one hand, the aforementioned cost function, which gives an objective measure of the goodness of the adjustment and, on the other hand, a visual comparison of the submodel response with the test data. This comparison allowed an assessment of how well the submodel was able to capture the dynamics of the plant, regardless of its accuracy, i.e. regardless of the value of the cost function. The process of modeling, adjustment and validation of each submodel ends with a set of values, namely, the values of the parameters of the submodel that minimize the cost function. Once the four submodels were adjusted and validated independently, they were merged to form the complete model (see Fig. 11). A fine adjustment of the parameters of the complete model was then carried out (step F), by using again the optimization algorithm. On this occasion, the set of values of the parameters of the submodels already adjusted was included, as a starting solution, in the initial population of the algorithm. In addition, search ranges were narrowed and minimum steps were also reduced. This fine adjustment was launched three times too. In this way, we obtained the final set of values for all the parameters of the complete model. Finally, once the complete model was adjusted, it was validated against the data set from the validation test. _C._ _MODELING AND VALIDATION TESTS_ The tests were conducted on the _µ_ -CHP system by using the SCADA implemented in LabView (Fig. 2). Two tests were carried out: 1) one test for the modeling and for the adjustment of the parameters and 2) one test for the validation of the model. They were conducted on different days, the test for modeling on 10/13/2017 and the test for validation on 10/17/2017, and both have an approximate duration of 2.5 hours. In both tests, the process was excited by FIGURE 4. Signals applied to the inputs of the cooling process during the test for modeling and adjustment of the parameters of the model. manipulating the variables _i_, _Fw_ 1, _Fw_ 2 and _R_, that is, the electrical energy demand, the water flow rates of the primary and secondary circuits, and the thermal energy demand. These signals are represented in Fig. 4 (test for modeling) and in Fig. 5 (test for validation). In addition, the following signals were measured and recorded: on the one hand, _Twout_, _Twin_, _Tt_ 2, _Taout_, _Tsin_ and _Tsout_ (which are the output signals of the process and will be presented in Section IV, where the adjustment and validation results are displayed) and, on the other hand, _Tamb_, _v_, _Tain_ and _Fa_ . These last signals, remember, are also inputs to the process, but not manipulable. For reasons of simplicity and clarity, these last signals have not been included in the figures. The tests are step tests. This is relevant for two reasons. First, because in a real _µ_ -CHP system the electrical and thermal energy demands (in our system, _i_ and _R_ ) have usually the form of steps. Second, because a temperature controller may apply also high frequency control actions (in our system, _Fw_ 1 and _Fw_ 2) in response to disturbances. Therefore, the fast dynamics of the process must be captured by the model. Both tests are analogous in nature (step tests), although quantitatively different (they differ in the values of the steps and in their sequence). The tests were carried out in open loop. This was done to prevent the PI controllers from attenuating the mutual effects produced by the programmed steps in the manipulated variables, which would have partially concealed the dynamics of the system. For example, a change in _Fw_ 1 affects _Twout_, but also _Twin_, so the controller of _Twin_ will act on _Fw_ 2 to counteract the disturbance produced by _Fw_ 1 ; as a result the effect of _Fw_ 1 on _Twin_ will be attenuated and it will be difficult to identify. Again, it is important that the model (since it is a model oriented to control) captures the dynamics of the process well, because if the control designed is based on a model that does not satisfy that requirement, such a control could make the process unstable, especially if it is an aggressive control. _D._ _THE OPTIMIZATION ALGORITHM_ The parameters of each of the four submodels are adjusted using the data set from the modeling test (step 5). This adjustment task is formulated as an optimization problem and this problem is solved by an optimization algorithm. Given the mathematical structure of a submodel, expressed in its general form as a set of non-linear differential equations: _x_ ˙( _t_ ) = _f_ ( _x_ ( _t_ ) _,_ _u_ ( _t_ ) _,_ _θ_ ) (1) _y_ ( _t_ ) = _g_ ( _x_ ( _t_ ) _,_ _u_ ( _t_ ) _,_ _θ_ ) (2) where _u_ ( _t_ ) are the inputs, _y_ ( _t_ ) the outputs, _x_ ( _t_ ) the state variables and _θ_ = [ _θ_ 1 _, ..., θn_ ] the vector of parameters to be adjusted, the optimization problem consists in finding the set of values of _θ_ that minimize a certain cost function ( _J_ ), which FIGURE 5. Signals applied to the inputs of the cooling process during the test for the validation of the model. measures the goodness of fit of the model against the real data. This is to say: min _J_ ( _θ_ ) (3) _θ_ subject to the following restrictions: _<u>θi</u>_ ≤ _θi_ ≤ _θi,_ _i_ = [1 _, ..., n_ ] (4) Basically, these restrictions define the search space, in other words, _<u>θi</u>_ and _θi_ are the lower and upper limits of the search range of the parameter _θi_ . Solving that optimization problem is precisely what the optimization algorithm does. There are several ways in which the cost function can be defined. We defined it as: all the errors in the submodel outputs have the same relative importance. In short, the optimization algorithm takes as inputs: 1) the mathematical structure of the submodel, 2) the modeling test (setM), 3) the cost function ( _J_ ) and 4) the search space; and it returns the values of the parameters of the submodel that minimize the cost function. The optimization algorithm used is a genetic algorithm. In particular, we use the genetic algorithm described in [40], available in Matlab Central, at https://es.mathworks.com/matlabcentral/fileexchange/ 39021-basic-genetic-algorithm?s_tid=prof_contriblnk. _E._ _SUBMODEL 1 (SM1)_ The subsystem (SS1) corresponding to this submodel (SM1) consists of a single element, the PEMFC stack (see Fig. 3). The inputs of this submodel are _Fa_, _Tamb_, _Tain_, _v_, _i_, _Twin_ and _Fw_ 1; and its outputs are: _Twout_ and _Taout_ (see Fig. 11). The parameters to be adjusted in this submodel are: _Vw_, _Va_, _ka_, _hfc_ 2 _max_, _hfc_ 2 _min_, _hfcloss_, _hamax_, _hamin_, _hwmax_, _hwmin_, _haw_, _calTwout_ and _calTaout_ . These signals and parameters will be explained below, as the equations of this submodel are introduced. But first, a clarifying note: In this section and in the three that follow, we describe the equations of each element of the submodels. The binding equations, i.e. the equations that model the connections between elements within a submodel or between submodels within the complete model, _J_ = _n_ _k_ =1 _Jk_ (5) where: _Jk_ = <sup><u>1</u></sup> _T_ - _T_ 0 �� _y_ ˆ _k_ ( _t_ ) − _yk_ ( _t_ )�� _dt_ (6) where _n_ is the number of outputs, _y_ ˆ _k_ ( _t_ ) is the output _k_ of the process, _yk_ ( _t_ ) the output _k_ of the submodel and _T_ is the duration of the test. That is to say, what is minimized ( _J_ ) is the sum of the average errors in the outputs of each submodel. Note that, due to the way in which the index has been defined, for example _Twin_ = _Tp_ 1 _out_, we do not specify them, since they are trivial just by looking at Fig. 11, where they are represented by arrows. Moreover, since a lot of the equations are based on the same modeling principles, we have included the Appendix A’, where the five most common modeling principles are numbered and summarized in a table (Table 5). In order to simplify the introduction of the equations and to avoid unnecessary repetitions, we will refer to these modeling principles (MP) throughout the following four sections. The PEMFC stack working principle diagram that we have assumed is displayed in Fig. 6. It shows the physical phenomena that have been considered as relevant, as well as the main variables, constants and parameters involved. FIGURE 6. Thermal phenomena assumed in the PEMFC stack. Part of the heat generated by the electrochemical reaction ( _Qheat_ ) is evacuated by the water flow running through the primary circuit of the cooling system, the rest is transferred to the air ( _Qwa_ ) and to the shell of the stack ( _Qwfc_ ). Two electrochemical reactions take place at each cell of the stack. At the anode: _H_ 2 → 2 _H_ <sup>+</sup> + 2 _e_ <sup>−</sup> (7) At the cathode: <u>1</u> (8) 2 <sup>_O_</sup> <sup>2 + 2</sup> <sup>_H_</sup> <sup>+ + 2</sup> <sup>_e_</sup> <sup>−</sup> <sup>→</sup> <sup>_H_</sup> <sup>2</sup> <sup>_O_</sup> The maximum electrical energy that a cell can produce is given by the Gibbs free energy: _We_ = − _�G_ (9) And the ideal potential of the cell is: _Ec_ = <sup>−</sup> <sup>_�G_</sup> (10) _nF_ where _n_ is the number of electrons released in the reaction (two) and _F_ is Faraday’s constant (96485 _As/mol_ ). At 25 <sup>◦</sup> C and atmospheric pressure _Ec_ = 1 _._ 23 V (ideal standard potential). Therefore, the maximum electrical energy that the stack can generate, assuming that there are no losses of any kind (ideal situation), is: _Pemax_ = _nc_ - _Ec_ - _i_ ( _t_ ) (11) where _nc_ is the number of cells of the stack (16 cells) and _i_ is the electric current generated. However, the electric power actually available between the terminals of the stack is lower and it is given by: _Pe_ ( _t_ ) = _v_ ( _t_ ) _i_ ( _t_ ) (12) where _v_ is the voltage between the terminals of the stack. The difference between the ideal electrical energy and the electrical energy actually available corresponds to the energy that the stack produces in the form of heat, which is _nc_ (13) _Qheat_ ( _t_ ) = _i_ ( _t_ ) �1 _._ 23 − <sup>_<u>v</u>_</sup> <sup><u>(</u></sup> <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> _nc_ Both signals _v_ and _i_ are inputs to this submodel and they were measured during the tests. Part of this heat is extracted by the water flow of the primary circuit, another part passes to the air that runs through the stack ( _Qwa_ ) and the rest is transferred to the stack shell ( _Qwfc_ ). Thus, the evolution of the water temperature at the stack outlet can be expressed as: _kwVw_ _<u>dTwout</u>_ <u>(</u> _<u>t</u>_ <u>)</u> = _�Qw_ ( _t_ ) + _Qheat_ ( _t_ ) _dt_ - _Qwfc_ ( _t_ ) − _Qwa_ ( _t_ ) (14) The constant _kw_ is the product _cwρw_ ; _cw_ is the specific heat of the water and _ρw_ the density of the water, both of them for a water temperature of 60 <sup>◦</sup> C, which we assume as a representative value of the water temperature in both the primary and the secondary circuits. The values of these two parameters were taken from [39] and their product gives _kw_ = 4112120 _._ 21 _J_ _/m_ <sup>3</sup> _K_ . The volume _Vw_ is the volume of water inside the stack and it is a parameter to be adjusted by the optimization algorithm. The heat difference _�Qw_ is calculated according to MP2 ( _F_ = _Fw_ 1, _Tin_ = _Twin_, _Tout_ = _Twout_, _k_ = _kw_ ) and corresponds to the amount of heat that is removed from the stack by the water flow of the primary circuit. The amount of heat transferred from the water to the stack shell is: _Qwfc_ ( _t_ ) = _hfc_ 2 ( _t_ )[ _T_ <sup>¯</sup> _w_ ( _t_ ) − _Tfc_ ( _t_ )] (15) which depends, on the one hand, on the temperature gradient between the temperature of the water inside the stack ( _T_ <sup>¯</sup> _w_ ) and the temperature of the stack shell ( _Tfc_ ), and on the other hand, on the heat transfer parameter _hfc_ 2. As a representative value of the temperature of the water inside the stack, we chose the average temperature between the temperature of the water at the stack inlet and the temperature of the water at the stack outlet (MP4: _Tin_ = _Twin_, _Tout_ = _Twout_ ). The heat transfer parameter _hfc_ 2 is assumed to depend on the water flow, according to MP5 ( _hmin_ = _hfc_ 2 _min_, _hmax_ = _hfc_ 2 _max_, _Fmin_ = _Fw_ 1 _min_, _Fmax_ = _Fw_ 1 _max_, _F_ = _Fw_ 1). That is to say, it has been assumed (as an approximation) that there is a linear relationship between the water flow rate _Fw_ 1 and the heat transfer parameter _hfc_ 2, i.e. the higher the water flow rate, the more heat will be transferred from the water to the stack shell, for a given temperature gradient. Note that this relation between _hfc_ 2 and _Fw_ 1 is the result of a trial and error process, as we explained in Section III-B. _Fw_ 1 _min_ and _Fw_ 1 _max_ are the minimum and the maximum values of _Fw_ 1, 2 _._ 9005·10 <sup>−5</sup> _m_ <sup>3</sup> _/s_ (1.74 liters/minute) and 1 _._ 1657·10 <sup>−4</sup> _m_ <sup>3</sup> _/s_ (6.99 liters/minute), respectively. The constants _hfc_ 2 _min_ and _hfc_ 2 _max_ are the minimum and the maximum values of _hfc_ 2, and they are parameters to be adjusted by the optimization algorithm. The heat flow rate transferred from water to air is given by: _Qwa_ ( _t_ ) = _hfc_ 1( _t_ )[ _T_ <sup>¯</sup> _w_ ( _t_ ) − _T_ <sup>¯</sup> _a_ ( _t_ )] (16) which depends, on the one hand, on the temperature gradient between the temperature of the water inside the stack ( _T_ <sup>¯</sup> _w_ ) and the temperature of the air inside the stack ( _T_ <sup>¯</sup> _a_ ), and on the other hand, on the heat transfer parameter _hfc_ 1. Here also, a representative value of the temperature of the air inside the stack ( _T_ <sup>¯</sup> _a_ ) is calculated after MP4 ( _Tin_ = _Tain_, _Tout_ = _Taout_ ). The overall heat transfer parameter between the water and the air ( _hfc_ 1) is calculated from three independent heat transfer parameters ( _hw_, _ha_ and _haw_ ), according to the following equation: The heat transferred from the water to the stack shell ( _Qwfc_ ) will cause the temperature of the stack shell ( _Tfc_ ) to increase, according to the following expression: _Cfc_ _dTfc_ ( _t_ ) = _Qwfc_ ( _t_ ) − _Qfcloss_ ( _t_ ) (19) _dt_ <u>1</u> _hfc_ 1( _t_ ) = <u>1</u> <u>1</u> _hw_ ( _t_ ) <sup>+</sup> _haw_ <u>1</u> + _ha_ ( _t_ ) _Cfc_ is the stack heat capacity. This constant is calculated theoretically as the product of the mass of the stack, 14.3 kg, and the specific heat of aluminum, 905 _J_ _/kg_ - _K_ (value taken from [39]). That product gives _Cfc_ = 12941 _._ 5 _J_ _/K_ . The heat flow rate _Qfcloss_ is the amount heat that is transferred from the stack shell to the environment, that is, the heat lost to the environment due to natural convection. It is given by: _Qfcloss_ ( _t_ ) = _hfcloss_ [ _Tfc_ ( _t_ ) − _Tamb_ ( _t_ )] (20) That is to say, it depends, on the one hand, on the temperature gradient between the temperature of the stack shell ( _Tfc_ ) and the ambient temperature ( _Tamb_ ), and on the other hand, on the heat transfer parameter _hfcloss_, which is assumed to be constant and is a parameter to be adjusted. During the adjustment of this submodel, when comparing its output _Twout_ with the output of the real system, we observed that their dynamics were very similar, but there was a constant difference between the two signals. From this fact, we inferred that this discrepancy could be due to a calibration error in the temperature sensor that measures the water temperature at the stack outlet. Although that sensor was calibrated before it was assembled, the assembly itself could have caused a slight decalibration. We also thought that the same problem could be taking place in the temperature sensor that measures the air temperature at the stack outlet, although with a less noticeable effect. So, in order to model these hypothetical calibration errors, we included two additional parameters in the submodel, i.e. two correction coefficients of the calibration errors. These coefficients are _calTwout_ and _calTaout_, they are constant and are added to the outputs of the submodel. These two parameters were adjusted by the optimization algorithm together with the rest of parameters. Their search space was set between −2 <sup>◦</sup> C and 2 <sup>◦</sup> C. Note that if the hypothesis were incorrect, the optimization algorithm would have returned null values for these coefficients. In a subsequent test, we confirmed that there was indeed a calibration error in the measurement of the water temperature at the stack outlet and the value of this error corresponded approximately to the value provided by the optimization algorithm for the parameter _calTwout_ . Note that our goal is to develop a thermal model of the cooling system. Consequently, the modeling of the electrochemical phenomena involved in the functioning of the PEMFC stack does not belong to the scope of this work. Moreover, this kind of modeling have already been thoroughly studied in the existing literature. In particular, note that the submodel of the PEMFC stack (SM1) does not include the typical polarization curve (which provides the stack voltage ( _v_ ) as a function of the electric current ( _i_ )), because this polarization curve would be part of an electrical model, not a thermal one. For this (17) It is also assumed, as an approximation, that the heat transfer parameter _ha_ depends linearly on the air flow rate ( _Fa_ ), according to MP5 ( _hmin_ = _hamin_, _hmax_ = _hamax_, _Fmin_ = _Famin_, _Fmax_ = _Famax_, _F_ = _Fa_ ). _Famin_ and _Famax_ are the minimum and the maximum values of _Fa_, 0 _._ 0020 _m_ <sup>3</sup> _/s_ (120 liters/min) and 0 _._ 0027 _m_ <sup>3</sup> _/s_ (162 liters/minute), respectively. The constants _hamin_ and _hamax_ are the minimum and maximum values of _ha_, and they are parameters to be adjusted by the optimization algorithm. Similarly, we assume that the heat transfer parameter _hw_ is linearly dependent on the water flow rate (MP5: _hmin_ = _hwmin_, _hmax_ = _hwmax_, _Fmin_ = _Fw_ 1 _min_, _Fmax_ = _Fw_ 1 _max_, _F_ = _Fw_ 1). The constants _hwmin_ and _hwmax_ are the minimum and maximum values of _hw_ . Both are parameters to be adjusted by the optimization algorithm. Finally, the heat transfer parameter _haw_ is assumed to be constant, and it is also a parameter to be adjusted. The heat flow rate transferred from the water to the air ( _Qwa_ ) will increase the temperature of the air volume within the stack. Thus, the air temperature at the stack outlet ( _Taout_ ) can be calculated by the following expression: _kaVa_ _<u>dTaout</u>_ <u>(</u> _<u>t</u>_ <u>)</u> = _�Qa_ ( _t_ ) + _Qwa_ ( _t_ ) (18) _dt_ The constant _ka_ is the product _caρa_ ; _ca_ is the specific heat of the air and _ρa_ the density of the air inside the stack. Since the air density within the stack depends on the pressure, it is not easy to estimate _ka_ theoretically, as we did for _kw_ . For this reason, it will be adjusted by the optimization algorithm. The volume _Va_ is the volume of air inside the stack and is also a parameter to be adjusted. The heat difference _�Qa_ is calculated according to MP2 ( _F_ = _Fa_, _Tin_ = _Tain_, _Tout_ = _Taout_, _k_ = _ka_ ). reason, the stack voltage ( _v_ ) is considered as an input to the model and it is measured. This measured signal ( _v_ ) is used in (12) and (13) to calculate _Pe_ and _Qheat_, respectively. _F._ _SUBMODEL 2 (SM2)_ The subsystem (SS2) that corresponds to this submodel (SM2), consists of a single element, pipe 4 (see Fig. 3). The inputs of this submodel are _Tp_ 4 _in_, _Fw_ 2 and _Tamb_ ; and its output is: _Tp_ 4 _out_ (see Fig. 11). This submodel is quite simple and has only three parameters to be adjusted: _Vp_ 4, _hp_ 4 _loss_ and _calTp_ 4 _out_ . A diagram with the thermal phenomena assumed in pipe 4 is shown in Fig. 7. FIGURE 7. Thermal phenomena in pipe 4. Part of the heat flow that goes through the pipe is lost to the environment. The heat difference in pipe 4 ( _�Qp_ 4) is calculated according to MP2 ( _F_ = _Fw_ 2, _Tin_ = _Tp_ 4 _in_, _Tout_ = _Tp_ 4 _out_, _k_ = _kw_ ), where _Tp_ 4 _in_ is the water temperature at pipe 4 inlet, _Tp_ 4 _out_ is the water temperature at pipe 4 outlet, the constant _kw_ was explained in the previous section and _Fw_ 2 is the water flow rate of the secondary circuit. It is assumed that there is a loss of heat from the water to the environment, which is given by: _Qp_ 4 _loss_ ( _t_ ) = _hp_ 4 _loss_ [ _T_ <sup>¯</sup> _p_ 4( _t_ ) − _Tamb_ ( _t_ )] (21) _hp_ 4 _loss_ is the heat transfer parameter from the water within the pipe to the environment, which is assumed to be constant and is a parameter to be adjusted. The temperature _T_ <sup>¯</sup> _p_ 4 is the average value between the inlet water temperature and the outlet water temperature (MP4: _Tin_ = _Tp_ 4 _in_, _Tout_ = _Tp_ 4 _out_ ), value that is assumed to be representative of the water temperature in the pipe. By considering the incoming and outgoing heat flow rates in pipe 4, the variation of the water temperature at its outlet is given by: _hsmin_, _hsmax_, _Vp_ 1 and _hp_ 1 _loss_ . A working principle diagram of the heat exchanger is shown in Fig. 8 and of tank 1 in Fig. 9. The diagram of pipe 1 is identical to pipe 4’s, which was introduced in the previous section. Let us begin with the heat exchanger. The transfer of heat in the heat exchanger takes place from the tube side to the shell side. The water flow of the primary circuit ( _Fw_ 1) circulates through the tube and the water flow of the secondary circuit ( _Fw_ 2) circulates through the shell. Thus, the heat is transferred from the primary circuit to the secondary circuit. The heat exchanger is configured in a parallel-flow arrangement. The primary water flow enters the tube at a temperature _Ttin_ and leaves it at a temperature _Ttout_ . Similarly, the secondary water flow enters the shell at a temperature _Tsin_ and leaves it at a temperature _Tsout_ . The heat difference in the tube side ( _�Qt_ ) and the heat difference in the shell side ( _�Qs_ ) are calculated after MP2 for _F_ = _Fw_ 1, _Tin_ = _Ttin_, _Tout_ = _Ttout_, _k_ = _kw_, and _F_ = _Fw_ 1, _Tin_ = _Tsin_, _Tout_ = _Tsout_, _k_ = _kw_, respectively. The amount of heat transferred from the tube side to the shell side is given by: _Qts_ ( _t_ ) = _hts_ ( _t_ ) _�T_ <sup>¯</sup> _ts_ ( _t_ ) (23) where _hts_ is the overall heat transfer parameter of the heat exchanger and _�T_ <sup>¯</sup> _ts_ the temperature gradient between tube and shell. The coefficient _hts_ depends on three heat transfer phenomena: 1) forced convection in the tube side, 2) conduction through the wall between tube and shell and 3) forced convection in the shell side. It can be calculated as: _<u>nch</u>_ _hts_ ( _t_ ) = _ht_ <u>1(</u> _t_ ) <sup>+</sup> _h_ <sup><u>1</u></sup> _e_ <u>1</u> + _hs_ ( _t_ ) (24) where _nch_ is the number of channels in the heat exchanger (9 channels), _ht_ is the heat transfer parameter due to forced convection in the tube side, _he_ is the conduction heat transfer parameter, which is constant, and _hs_ is the heat transfer parameter due to forced convection in the shell side. _ht_ is assumed to depend linearly on _Fw_ 1 according to MP5 ( _hmin_ = _htmin_, _hmax_ = _htmax_, _Fmin_ = _Fw_ 1 _min_, _Fmax_ = _Fw_ 1 _max_, _F_ = _Fw_ 1), where _htmin_ and _htmax_ are the minimum and maximum values of _ht_ . Both are parameters to be adjusted by the optimization algorithm. Similarly, the coefficient _hs_ is assumed to depend linearly on _Fw_ 2 according to MP5 ( _hmin_ = _hsmin_, _hmax_ = _hsmax_, _Fmin_ = _Fw_ 2 _min_, _Fmax_ = _Fw_ 2 _max_, _F_ = _Fw_ 2), where _Fw_ 2 _min_ and _Fw_ 2 _max_ are the minimum and maximum values of _Fw_ 2, 4 _._ 2137·10 <sup>−5</sup> _m_ <sup>3</sup> _/s_ (2.53 liters/minute) and 1 _._ 5493·10 <sup>−4</sup> _m_ <sup>3</sup> _/s_ (9.29 liters/minute), respectively. _hsmin_ and _hsmax_ are the minimum and maximum values of _hs_ . Both are parameters to be adjusted. _he_ was calculated theoretically from the technical data of the heat exchanger (area, thickness and thermal conductivity of the plates), its value is _he_ = 216 _._ 72 _W_ _/K_ . On the other hand, the temperature gradient _�T_ <sup>¯</sup> _ts_ in (23) is the so-called logarithmic mean temperature difference _kwVp_ 4 _dTp_ <u>4</u> _<u>out</u>_ ( _t_ ) = _�Qp_ 4( _t_ ) − _Qp_ 4 _loss_ ( _t_ ) (22) _dt_ where _Vp_ 4 is the volume of the pipe and a parameter to be adjusted. Also in this submodel, as we did in submodel 1, in order to correct a possible calibration error in the measurement of the outlet water temperature, a correction coefficient was included ( _calTp_ 4 _out_ ). This coefficient is constant and a parameter to be adjusted. Its search range is [−2 <sup>◦</sup> C, 2 <sup>◦</sup> C]. _G._ _SUBMODEL 3 (SM3)_ The subsystem (SS3) that corresponds to this submodel (SM3) consists of three elements: heat exchanger, tank 1 and pipe 1 (see Fig. 3). The inputs of this submodel are _Ttin_, _Tsin_, _Fw_ 1, _Fw_ 2 and _Tamb_ ; and its outputs are: _Tsout_ and _Tp_ 1 _out_ (see Fig. 11). The parameters to be adjusted are: _Vt_ 1, _htmin_, _htmax_, (LMTD) [39], which is calculated according to: _�T_ <sup>¯</sup> _ts_ ( _t_ ) = <sup>_�Ttsout_</sup> <sup><u>(</u></sup> <sup>_<u>t</u>_</sup> <sup><u>) −</u></sup> <sup>_�Ttsin_</sup> <sup><u>(</u></sup> <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> ln <sup>_�Ttsout_</sup> <sup><u>(</u></sup> <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> (25) _�Ttsin_ ( _t_ ) where, for a parallel-flow configuration: _�Ttsout_ ( _t_ ) = _Ttout_ ( _t_ ) − _Tsout_ ( _t_ ) (26) and _�Ttsin_ ( _t_ ) = _Ttin_ ( _t_ ) − _Tsin_ ( _t_ ) (27) By considering the incoming and outgoing heat flow rates in tube and shell sides, it follows that their outlet water temperatures have to satisfy: _<u>dTtout</u>_ <u>(</u> _<u>t</u>_ <u>)</u> = _�Qt_ ( _t_ ) − _Qts_ ( _t_ ) (28) _dt_ _<u>dTsout</u>_ <u>(</u> _<u>t</u>_ <u>)</u> = _�Qs_ ( _t_ ) + _Qts_ ( _t_ ) (29) _dt_ and _kwVt_ _kwVs_ where _Vt_ is the volume of water in the tube side and _Vs_ is the volume of water in the shell side. These volumes were calculated theoretically from the dimensions of the heat exchanger, both resulting in 1 _._ 8 · 10 <sup>−4</sup> _m_ <sup>3</sup> (0.18 liters). Now let us look at the equations of tank 1. The heat difference in tank 1 ( _�Qt_ 1) is calculated after MP2 ( _F_ = _Fw_ 1, _Tin_ = _Tt_ 1 _in_, _Tout_ = _Tt_ 1 _out_, _k_ = _kw_ ), where _Tt_ 1 _in_ is the temperature of the water entering the tank and _Tt_ 1 is the temperature of the water leaving the tank. It was not necessary to assume any lost of heat to the environment, so the water temperature at tank 1 outlet is given by: FIGURE 8. Thermal phenomena assumed in the heat exchanger. Heat is transferred from tube side (t) to shell side (s). FIGURE 9. Thermal phenomena in tank 1. FIGURE 10. Working principle diagram of the radiator. When the activation signal _R_ is ON, the fan turns on and the transfer of heat to the environment takes place by forced convection. When _R_ is OFF, the fan is stopped and heat is transferred to the environment by natural convection. _H._ _SUBMODEL SM4_ The subsystem (SS4) corresponding to this submodel (SM4) consists of four elements: pipe 2, radiator, pipe 3 and tank 2 (see Fig. 3). The inputs of submodel are _Tp_ 2 _in_, _Fw_ 2 and _R_ ; and its output is: _Tt_ 2 (see Fig. 11). The parameters to be adjusted are: _hrOFFmin_, _hrOFFmax_, _hrONmin_, _hrONmax_, _Vt_ 2, _Vr_ and _Tambr_ . The diagrams of pipes 2 and 3 are similar to that of pipe 4, which has already been introduced in Section III-F, with the only difference that for pipes 2 and 3 it was not necessary to model the losses of heat to the environment, because they are negligible compared to the amount of heat that the radiator extracts from the secondary circuit, in both states, on and off. The diagram of tank 2 is identical to that of tank 1, presented in Section III-G. The diagram of the radiator is shown in Fig. 10. _kwVt_ 1 _<u>dTt</u>_ <u>1(</u> _<u>t</u>_ <u>)</u> = _�Qt_ 1( _t_ ) (30) _dt_ where _Vt_ 1 is the volume of water in the tank, which is constant and is also a parameter to be adjusted. Finally, the equations that model pipe 1 are exactly the same as those of pipe 4 (see Section III-F). The heat difference in pipe 1 ( _�Qp_ 1) is based on MP2 ( _F_ = _Fw_ 1, _Tin_ = _Tp_ 1 _in_, _Tout_ = _Tp_ 1 _out_, _k_ = _kw_ ), where _Tp_ 1 _in_ is the water temperature at pipe 1 inlet and _Tp_ 1 _out_ is the water temperature at pipe 1 outlet. The loss of heat to the ambient is: _Qp_ 1 _loss_ ( _t_ ) = _hp_ 1 _loss_ [ _T_ <sup>¯</sup> _p_ 1( _t_ ) − _Tamb_ ( _t_ )] (31) where _hp_ 1 _loss_ is the heat transfer parameter to the environment and _T_ <sup>¯</sup> _p_ 1 is calculated after MP4 ( _Tin_ = _Tp_ 1 _in_, _Tout_ = _Tp_ 1 _out_ ). So, the balance of heat flows in the pipe 1 results: _kwVp_ 1 _dTp_ <u>1</u> _<u>out</u>_ ( _t_ ) = _�Qp_ 1( _t_ ) − _Qp_ 1 _loss_ ( _t_ ) (32) _dt_ where _Vp_ 1 is the volume of pipe 1, which is unknown and, therefore, a parameter to be adjusted. FIGURE 11. Block diagram of the complete model. The complete model is formed by the interconnection of four submodels (SM1, SM2, SM3 and SM4), each of which was adjusted and validated independently. The outputs of the complete model are marked in blue and its inputs in red. Let us begin with pipes 2 and 3. The heat difference in pipe 2 ( _�Qp_ 2) is calculated after MP2 ( _F_ = _Fw_ 2, _Tin_ = _Tp_ 2 _in_, _Tout_ = _Tp_ 2 _out_, _k_ = _kw_ ), where _Tp_ 2 _in_ is the water temperature at the pipe inlet and _Tp_ 2 _out_ is the water temperature at the pipe outlet. Since there are no heat losses to the environment, the temperature of the water leaving the pipe is given by: _kwVt_ 2 where _Tt_ 2 _in_ is the water temperature at the tank inlet and _Tt_ 2 is the water temperature of the tank. As heat losses to the environment are not considered, _Tt_ 2 is given by: _<u>dTt</u>_ <u>2(</u> _<u>t</u>_ <u>)</u> = _�Qt_ 2( _t_ ) (35) _dt_ _kwVp_ 2 _dTp_ <u>2</u> _<u>out</u>_ ( _t_ ) = _�Qp_ 2( _t_ ) (33) _dt_ where _Vp_ 2 is the volume of pipe 2. This constant is calculated theoretically from the length and the cross-section area of the pipe, its value is 7 _._ 0686 - 10 <sup>−4</sup> _m_ <sup>3</sup> (0.7069 liters). The heat difference in pipe 3 ( _�Qp_ 3) is calculated after MP2 ( _F_ = _Fw_ 2, _Tin_ = _Tp_ 3 _in_, _Tout_ = _Tp_ 3 _out_, _k_ = _kw_ ), where _Tp_ 3 _in_ is the water temperature at the pipe inlet and _Tp_ 3 _out_ is the water temperature at the outlet of the pipe. Thus, the water temperature at the outlet of the pipe is given by: where _Vt_ 2 is the volume of water in tank 2 and a parameter to be adjusted. Finally, we address the radiator, which is the most important element of this submodel. The water flow of the secondary circuit ( _Fw_ 2) circulates through the radiator. It enters the radiator at a temperature _Trin_ and leaves it at _Trout_ . The heat difference in the radiator ( _�Qr_ ) is calculated after MP2 ( _F_ = _Fw_ 2, _Tin_ = _Trin_, _Tout_ = _Trout_, _k_ = _kw_ ). The amount of heat transferred from the hot water within the radiator to the environment depends on whether the fan is on ( _R_ = _ON_ ) or off ( _R_ = _OFF_ ), since in the first case the transfer of heat occurs by natural convection, whereas in the second by forced convection. This results in two different heat transfer parameters, _hrON_ and _hrOFF_, one for each state (ON, OFF). Therefore, the heat transfer parameter of the radiator can be _kwVp_ 3 _dTp_ <u>3</u> _<u>out</u>_ ( _t_ ) = _�Qp_ 3( _t_ ) (34) _dt_ where _Vp_ 3 is the volume of pipe 3. Also theoretically calculated, its value is 3 _._ 5343 · 10 <sup>−4</sup> _m_ <sup>3</sup> (0.3534 liters). Regarding tank 2, the heat difference _�Qt_ 2 is calculated after MP2 ( _F_ = _Fw_ 2, _Tin_ = _Tt_ 2 _in_, _Tout_ = _Tt_ 2 _out_, _k_ = _kw_ ), FIGURE 12. Results of the adjustment of the complete model with the modeling test data. Both the accuracy and the ability of the model to represent the dynamics of the process are good. expressed as follows: _Fmax_ = _Fw_ 2 _max_, _F_ = _Fw_ 2), where _hrOFFmin_ and _hrOFFmax_ are the minimum and the maximum values of _hrOFF_ and also parameters to be adjusted. The amount of heat transferred to the environment depends, as we said, on the heat transfer parameter _hr_, but it also depends on the temperature gradient between the temperature of the water within the radiator and the temperature of the air that surrounds it: _Qre_ ( _t_ ) = _hr_ ( _t_ )[ _T_ <sup>¯</sup> _r_ ( _t_ ) − _Tambr_ ] (37) _T_ ¯ _r_ is the average value of the water temperatures at the inlet and outlet of the radiator, and it is the value that has been assumed as representative of the water temperature inside the radiator, calculated after MP4 ( _Tin_ = _Trin_, _Tout_ = _Trout_ ). _hr_ ( _t_ ) = _hrON_ ( _t_ ) _,_ _for_ _R_ ( _t_ ) = 1 ( _ON_ ) (36) _hrOFF_ ( _t_ ) _,_ _for_ _R_ ( _t_ ) = 0 ( _OFF_ ) Each of these coefficients depends, in turn, on the water flow rate _Fw_ 2. As we did before, we also assume here that these dependencies are linear. _hrON_ is calculated according to MP5 ( _hmin_ = _hrONmin_, _hmax_ = _hrONmax_, _Fmin_ = _Fw_ 2 _min_, _Fmax_ = _Fw_ 2 _max_, _F_ = _Fw_ 2), where _Fw_ 2 _min_ and _Fw_ 2 _max_ are the minimum and the maximum values of _Fw_ 2 and were given in Section IIIG. _hrONmin_ and _hrONmax_ are the minimum and the maximum values of _hrON_ and both are parameters to be adjusted by the optimization algorithm. Similarly, _hrOFF_ is calculated according to MP5 ( _hmin_ = _hrOFFmin_, _hmax_ = _hrOFFmax_, _Fmin_ = _Fw_ 2 _min_, FIGURE 13. Results of the validation of the complete model. The accuracy of the model deteriorates when it is tested with the validation test data, but it still represents the dynamics of the process faithfully. _Tambr_ is the temperature of the air surrounding the radiator. This temperature is different from the temperature assumed as ambient temperature for the rest of submodels ( _Tamb_ ), for whose measurement a sensor was installed. The reason for this difference is that the radiator is mounted next to a window that is partially open (it can not be closed because through it the purge of hydrogen is evacuated). Thus, the temperature of the air surrounding the radiator is not the one inside the laboratory ( _Tamb_ ), but, presumably, a weighted average of two variables, the temperature inside the laboratory and the temperature outside the building (considerably lower than the former, since the tests were conducted in October). As we had not installed any sensor to measure the air temperature surrounding the radiator ( _Tambr_ ), we decided to estimate it. We assumed for this temperature a constant and unknown value, a value within the temperature range between the inside temperature ( _Tamb_ ) and the outside temperature, and then we adjusted its value as one more parameter of the model, with the data set from the modeling test (that is why _Tambr_ is listed as a parameter of submodel SM4 at the beginning of this section). Moreover, since the validation test was performed only four days after the modeling test and during the same time span, we initially considered that it would be plausible to assume that the ambient temperature of the radiator ( _Tambr_ ) on that day was approximately equal to the one on the day of the modeling test. We will return to this hypothesis in Section IV-B, when we comment the results of the model validation. Lastly, the balance of heat flows in the radiator determines the water temperature variation at the radiator outlet: _kwVr_ _<u>dTrout</u>_ <u>(</u> _<u>t</u>_ <u>)</u> = _�Qr_ ( _t_ ) − _Qre_ ( _t_ ) (38) _dt_ where _Vr_ is the volume of water within the radiator and a parameter to be adjusted. _I._ _THE COMPLETE MODEL_ The complete model results from interconnecting the four submodels that have been introduced so far (SM1, SM2, SM3 and SM4), once they were adjusted and validated independently, and from carrying out a final fine adjustment of its parameters (this is explained in the last paragraph of Section III-B). The complete model models the whole cooling system (see Fig. 3) and is shown, in the form of a block diagram, in Fig. 11. The inputs of the complete model are _Fa_, _Tamb_, _Tain_, _v_, _i_, _Fw_ 1, _Fw_ 2 and _R_ (in red in the figure mentioned) and its outputs are _Twout_, _Twin_, _Tt_ 2, _Taout_, _Tsin_ and _Tsout_ (in blue). This model has 30 parameters, which have already been described during the presentation of the submodels. The general formulation of the optimization problem described in Section III-D can now be particularized for the complete model. The mathematical structure of the model (1)-(2) is formed by the equations introduced in the four preceding sections (13)-(38). The vector of parameters to be adjusted ( _θ_ ) is the set of the 30 parameters of the model (which are listed in Table 1). The cost function that is minimized (5) is: _J_ = _J_ 1 + _J_ 2 + _J_ 3 + _J_ 4 + _J_ 5 + _J_ 6 (39) where: _J_ 1 = <sup><u>1</u></sup> _τ_ _J_ 1 = <sup><u>1</u></sup> _τ_ _J_ 2 = <sup><u>1</u></sup> _τ_ TABLE 1. Results of the adjustment of the parameters of the model. TABLE 2. Average error of each output of the model with respect to the outputs of the process after the adjustment. the six outputs of the model are compared with the six outputs of the real system, having been both, model and system, excited with the same input signals (Fig. 4). The values of the parameters that achieve that adjustment are shown in Table 1. As can be seen from these results, the adjustment is satisfactory. First, the accuracy of the model is good: the overall average error (the average of the average errors of the six outputs) is 0.17 <sup>◦</sup> C (see Table 2). Second, the adjustment is balanced, that is, all the outputs of the model match their corresponding process outputs approximately equally well ( _Tsin_ is the best adjusted and _Tt_ 2 the worst, and there is a difference of 0.089 <sup>◦</sup> C between their average errors). Third, the model captures the dynamics of the system well. Fourth, the values of the parameters (Table 1) are realistic, which is a good evidence that the model remains close to reality, from a conceptual point of view. _J_ 2 = <sup><u>1</u></sup> _τ_ _J_ 3 = <sup><u>1</u></sup> _τ_ _J_ 3 = <sup><u>1</u></sup> _τ_ _J_ 4 = <sup><u>1</u></sup> _τ_ _J_ 4 = <sup><u>1</u></sup> _τ_ _J_ 5 = <sup><u>1</u></sup> _τ_ _J_ 5 = <sup><u>1</u></sup> _τ_ _J_ 6 = <sup><u>1</u></sup> _τ_ _J_ 6 = <sup><u>1</u></sup> - _τ_ 0 - _τ_ 0 - _τ_ 0 - _τ_ 0 - _τ_ 0 - _τ_ 0 (40) ��� _T_ ˆ _wout_ ( _t_ ) − _Twout_ ( _t_ )��� _dt_ (41) ��� _T_ ˆ _win_ ( _t_ ) − _Twin_ ( _t_ )��� _dt_ (42) ��� _T_ ˆ _t_ 2( _t_ ) − _Tt_ 2( _t_ )��� _dt_ (43) ��� _T_ ˆ _aout_ ( _t_ ) − _Taout_ ( _t_ )��� _dt_ (44) ��� _T_ ˆ _sin_ ( _t_ ) − _Tsin_ ( _t_ )��� _dt_ (45) ��� _T_ ˆ _sout_ ( _t_ ) − _Tsout_ ( _t_ )��� _dt_ The variables with a cap denote the process outputs and the variables without cap denote the model outputs. The constant _τ_ is the total time of the modeling test (setM), 8087 seconds. IV. RESULTS In this section, we present, first, the results of the final fine adjustment of the complete model with the data set from the modeling test (setM) and, then, the results of the validation of the model, that is, the testing of the model against the data set from the validation test (setV). _A._ _RESULTS OF THE MODEL ADJUSTMENT_ Fig. 12 shows the results of the adjustment of the complete model with the data set from the modeling test. In this figure, FIGURE 14. Results of the validation of the complete model after readjusting _Tambr_ with the validation test data (keeping the same values for the remaining 29 parameters). The accuracy of the fit improves substantially. _B._ _RESULTS OF THE MODEL VALIDATION_ The results of the validation of the complete model are shown in Fig. 13. In this figure, the six outputs of the model are compared, again, with the six outputs of the real system, having been both, model and system, excited with the same input signals, in this case the ones corresponding to the validation test (see Fig. 5). The first thing that can be observed is that the response of the model against the validation test data, in comparison with the results of the model adjustment (see Fig. 12), deteriorates. The accuracy (overall average error) achieved in this case is 0.438 <sup>◦</sup> C (see Table 3), compared to 0.17 <sup>◦</sup> C that was achieved in the adjustment with the modeling test data. A certain degree of deterioration in accuracy when validating, with respect to the adjustment in the modeling phase, is usual and normal. However, in our case, we think that this deterioration has an additional cause, namely, that the hypothesis assumed, according to which the ambient temperature for the radiator ( _Tambr_ ) on the modeling test day was equal to the one on the validation test day, is false. We believe this for the following reason. If _Tambr_ is readjusted (maintaing the same values for the remaining 29 parameters) _with_ _the_ _validation_ _test_ _data_, the optimization algorithm returns a new value of _Tambr_, 27.86 <sup>◦</sup> C (0.75 <sup>◦</sup> C higher than the one which resulted from the adjustment), and when this new value of _Tambr_ is used, the fit between the model outputs and the real signals of the validation test substantially improves (see Fig. 14): the overall average error shifts from 0.438 <sup>◦</sup> C to 0.296 <sup>◦</sup> C (see TABLE 3. Average error of each output of the model with respect to the outputs of the process when it is tested against the validation test data. Table 4), which means an improvement of 0.142 <sup>◦</sup> C. Note also that the temperature _Tambr_ represents one of the two reference points of the thermal process (the other one is _Tamb_ ), i.e. it is something like the ground in an electrical circuit (using the analogy between thermal and electrical systems). Consequently, it only determines the operating point of the system in steady state. This is why the responses of the model before and after the adjustment of _Tambr_ are practically identical in shape, differing only in their average value (compare Fig. 13 and 14). Certainly, the ideal would have been to dispose, from the beginning, an additional temperature sensor next to the radiator, in order to have a real measurement of _Tambr_ on both days. A second observation from Fig. 13 is that the model, despite the aforementioned deterioration in its accuracy, continues to faithfully capture the dynamics of the process, exactly the same as it did for the modeling test data (Fig. 12). This means that, in terms of the ability of the model to represent the dynamics of the process, there has been no deterioration. The ability of a model to faithfully represent the dynamics of the process is precisely the most important characteristic that a control-oriented model must fulfill, because any temperature control of a PEMFC stack will always incorporate an integral action to compensate for errors in steady state and, therefore, it will absorb any constant difference that may exist between the model and the process. Thus, after weighing up both aspects, accuracy and ability to faithfully represent the dynamics of the process, and given that the former is not critical and the latter is crucial, we decided to release the model, because it fulfills its purpose, which is to be useful for a subsequent design of a temperature control. V. CONCLUSION In this article, we have presented a model of the cooling process of a _µ_ -CHP system based on a PEMFC stack. The model has been developed to be used for the design of the temperature control of the stack. It is based on first principles, dynamic, non-linear and has been validated empirically. The results show that the model is able to faithfully represent the process. Especially, it is remarkable the accuracy with which the model captures the dynamics of the real process, which is the most important feature that a control-oriented model TABLE 4. Average error of each output of the model with respect to the outputs of the process when it is tested against the validation test data, after the readjustment of _Tambr_ . must fulfill. Therefore, the model is useful for a subsequent temperature control design. As far as we know, there is no model in the literature that satisfies these characteristics (see Appendix B) and its need has been pointed out in several reviews (see [5], [33]). Therefore, the main contribution of this work consists of developing and publishing a model of the cooling process of a _µ_ -CHP system based on a PEMFC stack (i.e. stack and heat recovery unit) which is dynamic and has been experimentally validated. The advantage of such a model is that it enables the design of a more sophisticated temperature control of the stack and, consequently, with a better performance than the one that a control based on a simple model (such as, for example, a First Order Plus Dead Time (FOPDT) model) can achieve. The model has been implemented in Matlab/Simulink and it is accessible, together with the test data that were used for its development, at http://hdl.handle.net/10251/118336. Moreover, the methodology employed to develop the model has been described in detail. This, added to the fact that the model is expressed in first principles (so it has a close relation with the structure of the real system and its parameters have physical meaning), allows other modelers to take our model as a starting point and, by making the necessary modifications, to build models of their _µ_ -CHP systems. In a future work we plan to design, by using the model we have presented here, a temperature control for the stack of our _µ_ -CHP system and to validate it experimentally, in order to improve the performance of the system with respect to the performance that the current control (based on a linear and simpler model) offers. APPENDIX A COMMON MODELING PRINCIPLES Table 5 summarizes the main common modeling principles on which the four submodels (Sections III-E, III-F, III-G and III-H) are based. APPENDIX B THERMAL MODELS IN THE LITERATURE Table 6 summarizes the main characteristics of the thermal models found in the literature review that we carried out TABLE 5. Common modeling principles. TABLE 6. Thermal models in the literature. before developing our model. Our model and its features are also shown in the last row of the table. Note that this table refers only to _thermal models_ . In some of the works listed, the authors develop other models as well (for example, an electrochemical model of the PEMFC), apart from a thermal model. In these cases, the attributes ‘‘dynamic or static’’ and ‘‘experimentally validated’’ refer to the thermal models exclusively. As Table 6 shows, there are only three models that satisfy being dynamic and having been experimentally validated (Musio _et al._ [27], Real _et al._ [28] and San Martín _et al._ [29]). However, in these works 1) the stack is refrigerated by air (by means of a fan) and 2) the heat removed from the stack is evacuated to the atmosphere, i.e. the systems that these authors model do not include a _heat_ _recovery_ _subsystem_, which is the feature that makes an energy generator system a CHP system (cogeneration), (see [7]). In other words, the systems modelled in these works are substantially different from the system that we model in our work. Consequently, a direct comparation is not possible. Nonetheless, it is worth saying some words about these models. In Musio _et_ _al._ [27], the validation results show a discrepancy between real and simulated stack temperatures of almost 4 <sup>◦</sup> C (maximum error) and the model dynamics do not represent well the dynamics of the real system. Moreover, the stack air outlet temperature is not validated. In Real _et_ _al._ [28], the validation results are remarkable. The stack temperature provided by this model follows the real stack temperature quite well within a wide range of temperatures. However, the model is validated only for changes in the electric current demanded to the stack and not for changes in the manipulable variable (fan voltage), which stays constant during the validation test. In order to design a dynamic control of the stack temperature, the model should represent not only the dynamic relation between the output (stack temperature) and the perturbation (electric current) but also the dynamic relation between the output and the manipulable variable, because this manipulable variable will be, once the control is designed, the control action. The model presented in Martín _et_ _al._ [29] has exactly the same limitation. This model achieves a satisfactory matching between model and process for changes in the electric current demanded to the stack (perturbation), but there is no validation for changes in the manipulable variable (fan voltage). The reason why these two last works do not validate their models for changes in the manipulable variable (fan voltage) may be the following: in both cases the system modeled is a closed system (Nexa 1200) and, therefore, it probably hinders from accessing to the fan voltage directly, so that it can be freely manipulated, and independently from the electric current demanded. REFERENCES [1] Anonymous. (Feb. 16, 2017). 2030 Climate & Energy Framework. Climate Action—European Commission. Accessed: Nov. 5, 2018. [Online]. Available: https://ec.europa.eu/clima/policies/strategies/2030_en [2] P. E. Dodds, I. Staffell, A. D. Hawkes, F. Li, P. Grünewald, W. McDowall, and P. Ekins, ‘‘Hydrogen and fuel cell technologies for heating: A review,’’ _Int. J. Hydrogen Energy_, vol. 40, no. 5, pp. 2065–2083, 2015. [3] D. A. Notter, K. Kouravelou, T. Karachalios, M. K. Daletou, and N. T. Haberland, ‘‘Life cycle assessment of PEM FC applications: Electric mobility and _µ_ -CHP,’’ _Energy Environ. Sci._, vol. 8, no. 7, pp. 1969–1985, 2015. [4] M. M. Maghanki, B. Ghobadian, G. Najafi, and R. J. Galogah, ‘‘Micro combined heat and power (MCHP) technologies and applications,’’ _Renew._ _Sustain. Energy Rev._, vol. 28, pp. 510–524, Dec. 2013. [5] S. M. C. Ang, E. S. Fraga, N. P. Brandon, N. J. Samsatli, and D. J. L. Brett, ‘‘Fuel cell systems optimisation—Methods and strategies,’’ _Int. J. Hydro-_ _gen Energy_, vol. 36, no. 22, pp. 14678–14703, 2011. [6] T. Elmer, M. Worall, S. Wu, and S. B. Riffat, ‘‘Fuel cell technology for domestic built environment applications: State of-the-art review,’’ _Renew._ _Sustain. Energy Rev._, vol. 42, pp. 913–931, Feb. 2015. [7] H. R. Ellamla, I. Staffell, P. Bujlo, B. G. Pollet, and S. Pasupathi, ‘‘Current status of fuel cell based combined heat and power systems for residential sector,’’ _J. Power Sources_, vol. 293, pp. 312–328, Oct. 2015. [8] S. Martinez, G. Michaux, P. Salagnac, and J.-L. Bouvier, ‘‘Micro combined heat and power systems (micro-CHP) based on renewable energy sources,’’ _Energy_ _Convers._ _Manage._, vol. 154, pp. 262–285, Dec. 2017. [9] R. Beith, _Small_ _and_ _Micro_ _Combined_ _Heat_ _and_ _Power_ _(CHP)_ _Systems:_ _Advanced Design, Performance, Materials and Applications_ . Cambridge, U.K.: Woodhead, 2011. [10] A. Hawkes, I. Staffell, D. Brett, and N. Brandon, ‘‘Fuel cells for micro combined heat and power generation,’’ _Energy Environ. Sci._, vol. 2, no. 7, pp. 729–744, 2009. [11] G. Zhang and S. G. Kandlikar, ‘‘A critical review of cooling techniques in proton exchange membrane fuel cell stacks,’’ _Int. J. Hydrogen Energy_, vol. 37, no. 3, pp. 2412–2429, 2012. [12] S. G. Kandlikar and Z. Lu, ‘‘Thermal management issues in a PEMFC stack—A brief review of current status,’’ _Appl. Therm. Eng._, vol. 29, no. 7, pp. 1276–1280, 2009. [13] J.-W. Ahn and S.-Y. Choe, ‘‘Coolant controls of a PEM fuel cell system,’’ _J. Power Sources_, vol. 179, no. 1, pp. 252–264, 2008. [14] W. R. W. Daud, R. E. Rosli, E. H. Majlan, S. A. A. Hamid, R. Mohamed, and T. Husaini, ‘‘PEM fuel cell system control: A review,’’ _Renew. Energy_, vol. 113, pp. 620–638, Dec. 2017. [15] Q. Yan, H. Toghiani, and H. Causey, ‘‘Steady state and dynamic perfor mance of proton exchange membrane fuel cells (PEMFCs) under various operating conditions and load changes,’’ _J. Power Sources_, vol. 161, no. 1, pp. 492–502, 2006. [16] W. Yuan, Y. Tang, M. Pan, Z. Li, and B. Tang, ‘‘Model prediction of effects of operating parameters on proton exchange membrane fuel cell performance,’’ _Renew. Energy_, vol. 35, no. 3, pp. 656–666, 2010. [17] J. Zhang, H. Zhang, J. Wu, and J. Zhang, ‘‘The effects of temperature on PEM fuel cell kinetics and performance,’’ in _PEM_ _Fuel_ _Cell_ _Testing_ _and_ _Diagnosis_ . Amsterdam, The Netherlands: Elsevier, 2013, pp. 121–140. [18] W. Schmittinger and A. Vahidi, ‘‘A review of the main parameters influ encing long-term performance and durability of PEM fuel cells,’’ _J. Power_ _Sources_, vol. 180, no. 1, pp. 1–14, May 2008. [19] R. Cozzolino, S. P. Cicconardi, E. Galloni, M. Minutillo, and A. Perna, ‘‘Theoretical and experimental investigations on thermal management of a PEMFC stack,’’ _Int. J. Hydrogen Energy_, vol. 36, no. 13, pp. 8030–8037, 2011. [20] L. Barelli, G. Bidini, F. Gallorini, and A. Ottaviano, ‘‘Dynamic analysis of PEMFC-based CHP systems for domestic application,’’ _Appl._ _Energy_, vol. 91, no. 1, pp. 13–28, 2012. [21] F. Asensio, J. I. S. Martín, I. Zamora, and O. Oñederra, ‘‘Model for optimal management of the cooling system of a fuel cell-based combined heat and power system for developing optimization control strategies,’’ _Appl._ _Energy_, vol. 211, pp. 413–430, Feb. 2018. [22] A. Adam, E. S. Fraga, and D. J. L. Brett, ‘‘A modelling study for the integration of a PEMFC micro-CHP in domestic building services design,’’ _Appl. Energy_, vol. 225, pp. 85–97, Sep. 2018. [23] A. D. Hawkes, D. J. L. Brett, and N. P. Brandon, ‘‘Fuel cell micro CHP techno-economics: Part 1—Model concept and formulation,’’ _Int._ _J. Hydrogen Energy_, vol. 34, no. 23, pp. 9545–9557, 2009. [24] A. R. Korsgaard, M. P. Nielsen, and S. K. Kær, ‘‘Part one: A novel model of HTPEM-based micro-combined heat and power fuel cell system,’’ _Int._ _J. Hydrogen Energy_, vol. 33, no. 7, pp. 1909–1920, 2008. [25] A. R. Korsgaard, M. P. Nielsen, and S. K. Kar, ‘‘Part two: Control of a novel HTPEM-based micro combined heat and power fuel cell system,’’ _Int. J. Hydrogen Energy_, vol. 33, no. 7, pp. 1921–1931, 2008. [26] S.-W. Ham, S.-Y. Jo, H.-W. Dong, and J.-W. Jeong, ‘‘A simplified PEM fuel cell model for building cogeneration applications,’’ _Energy Buildings_, vol. 107, pp. 213–225, Nov. 2015. [27] F. Musio, F. Tacchi, L. Omati, P. G. Stampino, G. Dotelli, S. Limonta, D. Brivio, and P. Grassini, ‘‘PEMFC system simulation in MATLABsimulink environment,’’ _Int._ _J._ _Hydrogen_ _Energy_, vol. 36, no. 13, pp. 8045–8052, 2011. [28] A. J. del Real, A. Arce, and C. Bordons, ‘‘Development and experimental validation of a PEM fuel cell dynamic model,’’ _J. Power Sources_, vol. 173, no. 1, pp. 310–324, 2007. [29] I. S. Martín, A. Ursúa, and P. Sanchis, ‘‘Modelling of PEM fuel cell per formance: Steady-state and dynamic experimental validation,’’ _Energies_, vol. 7, no. 2, pp. 670–700, Oct. 2014. [30] L. Deng, X.-R. Deng, N. Ma, and P. Wei, ‘‘Dynamic modeling of a PEM fuel cell stack thermal system,’’ in _Proc._ _2nd_ _Int._ _Conf._ _Adv._ _Comput._ _Control_, Mar. 2010, pp. 473–477. [31] G. Gigliucci, L. Petruzzi, E. Cerelli, A. Garzisi, and A. La Mendola, ‘‘Demonstration of a residential CHP system based on PEM fuel cells,’’ _J. Power Sources_, vol. 131, nos. 1–2, pp. 62–68, 2004. [32] S. Caux, W. Hankache, M. Fadel, and D. Hissel, ‘‘PEM fuel cell model suitable for energy optimization purposes,’’ _Energy_ _Convers._ _Manage._, vol. 51, no. 2, pp. 320–328, 2010. [33] T. Jahnke _et_ _al._, ‘‘Performance and degradation of proton exchange membrane fuel cells: State of the art in modeling from atomistic to system scale,’’ _J._ _Power_ _Sources_, vol. 304, pp. 207–233, Feb. 2016. [34] X. B. Ferragud, ‘‘Control predictivo basado en modelos mediante técnicas de optimización heurística. Aplicación a procesos no lineales y multivariables,’’ M.S. thesis, Univ. Politècnica de València, València, Spain, 2002. [Online]. Available: http://hdl.handle. net/10251/15995 [35] H. John and J. H. Lienhard, _A_ _Heat_ _Transfer_ _Textbook_ . Cambridge, MA, USA: Phlogiston Press, 2012. [36] I. Staffell, ‘‘Fuel cells for domestic heat and power: Are they worth it?’’ M.S. thesis, Univ. Birmingham, Birmingham, U.K., 2009. [37] N. Sammes, Ed., _Fuel_ _Cell_ _Technology:_ _Reaching_ _Towards_ _Commercial-_ _ization_ . London, U.K.: Springer, 2006. [38] _Fuel Cell Handbook_, U.S. Dept. Energy, Office Fossil Energy, Nat. Energy Technol. Lab., Morgantown, WV, USA, 2004. [39] H. Chang, Z. Wan, Y. Zheng, X. Chen, S. Shu, Z. Tu, and S. H. Chan, ‘‘Energy analysis of a hybrid PEMFC–solar energy residential microCCHP system combined with an organic Rankine cycle and vapor compression cycle,’’ _Energy_ _Convers._ _Manage._, vol. 142, pp. 374–384, Jun. 2017. [40] H. Chang, Z. Wan, Y. Zheng, X. Chen, S. Shu, Z. Tu, S. H. Chan, R. Chen, and X. Wang, ‘‘Energy- and exergy-based working fluid selection and performance analysis of a high-temperature PEMFC-based micro combined cooling heating and power system,’’ _Appl. Energy_, vol. 204, pp. 446–458, Oct. 2017. [41] H. Chang, C. Duan, X. Xu, H. Pei, S. Shu, and Z. Tu, ‘‘Technical perfor mance analysis of a micro-combined cooling, heating and power system based on solar energy and high temperature PEMFC,’’ _Int._ _J._ _Hydro-_ _gen Energy_, to be published. [Online]. Available: https://doi.org/10.1016/ j.ijhydene.2018.11.217 [42] J. T. Pukrushpan, H. Peng, and A. G. Stefanopoulou, ‘‘Control-oriented modeling and analysis for automotive fuel cell systems,’’ _J._ _Dyn._ _Syst.,_ _Meas., Control_, vol. 126, no. 1, pp. 14–25, 2004. [43] C. Bao, M. Ouyang, and B. Yi, ‘‘Modeling and control of air stream and hydrogen flow with recirculation in a PEM fuel cell system—I. Control-oriented modeling,’’ _Int._ _J._ _Hydrogen_ _Energy_, vol. 31, no. 13, pp. 1879–1896, 2006. SANTIAGO NAVARRO GIMÉNEZ was born in Valencia, Spain, in 1979. He received the B.S. degree in control systems engineering from the Universitat Politècnica de València (UPV), Spain, in 2004. After six years working as a Process Engineer in the automotive industry, he joined the Predictive Control and Heuristic Optimization Group (CPOH), Instituto Universitario de Automática e Informática Industrial (UPV), in 2012, where he has worked, since then, on modeling and control design in several projects related to energy management. His main research interests include modeling, control, and energy management of PEMFC-based systems. JUAN MANUEL HERRERO DURÁ received the B.S. and Ph.D. degrees in control systems engineering from the Universitat Politècnica de València (UPV), in 1999 and 2006, respectively, where he is currently an Associate Professor with the Department of Systems Engineering and Automation. His main research interests include multivariable predictive control, process optimization, and computational intelligence methods for control engineering. FRANCESC XAVIER BLASCO FERRAGUD was born in Paris, in 1966. He received the B.S. and Ph.D. degrees in industrial engineering from the Universitat Politècnica de València (UPV), Spain, in 1991 and 1999, respectively, and the Diplome de Spécialisation en Génie Electrique degree from the Ecole Supérieure d’Electricité (SUPELEC), France, in 1992. Since 1994, he has taught at the Department of Systems Engineering and Automation, UPV. He is currently a Full Professor. His research work is developed at the Institute of Automatic Control (ai2 UPV). His research interests include model-based predictive control, evolutionary optimization, and multi-objective optimization applied to engineering, and dynamic modeling, and process control. RAÚL SIMARRO FERNÁNDEZ was born in Valencia. He received the Ph.D. degree in industrial engineering from the Universitat Politècnica de València (UPV), where he teaches topics on process control at the Department of Systems Engineering and Automation, since 2002. His research interests include distributed computer control algorithms for mobile robotics and simulation based on discrete event control.

섹션 본문 146문단 · 70,308자

(제목 없음)

1Micro-combined heat and power systems (µ-CHP) based on proton exchange membrane fuel cell stacks (PEMFC) are capable of supplying electricity and heat for the residential housing sector with a high energy efficiency and a low level of CO 2 emissions. For this reason, they are regarded as a promising technology for coping with the current environmental challenges. In these systems, the temperature control of the stack is crucial, since it has a direct impact on its durability and electrical efficiency. In order to design a good temperature control, however, a dynamic model of the µ-CHP cooling system is required. In this paper, we present a model of the cooling system of a PEMFC-based µ-CHP system, which is oriented to the design of the temperature control of the stack. The model has been developed from a µ-CHP system located in the laboratory of our research team, the predictive control and heuristic optimization group (CPOH). It is based on first principles, dynamic, non-linear, and has been validated against the experimental data. The model is implemented in Matlab/Simulink and the adjustment of its parameters was carried out using evolutionary optimization techniques. The methodology followed to obtain it is also described in detail. Both the model and the test data used for its adjustment and validation are accessible to anyone who wants to consult them. The results show that the model is able to faithfully represent the dynamics of the µ-CHP cooling system, so it is appropriate for the design of the stack temperature control.

c w

2Specific heat of water, C, J /(kg·K ). T ts Logarithmic mean temperature difference in the heat exchanger, V, K .

T ts in

3Temperature difference between heat exchanger inlets (tube-shell), V, K . T ts out Temperature difference between heat exchanger outlets (tube-shell),V, K . F a Air flow rate, V, m 3 /s.

F a max

4Maximum value of F a , C, l/min. F a min Minimum value of F a , C, l/min. F w 1 Water flow rate (primary circuit), V, m 3 /s. F w 1max Maximum value of F w 1 , C, l/min. F w 1min Minimum value of F w 1 , C, l/min. F w 2 Water flow rate (secondary circuit), V, m 3 /s. F w 2max Maximum value of F w 2 , C, l/min. F w 2min Minimum value of F w 2 , C, l/min. h a Air side heat transfer parameter in the stack, V, W /K . h a max Value of h a at F a max , P, W /K . h a min Value of h a at F a min , P, W /K . h aw Water-air interface heat transfer parameter in the stack, P, W /K . h e Conduction heat transfer parameter in the heat exchanger (wall), C, W /K . h fc loss Stack-ambient heat transfer parameter, P, W /K . h fc 1 Overall water-air heat transfer parameter in the stack, V, W /K . h fc 2 Water-housing heat transfer parameter in the stack, V, W /K . h fc 2max Value of h fc 2 at F w 1max , P, W /K . h fc 2min Value of h fc 2 Product ρ a c a , P, J /(m 3 ·K ). k w Product ρ w c w , C, J /(m 3 ·K ). n c Number of cells in the stack, C, ud. n ch Number of channels in the heat exchanger, C, ud. Q a Heat difference (stack air), V, W . Q fc loss Heat flow rate (stack-ambient), V, W .

Q heat

5Heat flow rate generated by the reaction in the stack, V, W .

Q p1

6Heat difference (pipe 1), V, W . Q p1 loss Heat flow rate (pipe 1-ambient), V, W .

Q p2

7Heat difference (pipe 2), V, W . Q p3 Heat difference (pipe 3), V, W . Q p4 Heat difference (pipe 4), V, W . Q p4 loss Heat flow rate (pipe 4-ambient), V, W . Q r e Heat flow rate (radiator-ambient), V, W . Q r Heat difference (radiator), V, W .

Q s

8Heat difference (heat exchanger shell side), V, W . Q t Heat difference (heat exchanger tube side), V, W .

Q ts

9Heat flow rate (tube-shell), V, W .

Q t1

10Heat difference (tank 1), V, W .

Q t2

11Heat difference (tank 2), V, W .

Q wa

12Heat flow rate (water-air, in the stack), V, W .

Q wfc

13Heat flow rate (water-housing, in the stack), V, W .

Q w

14Heat difference (stack water), V, W . R Radiator activation signal (ON/OFF), V, −. ρ a Air density, C, kg/m 3 . ρ w

15Water density, C, kg/m 3 .

T a

16Average air temperature in the stack, V, K .

T a in

17Air temperature (stack air inlet), V, K . T amb Ambient temperature, V, K . T amb r Ambient temperature for the radiator, P, K .

T a out

18Air temperature (stack air outlet), V, K . T fc Stack housing temperature, V, K .

T p1

19Average water temperature in pipe 1, V, K .

T p1 in

20Water temperature (pipe 1 inlet), V, K . T p1 out Water temperature (pipe 1 outlet), V, K . T p2 in Water temperature (pipe 2 inlet), V, K . T p2 out Water temperature (pipe 2 outlet), V, K . T p3 in Water temperature (pipe 3 inlet), V, K . T p3 out Water temperature (pipe 3 outlet), V, K .

T p4

21Average water temperature in pipe 4, V, K . T p4 in Water temperature (pipe 4 inlet), V, K . T p4 out Water temperature (pipe 4 outlet), V, K . T r Average water temperature in radiator, V, K .

T r in

22Water temperature (radiator inlet), V, K . T r out Water temperature (radiator outlet), V, K .

T s in

23Water temperature (heat exchanger shell inlet), V, K .

T s out

24Water temperature (heat exchanger shell outlet), V, K .

T t in

25Water temperature (heat exchanger tube inlet), V, K .

T t out

26Water temperature (heat exchanger tube outlet), V, K .

T t1

27Water temperature (tank 1), V, K .

T t1 in

28Water temperature (tank 1 inlet), V, K .

T t2

29Water temperature (tank 2), V, K .

T t2 in

30Water temperature (tank 2 inlet), V, K . T w Average water temperature in the stack, V, K .

T w in

31Water temperature (stack water inlet), V, K . T w out Water temperature (stack water outlet), V, K . v Stack voltage, V, V . V a Volume of air in the stack, P, m 3 .

V p1

32Volume of pipe 1, P, m 3 .

V p2

33Volume of pipe 2, C, m 3 .

34V p3 Volume of pipe 3, C, m 3 . V p4 Volume of pipe 4, P, m 3 . V r Volume of water in the radiator, P, m 3 .

V s

35Volume of the heat exchanger shell, C, m 3 .

V t

36Volume of the heat exchanger tube, C, m 3 . V t1 Volume of tank 1, P, m 3 . V t2 Volume of tank 2, P, m 3 .

V w

37Volume of water in the stack, P, m 3 .

38NOTE: In this paper, the symbol h (W /K ) is named ''heat transfer parameter'' and denotes the product of the overall heat transfer coefficient U in W /(K ·m 2 ) and the heat transfer area A in m 2 , i.e. h = UA.

I. INTRODUCTION

39Currently, there are serious environmental problems: global warming, air pollution and depletion of fossil fuel reserves. Governments are aware of it and they are taking measures to address them. New technologies in the energy sector can help to achieve these objectives. One of these technologies is µ-CHP systems [1]- [4]. A µ-CHP system produces electricity and heat (cogeneration) for the energy supply in the residential sector. The main advantage of these systems over traditional power generation systems is that they take advantage of the heat which is produced during the process of electrical energy generation, which results in a total energy efficiency that can exceed 90%, much higher than that of conventional systems, which is around 40%. Their high efficiency means lower fuel consumption, which leads to a reduction in the operating cost and a reduction in the amount of greenhouse gases emitted into the atmosphere [5]- [7].

40There are several types of µ-CHP systems, depending on the technology on which they are based: internal combustion engine, Stirling engine, turbines or fuel cells [8], [9]. Among them, the one based on proton exchange membrane fuel cell (PEMFC) is a promising option, because this first mover has some advantages over the rest: 1) high electrical efficiency, 2) low heat-to-power ratio, 3) low level of noise and 4) low level of CO 2 emissions [5]- [7], [10].

41There are already some commercial µ-CHP systems based on PEMFC and the trend is upwards, but mass production has not been reached yet, because their prices are high [6], [7]. In order to overcome this frontier, it is necessary to advance in several technical aspects, with the aim of improving the performance of these systems and reducing their costs [10], [11]. One of the most important work areas and where there is a greater opportunity for improvement is the temperature control of the PEMFC. In effect, the correct design of the stack cooling system, which includes its control, plays a crucial role in the durability, cost, reliability and energy efficiency of the stack [11]- [18]. However, to design a good temperature control of the stack, it is necessary to have a good model of the cooling system.

42In the literature, there are several models of the cooling system of a PEMFC-based µ-CHP system [19]- [26], [31]. There are also thermal models of PEMFCs which are interesting in the context of this work, although they do not belong to µ-CHP applications [13], [27]- [30], [32], i.e. they do not contemplate a heat recovery subsystem, which is an essential unit of a µ-CHP system [7]. However, most of the models of the first group are static, not dynamic, and to develop a temperature control a dynamic model is needed. Moreover, few have been validated against test data from a real system. Therefore, there is a need for dynamic models that have been experimentally validated [5], [33]. For example, Ahn and Choe [13] developed a control-oriented model of a PEMFC stack cooling system. This model is dynamic and based on first principles, but it was not empirically validated. Cozzolino et al. [19] obtained a model of the cooling system of a PEMFC-based µ-CHP system and they validated it experimentally against a real system. However, their model is static, not dynamic. Barelli et al. [20] presented a dynamic model of a complete PEMFC-based µ-CHP system, including the cooling system. They used it to analyze the behavior of their µ-CHP system in response to variable electrical and thermal demands, but it is a linear model that represents the system only around an operating point and it was not validated experimentally. Asensio et al. [21] proposed a control-oriented model of the cooling system of a 600W PEMFC stack. The stack is cooled by water and is integrated into a laboratory equipment that emulates a real µ-CHP system. This model is able to provide the stack temperature as a function of the water flow rate, the stack inlet water temperature and the electric current demanded, but this model is static, not dynamic, and it was experimentally validated only for a value of the water flow rate (1 l/min), i.e. at an operating point. For an overview of the thermal models found in the literature and their main characteristics, see Appendix B.

43In this paper, we present a model of the cooling system of a PEMFC-based µ-CHP system, which includes both the stack and the heat recovery unit. The purpose of this model is to be useful for the design of the temperature control of the PEMFC stack. The model is based on a real system which is located in our laboratory. It has been adjusted by means of an evolutionary optimization algorithm, in particular a genetic algorithm (GA). It is a first principles model, non-linear, dynamic and has been experimentally validated. A model of these characteristics (dynamic and experimentally validated) is helpful for the design of the stack temperature control and, according to the bibliographic evidence supplied in this introduction and in Appendix B, it represents a relevant contribution to the existing body of knowledge in the subject area of µ-CHP Modeling.

44The rest of the article is structured as follows: In Section II, we present the complete µ-CHP system that we have in our laboratory. In Section III, we describe the part of the µ-CHP system that is going to be modeled (the cooling system), the modeling methodology, the tests performed for the adjustment and validation of the model, the genetic optimization FIGURE 1. The µ-CHP system. The PEMFC stack is fed with hydrogen and air, and generates electricity and heat. The electronic load emulates electrical energy demands and the fan-cooled radiator emulates thermal energy demands. The hot water tank serves as a buffer where heat can be stored. The whole system is controlled by a control unit, which is based on a CompactRIO from National Instruments. algorithm used for its adjustment, and the equations of the model. In Section IV, we present the results and discuss them. Finally, in Section V, we conclude.

II. DESCRIPTION OF THE MICRO-CHP SYSTEM

45In this section, we describe the µ-CHP system on which the tests were carried out and whose cooling system we model. Fig. 1 shows the complete system. The core of the µ-CHP system is the PEMFC stack, which is from the company Nedstack, model 2.0HP. The stack consumes hydrogen and oxygen, and produces power and heat. It is able to produce up to 2 kW of electrical energy and 3.3 kW of thermal energy. The electrical energy is consumed by an electronic load and the thermal energy is removed from the stack by means of a water cooling system and then transferred, through the heat exchanger, to a hot water tank that serves as a buffer of heat. This is the part of the system that we model, the cooling system (i.e. the stack and the heat recovery unit, see Fig. 3), and will be described in detail in Section III-A.

46The supply of oxygen comes from an external air compressor and the supply of hydrogen from a pressurized bottle. A mass flow meter and a proportional valve are installed in each supply line. By means of these devices the supply flow rates can be measured and varied depending on the electrical energy demanded by the electronic load. Both air and hydrogen must enter the stack under certain conditions of temperature and humidity. In order to condition them, the equipment includes a heating and humidification system. This system takes part of the humidity and heat present in the air at the stack air outlet and transfers them to the supply gases.

47The electronic load demands electrical energy from the stack, by requiring an electrical current (i). In order to generate this current the stack must be fed with hydrogen and oxygen (which is taken from the air supply). The amount of these gases to be supplied to the stack depends on the electrical current demanded. The hydrogen supply flow rate is F H 2 , which enters the stack at a temperature of T H 2 in ; the air supply flow rate is F a , which enters the stack at a temperature of T a in . Both flows enter the stack at a relative humidity of 40% (calculated at stack temperature). Periodically, the circuit of hydrogen is purged, in order to remove impurities inside the stack and avoid its flooding. This is done by a valve which is activated by the signal U H 2 purge . The exhaust air from the stack leaves the stack at a temperature of T a out and at a relative humidity of 100%.

48It is possible to program profiles of electrical demand in the electronic load and, in this way, to emulate the electrical consumption of a house (lighting and appliances). The equipment also has a fan-cooled radiator through which it is possible to emulate the thermal energy consumption (heating and hot water). This radiator, however, works only in two states, on and off. When on, it extracts heat from the secondary circuit of the cooling system.

49Several magnitudes have to be controlled to ensure the correct operation of the system: inlet and outlet water temperature of the stack, air supply flow rate, hydrogen pressure at the stack anode inlet, and the relative humidity and the temperature of air and hydrogen supply flows. For this, the equipment includes several sensors and actuators, which are connected to a control unit based on a CompactRIO from National Instruments. The controllers of these magnitudes are implemented within this control unit. There are a total of six control loops.

50The CompactRIO communicates with a PC via Ethernet. A Supervisory Control and Data Acquisition (SCADA) system runs on the PC, by which it is possible to monitor the process, to log its signals, to change the set point of any control loop and to parameterize the controllers. Fig. 2 shows its main screen. The SCADA and the control system that runs on the CompactRIO have been implemented in LabView.

51The facility that has been described (µ-CHP system, SCADA and control unit) is an open system and, consequently, very flexible when it comes to making modifications in it or performing tests. The system has been conceived so that research and development activities aimed at optimizing the performance of µ-CHP systems can be conducted, with an emphasis on energy efficiency improvement, and this in two areas: control and energy management. The model that we present in this article is the first result of this line of work.

III. MODELING

52In this section we describe, first, the part of the µ-CHP that we model, i.e. the stack cooling system (Section III-A), the modeling methodology (Section III-B), the tests conducted to obtain the model and to validate it (Section III-C), and the optimization algorithm used to adjust the parameters of the model (Section III-D). Then, we introduce the four submodels that together constitute the complete model, as well as their equations and the assumptions assumed in their conception (Sections III-E, III-F, III-G and III-H). Finally, we present the complete model (Section III-I).

A. THE COOLING SYSTEM

53The cooling system of the µ-CHP plant which was presented in Section II is shown in Fig. 3 and is described in detail in this section. It consists of two water circuits, the primary circuit and the secondary circuit, coupled by a heat exchanger. The water of the primary circuit, which passes through the stack, is demineralized water, with a conductivity lower than 10 µS/cm.

54The stack generates the electrical energy required by the electronic load and, as a by-product, produces heat within itself. The stack voltage (v) depends on the electrical current demanded (i) and on the temperature of the stack, among other variables, and is determined by the characteristic curve of the stack. The heat generated by the stack is removed by the water flow of the primary circuit (F w 1 ) and transferred to the secondary circuit through the heat exchanger. This heat finally ends up in the hot water tank (tank 2), which serves as a heat storage.

55Pump 1 propels the water in the primary circuit and operates in steady state (U P1 = 100%). The water flow that passes through the stack (F w 1 ) is regulated by the motorized valve installed after pump 1 (U v ). There is an internal control loop of F w 1 , so a user (or a controller) can directly assign set points to F w 1 without having to worry about the motorized valve. This water flow rate is measured with a flow meter. By varying F w 1 it is possible to vary the amount of heat extracted from the stack. If F w 1 increases, more heat is extracted and the stack cools down. If it decreases, less heat is removed and the stack heats up. The outlet water temperature of the stack (T w out ) is used as a measure of the temperature of the stack.

56The radiator emulates the demand of thermal energy. This radiator is activated by the signal R and has two states, on and off. When the radiator is on, it extracts heat from the secondary circuit and evacuates it to the environment, as a result the water temperature in tank 2 (T t2 ) decreases. When the radiator is off, the heat losses in the system are residual, although they exist. These residual losses are due to the transfer of heat from all the elements of the system to the environment. The ambient temperature is, therefore, a relevant variable in the process. A temperature sensor is installed for its measurement (T amb ).

57The water flow rate of the secondary circuit (F w 2 ) is varied by means of the control signal of pump 2 (U P2 ), which is driven by a variable-speed drive. Like F w 1 , F w 2 is also internally controlled. The flow rate F w 2 is estimated from a measurement of the pressure at the inlet of the heat exchanger shell (P s in ). If this flow rate decreases, the amount of heat transferred through the heat exchanger also decreases, as a result less heat passes from the primary circuit to the secondary circuit, and this causes the water temperature at the stack inlet (T w in ) to increase; and vice versa, if the flow rate F w 2 increases, the amount of heat transferred from the primary to the secondary circuit increases and the temperature of the water entering the stack decreases.

58For the stack to work properly, there must be a temperature control system that maintains T w out and T w in at its set points, minimizing the effect of the disturbances to which these signals will be subjected as a result of changes in the demands of electrical and thermal energy. The set points of T w out and T w in are, on the recommendation of the stack manufacturer, 65 • C and 60 • C, respectively. This control system will manipulate the flows F w 1 and F w 2 , which, as we have seen, have an influence on those temperatures and, consequently, serve as manipulable variables. This temperature control system, as noted in the Introduction, is of great importance, since the electrical efficiency and lifetime of the stack depend on it. Currently, a relatively simple temperature control system is implemented. This control consists of two proportional-integral (PI) controllers, one for each temperature, which were adjusted using a linear model of the process. The non-linear model that we present in this work would enable a control engineer to develop a more sophisticated temperature control and, consequently, to improve the efficiency and lifetime of the stack.

B. MODELING METHODOLOGY

59The methodology used for the development of the model consists of the following stages:

60A) To delimit the part of the µ-CHP system that we want to model (the cooling system), specifying its inputs and outputs. B) Definition of the range of validity of the model. C) Conceptual division of the cooling system into subsystems, specifying the inputs and outputs of each subsystem. D) Modeling and validation of each subsystem separately. E) Interconnection of the submodels obtained in the previous stage to build the complete model. F) Fine adjustment of the complete model. G) Validation of the complete model. The modeling and validation of each subsystem (stage D) is divided, in turn, into the following steps:

611) Identification of the main elements of the subsystem.

622) Identification of the natural phenomena involved in the operation of these elements as well as the physical principles that govern them. 3) Introduction of simplifying hypotheses. 4) Determination of the structure of the submodel (set of equations) and its parameters, which is based on the physical principles and simplifying hypotheses. 5) Adjustment of the parameters of the submodel. 6) Evaluation of the results of the adjustment. If OK, validation (step 7); if not OK, revision of the simplifying hypotheses (step 3). 7) Validation of the submodel. If OK, the submodel is released; if not OK, revision of the simplifying hypotheses (step 3). The part of the µ-CHP plant that we want to model is the cooling system. This system was described in Section III-A and is represented in Fig. 3. Note that here we consider this system as a thermal process. This is important, because the selection of input and output signals that we detail below can only be understood in light of that fact. The signals that we consider as inputs to the system and as outputs are indicated in Fig. 3, the inputs in red and the outputs in blue. The electric current (i) and the stack voltage (v) provided by the stack are, considering the system as a thermal process, inputs, because the voltage and the current of the stack determine the amount of thermal energy it produces. The signals F H 2 and T H 2 in are also, from this point of view, inputs to the system (U H 2 purge only affects F H 2 ). However, we decided to ignore them, because the influence of the hydrogen flow rate and its temperature on the system turned out to be negligible, in comparison with the effect of the air flow rate (F a ) and its temperature (T a in ), which we do take into account. The signals F w 1 and F w 2 are inputs to the system. In fact, these are the variables which any temperature control will have to manipulate to control the temperature of the stack. The ambient temperature T amb is also considered as an input, because it affects the thermal behavior of the system, just like R, the activation signal of the radiator. The signals chosen as outputs are: T w out , T w in , T t2 , T a out , T s in and T s out .

63In general, the range of validity of a model, i.e. the range of operation within which the model is intended to represent the process, depends on the purpose of the model. In our case, the purpose of the model is to serve for the design of the stack temperature control. By taking into account this basic consideration, we established that the model had to be valid for current demands (i) between 140 A and 200 A, and for water temperatures in tank 2 (T t2 ) between 53 • C and 56 • C. Outside these ranges, no controller will be able to keep T w out and T w in at their set points, because its control actions (F w 1 and F w 2 ) saturate if these ranges are exceeded. This is simply a physical restriction of the system. Since our model is oriented towards control design, further increasing its range of validity would increase the complexity of the model without adding any additional value to its purpose.

64The cooling system was divided into four subsystems: SS1, SS2, SS3 and SS4 (see Fig. 3). Each of these subsystems was modeled independently, giving rise to submodels SM1, SM2, SM3 and SM4 (see Fig. 11).

65The adjustments of the parameters of the models, both those of the submodels (step 5) and the fine adjustment of the complete model (stage F), were made using the data set from the test for modeling (setM). The validations (stage G and step 7) were performed using the data set from the test for validation (setV). These two tests are described in detail in Section III-C.

66Note that the process of modeling is iterative: if the results of the adjustment of a submodel (step 6) or its validation (step 7) are unsatisfactory, one goes back to step 3 to revise the simplifying hypotheses. This is because it is not always easy to determine a priori which physical phenomena are relevant and which are not. In the same way, it is not self-evident to what extent the equations representing these physical phenomena can be simplified without this entailing a deterioration in the capacity of the submodel for representing reality. What we were looking for was a model in first principles, suitable for the design of a temperature control, but not unnecessarily complicated. Therefore, in practice, for each submodel we started with a simple structure and evaluated the goodness of its adjustment. If it was insufficient, we revised the simplifying assumptions and incorporated more complexity, until the adjustment and the validation satisfied our expectations.

67For example, when modeling the radiator, we initially assumed that the heat transfer parameters to the ambient for the states ON and OFF (h r ON and h r OFF ) were constant. Under this hypothesis, the adjustment achieved by the optimization algorithm displayed an intolerable discrepancy with respect to the test data. This fact led us to revise that hypothesis, assuming now that those heat transfer parameters depended on the water flow rate of the secondary circuit (F w 2 ), which is the water flow that passes through the radiator. The new adjustment improved substantially and, in addition, this improvement could be quantified.

68It is interesting to note that in some cases the opposite happened, that is, the results of the adjustment indicated that a certain physical phenomenon that had been considered as relevant was not. For example, it was initially assumed that there was a loss of heat between the water in tank 2 and the environment, and that the corresponding heat transfer parameter could be approximated by a constant. When adjusting submodel SM4, to which tank 2 belongs, the optimization algorithm returned a value close to 0 W /K for that coefficient. This informed us that that phenomenon, which we had assumed as relevant, was in fact negligible.

69Additionally, during the analysis of the adjustment of each submodel, we paid attention to the values of the parameters provided by the optimization algorithm and we checked whether these values were plausible or not. We could do this because the submodels are expressed in first principles, so their parameters have a direct physical sense. If the value of any of the parameters was unlikely, this was a clue that possibly there was some other relevant phenomenon that we were not considering, whose effect was being absorbed, incorrectly, by that parameter.

70The fact that the model is formulated in first principles represented still another advantage during the modeling process: since the parameters of the model have a clear physical sense, it is simple and intuitive to estimate an initial search range for each of them. Once again, the analysis of the adjustment guided us in this task: when the search of a parameter tried to exit its search range, this suggested an increase in the limits of the search range of that parameter.

71As can be seen, the analysis of the adjustment provided by the optimization algorithm gives many clues about which physical phenomena are relevant and are not being considered, and vice versa, which physical phenomena that were incorporated into the model are not relevant. For this reason, it serves as a starting point for the revision of the simplifying hypotheses. This is a useful help for the modeler, because it allows them to find, through this iterative process, the desired trade-off between model complexity and goodness of fit.

72The adjustment of the parameters of each submodel (step 5) consists in finding the set of values of these parameters that provides the ''best'' fit between the submodel response and the experimental data from the test for modeling (setM), which means to solve an optimization problem. To quantify the goodness of the fit, i.e. what ''best'' means, we used an index. The formulation of the optimization problem and the index will be described in detail in Section III-D. As in any optimization problem, here there arises the difficulty that the cost function to be optimized (i.e. the index) presents local minimums and that the optimization algorithm, instead of finding the global optimum, is trapped in one of these local minimums. In our case, since we are dealing with the adjustment of a non-linear model with a lot of parameters, the probability that there are local minimums is high. To cope with this problem we did two things. First, we employed a genetic algorithm as optimization algorithm, because genetic algorithms have proven to be effective as global optimizers. Moreover, our research team has experience in their use. Second, we launched the algorithm three times (in parallel) for each adjustment. In this way, since the genetic algorithm begins with a random population, if the three executions of the algorithm returned the same solution, this was a reasonable proof that this solution was precisely the global optimum.

73It should be added that the search space was discretized. That is, for each parameter, apart from its range of values, which defines the search space for that parameter, a minimum step was defined. For example, for a given heat transfer parameter the range could be from 0 to 10 W/K and the step 0.1 W/K; this would result in a set of 101 possible values for that parameter. The discretization of the search space makes optimization more efficient. The determination of the minimum steps is intuitive, thanks to the fact that the model is expressed in first principles. In addition, the minimum steps can be revised if the accuracy of the adjustment is unsatisfactory.

74In order to evaluate the adjustment of each submodel (step 6), we used, on the one hand, the aforementioned cost function, which gives an objective measure of the goodness of the adjustment and, on the other hand, a visual comparison of the submodel response with the test data. This comparison allowed an assessment of how well the submodel was able to capture the dynamics of the plant, regardless of its accuracy, i.e. regardless of the value of the cost function.

75The process of modeling, adjustment and validation of each submodel ends with a set of values, namely, the values of the parameters of the submodel that minimize the cost function. Once the four submodels were adjusted and validated independently, they were merged to form the complete model (see Fig. 11). A fine adjustment of the parameters of the complete model was then carried out (step F), by using again the optimization algorithm. On this occasion, the set of values of the parameters of the submodels already adjusted was included, as a starting solution, in the initial population of the algorithm. In addition, search ranges were narrowed and minimum steps were also reduced. This fine adjustment was launched three times too. In this way, we obtained the final set of values for all the parameters of the complete model. Finally, once the complete model was adjusted, it was validated against the data set from the validation test.

C. MODELING AND VALIDATION TESTS

76The tests were conducted on the µ-CHP system by using the SCADA implemented in LabView (Fig. 2). Two tests were carried out: 1) one test for the modeling and for the adjustment of the parameters and 2) one test for the validation of the model. They were conducted on different days, the test for modeling on 10/13/2017 and the test for validation on 10/17/2017, and both have an approximate duration of 2.5 hours. In both tests, the process was excited by VOLUME 7, 2019 manipulating the variables i, F w 1 , F w 2 and R, that is, the electrical energy demand, the water flow rates of the primary and secondary circuits, and the thermal energy demand. These signals are represented in Fig. 4 (test for modeling) and in Fig. 5 (test for validation). In addition, the following signals were measured and recorded: on the one hand, T w out , T w in , T t2 , T a out , T s in and T s out (which are the output signals of the process and will be presented in Section IV, where the adjustment and validation results are displayed) and, on the other hand, T amb , v, T a in and F a . These last signals, remember, are also inputs to the process, but not manipulable. For reasons of simplicity and clarity, these last signals have not been included in the figures.

77The tests are step tests. This is relevant for two reasons. First, because in a real µ-CHP system the electrical and thermal energy demands (in our system, i and R) have usually the form of steps. Second, because a temperature controller may apply also high frequency control actions (in our system, F w 1 and F w 2 ) in response to disturbances. Therefore, the fast dynamics of the process must be captured by the model. Both tests are analogous in nature (step tests), although quantitatively different (they differ in the values of the steps and in their sequence). The tests were carried out in open loop. This was done to prevent the PI controllers from attenuating the mutual effects produced by the programmed steps in the manipulated variables, which would have partially concealed the dynamics of the system. For example, a change in F w 1 affects T w out , but also T w in , so the controller of T w in will act on F w 2 to counteract the disturbance produced by F w 1 ; as a result the effect of F w 1 on T w in will be attenuated and it will be difficult to identify. Again, it is important that the model (since it is a model oriented to control) captures the dynamics of the process well, because if the control designed is based on a model that does not satisfy that requirement, such a control could make the process unstable, especially if it is an aggressive control.

D. THE OPTIMIZATION ALGORITHM

78The parameters of each of the four submodels are adjusted using the data set from the modeling test (step 5). This adjustment task is formulated as an optimization problem and this problem is solved by an optimization algorithm.

79Given the mathematical structure of a submodel, expressed in its general form as a set of non-linear differential equations:

80where u(t) are the inputs, y(t) the outputs, x(t) the state variables and θ = [θ 1 , ..., θ n ] the vector of parameters to be adjusted, the optimization problem consists in finding the set of values of θ that minimize a certain cost function (J ), which measures the goodness of fit of the model against the real data. This is to say:

81subject to the following restrictions:

82Basically, these restrictions define the search space, in other words, θ i and θ i are the lower and upper limits of the search range of the parameter θ i . Solving that optimization problem is precisely what the optimization algorithm does. There are several ways in which the cost function can be defined. We defined it as:

83where:

84where n is the number of outputs,ŷ k (t) is the output k of the process, y k (t) the output k of the submodel and T is the duration of the test. That is to say, what is minimized (J ) is the sum of the average errors in the outputs of each submodel. Note that, due to the way in which the index has been defined, all the errors in the submodel outputs have the same relative importance.

85In short, the optimization algorithm takes as inputs: 1) the mathematical structure of the submodel, 2) the modeling test (setM), 3) the cost function (J ) and 4) the search space; and it returns the values of the parameters of the submodel that minimize the cost function. The optimization algorithm used is a genetic algorithm. In particular, we use the genetic algorithm described in [40], available in Matlab Central, at https://es.mathworks.com/matlabcentral/fileexchange/ 39021-basic-genetic-algorithm?s_tid=prof_contriblnk.

E. SUBMODEL 1 (SM1)

86The subsystem (SS1) corresponding to this submodel (SM1) consists of a single element, the PEMFC stack (see Fig. 3). The inputs of this submodel are F a , T amb , T a in , v, i, T w in and F w 1 ; and its outputs are: T w out and T a out (see Fig. 11). The parameters to be adjusted in this submodel are: V w , V a , k a , h fc 2max , h fc 2min , h fc loss , h a max , h a min , h w max , h w min , h aw , cal T w out and cal T a out . These signals and parameters will be explained below, as the equations of this submodel are introduced. But first, a clarifying note: In this section and in the three that follow, we describe the equations of each element of the submodels. The binding equations, i.e. the equations that model the connections between elements within a submodel or between submodels within the complete model, VOLUME 7, 2019 for example T w in = T p1 out , we do not specify them, since they are trivial just by looking at Fig. 11, where they are represented by arrows. Moreover, since a lot of the equations are based on the same modeling principles, we have included the Appendix A', where the five most common modeling principles are numbered and summarized in a table (Table 5). In order to simplify the introduction of the equations and to avoid unnecessary repetitions, we will refer to these modeling principles (MP) throughout the following four sections.

87The PEMFC stack working principle diagram that we have assumed is displayed in Fig. 6. It shows the physical phenomena that have been considered as relevant, as well as the main variables, constants and parameters involved. Two electrochemical reactions take place at each cell of the stack. At the anode:

88At the cathode:

89The maximum electrical energy that a cell can produce is given by the Gibbs free energy:

90And the ideal potential of the cell is:

91where n is the number of electrons released in the reaction (two) and F is Faraday's constant (96485 As/mol). At 25 • C and atmospheric pressure E c = 1.23 V (ideal standard potential). Therefore, the maximum electrical energy that the stack can generate, assuming that there are no losses of any kind (ideal situation), is:

92where n c is the number of cells of the stack (16 cells) and i is the electric current generated. However, the electric power actually available between the terminals of the stack is lower and it is given by:

93where v is the voltage between the terminals of the stack. The difference between the ideal electrical energy and the electrical energy actually available corresponds to the energy that the stack produces in the form of heat, which is

94Both signals v and i are inputs to this submodel and they were measured during the tests. Part of this heat is extracted by the water flow of the primary circuit, another part passes to the air that runs through the stack (Q wa ) and the rest is transferred to the stack shell (Q wfc ). Thus, the evolution of the water temperature at the stack outlet can be expressed as:

95The constant k w is the product c w ρ w ; c w is the specific heat of the water and ρ w the density of the water, both of them for a water temperature of 60 • C, which we assume as a representative value of the water temperature in both the primary and the secondary circuits. The values of these two parameters were taken from [39] and their product gives k w = 4112120.21 J /m 3 K . The volume V w is the volume of water inside the stack and it is a parameter to be adjusted by the optimization algorithm.

96The heat difference Q w is calculated according to MP2 (F = F w 1 , T in = T w in , T out = T w out , k = k w ) and corresponds to the amount of heat that is removed from the stack by the water flow of the primary circuit.

97The amount of heat transferred from the water to the stack shell is:

98which depends, on the one hand, on the temperature gradient between the temperature of the water inside the stack (T w ) and the temperature of the stack shell (T fc ), and on the other hand, on the heat transfer parameter h fc 2 . As a representative value of the temperature of the water inside the stack, we chose the average temperature between the temperature of the water at the stack inlet and the temperature of the water at the stack outlet (MP4: T in = T w in , T out = T w out ). The heat transfer parameter h fc2 is assumed to depend on the water flow, according to MP5 (h min = h fc 2min , h max = h fc 2max , F min = F w 1min , F max = F w 1max , F = F w 1 ). That is to say, it has been assumed (as an approximation) that there is a linear relationship between the water flow rate F w 1 and the heat transfer parameter h fc 2 , i.e. the higher the water flow rate, the more heat will be transferred from the water to the stack shell, for a given temperature gradient. Note that this relation between h fc2 and F w 1 is the result of a trial and error process, as we explained in Section III-B. F w 1min and F w 1max are the minimum and the maximum values of F w 1 , 2.9005·10 −5 m 3 /s (1.74 liters/minute) and 1.1657·10 −4 m 3 /s (6.99 liters/minute), respectively. The constants h fc 2min and h fc 2max are the minimum and the maximum values of h fc 2 , and they are parameters to be adjusted by the optimization algorithm.

99The heat flow rate transferred from water to air is given by:

100which depends, on the one hand, on the temperature gradient between the temperature of the water inside the stack (T w ) and the temperature of the air inside the stack (T a ), and on the other hand, on the heat transfer parameter h fc 1 . Here also, a representative value of the temperature of the air inside the stack (T a ) is calculated after MP4 (T in = T a in , T out = T a out ). The overall heat transfer parameter between the water and the air (h fc 1 ) is calculated from three independent heat transfer parameters (h w , h a and h aw ), according to the following equation:

101It is also assumed, as an approximation, that the heat transfer parameter h a depends linearly on the air flow rate (F a ), according to MP5 (h min = h a min , h max = h a max , F min = F a min , F max = F a max , F = F a ). F a min and F a max are the minimum and the maximum values of F a , 0.0020 m 3 /s (120 liters/min) and 0.0027 m 3 /s (162 liters/minute), respectively. The constants h a min and h a max are the minimum and maximum values of h a , and they are parameters to be adjusted by the optimization algorithm. Similarly, we assume that the heat transfer parameter h w is linearly dependent on the water flow rate (MP5: h min = h w min , h max = h w max , F min = F w 1min , F max = F w 1max , F = F w 1 ). The constants h w min and h w max are the minimum and maximum values of h w . Both are parameters to be adjusted by the optimization algorithm. Finally, the heat transfer parameter h aw is assumed to be constant, and it is also a parameter to be adjusted.

102The heat flow rate transferred from the water to the air (Q wa ) will increase the temperature of the air volume within the stack. Thus, the air temperature at the stack outlet (T a out ) can be calculated by the following expression:

103The constant k a is the product c a ρ a ; c a is the specific heat of the air and ρ a the density of the air inside the stack. Since the air density within the stack depends on the pressure, it is not easy to estimate k a theoretically, as we did for k w . For this reason, it will be adjusted by the optimization algorithm. The volume V a is the volume of air inside the stack and is also a parameter to be adjusted. The heat difference Q a is calculated according to MP2

104The heat transferred from the water to the stack shell (Q wfc ) will cause the temperature of the stack shell (T fc ) to increase, according to the following expression:

105C fc is the stack heat capacity. This constant is calculated theoretically as the product of the mass of the stack, 14.3 kg, and the specific heat of aluminum, 905 J /kg · K (value taken from [39]). That product gives C fc = 12941.5 J /K . The heat flow rate Q fc loss is the amount heat that is transferred from the stack shell to the environment, that is, the heat lost to the environment due to natural convection. It is given by:

106That is to say, it depends, on the one hand, on the temperature gradient between the temperature of the stack shell (T fc ) and the ambient temperature (T amb ), and on the other hand, on the heat transfer parameter h fc loss , which is assumed to be constant and is a parameter to be adjusted. During the adjustment of this submodel, when comparing its output T w out with the output of the real system, we observed that their dynamics were very similar, but there was a constant difference between the two signals. From this fact, we inferred that this discrepancy could be due to a calibration error in the temperature sensor that measures the water temperature at the stack outlet. Although that sensor was calibrated before it was assembled, the assembly itself could have caused a slight decalibration. We also thought that the same problem could be taking place in the temperature sensor that measures the air temperature at the stack outlet, although with a less noticeable effect. So, in order to model these hypothetical calibration errors, we included two additional parameters in the submodel, i.e. two correction coefficients of the calibration errors. These coefficients are cal T w out and cal T a out , they are constant and are added to the outputs of the submodel. These two parameters were adjusted by the optimization algorithm together with the rest of parameters. Their search space was set between −2 • C and 2 • C. Note that if the hypothesis were incorrect, the optimization algorithm would have returned null values for these coefficients. In a subsequent test, we confirmed that there was indeed a calibration error in the measurement of the water temperature at the stack outlet and the value of this error corresponded approximately to the value provided by the optimization algorithm for the parameter cal T w out .

107Note that our goal is to develop a thermal model of the cooling system. Consequently, the modeling of the electrochemical phenomena involved in the functioning of the PEMFC stack does not belong to the scope of this work. Moreover, this kind of modeling have already been thoroughly studied in the existing literature. In particular, note that the submodel of the PEMFC stack (SM1) does not include the typical polarization curve (which provides the stack voltage (v) as a function of the electric current (i)), because this polarization curve would be part of an electrical model, not a thermal one. For this reason, the stack voltage (v) is considered as an input to the model and it is measured. This measured signal (v) is used in (12) and (13) to calculate P e and Q heat , respectively.

F. SUBMODEL 2 (SM2)

108The subsystem (SS2) that corresponds to this submodel (SM2), consists of a single element, pipe 4 (see Fig. 3). The inputs of this submodel are T p4 in , F w 2 and T amb ; and its output is: T p4 out (see Fig. 11). This submodel is quite simple and has only three parameters to be adjusted: V p4 , h p4 loss and cal T p4 out . A diagram with the thermal phenomena assumed in pipe 4 is shown in Fig. 7. The heat difference in pipe 4 ( Q p4 ) is calculated according to MP2 (F = F w 2 , T in = T p4 in , T out = T p4 out , k = k w ), where T p4 in is the water temperature at pipe 4 inlet, T p4 out is the water temperature at pipe 4 outlet, the constant k w was explained in the previous section and F w 2 is the water flow rate of the secondary circuit. It is assumed that there is a loss of heat from the water to the environment, which is given by:

109h p4 loss is the heat transfer parameter from the water within the pipe to the environment, which is assumed to be constant and is a parameter to be adjusted. The temperatureT p4 is the average value between the inlet water temperature and the outlet water temperature (MP4: T in = T p4 in , T out = T p4 out ), value that is assumed to be representative of the water temperature in the pipe. By considering the incoming and outgoing heat flow rates in pipe 4, the variation of the water temperature at its outlet is given by:

110where V p4 is the volume of the pipe and a parameter to be adjusted. Also in this submodel, as we did in submodel 1, in order to correct a possible calibration error in the measurement of the outlet water temperature, a correction coefficient was included (cal T p4 out ). This coefficient is constant and a parameter to be adjusted. Its search range is [−2 • C, 2 • C].

G. SUBMODEL 3 (SM3)

111The subsystem (SS3) that corresponds to this submodel (SM3) consists of three elements: heat exchanger, tank 1 and pipe 1 (see Fig. 3). The inputs of this submodel are T t in , T s in , F w 1 , F w 2 and T amb ; and its outputs are: T s out and T p1 out (see Fig. 11). The parameters to be adjusted are:

112h s min , h s max , V p1 and h p1 loss . A working principle diagram of the heat exchanger is shown in Fig. 8 and of tank 1 in Fig. 9. The diagram of pipe 1 is identical to pipe 4's, which was introduced in the previous section. Let us begin with the heat exchanger. The transfer of heat in the heat exchanger takes place from the tube side to the shell side. The water flow of the primary circuit (F w 1 ) circulates through the tube and the water flow of the secondary circuit (F w 2 ) circulates through the shell. Thus, the heat is transferred from the primary circuit to the secondary circuit. The heat exchanger is configured in a parallel-flow arrangement.

113The primary water flow enters the tube at a temperature T t in and leaves it at a temperature T t out . Similarly, the secondary water flow enters the shell at a temperature T s in and leaves it at a temperature T s out . The heat difference in the tube side ( Q t ) and the heat difference in the shell side ( Q s ) are calculated after MP2 for F = F w 1 , T in = T t in , T out = T t out , k = k w , and

114The amount of heat transferred from the tube side to the shell side is given by:

115where h ts is the overall heat transfer parameter of the heat exchanger and T ts the temperature gradient between tube and shell. The coefficient h ts depends on three heat transfer phenomena: 1) forced convection in the tube side, 2) conduction through the wall between tube and shell and 3) forced convection in the shell side. It can be calculated as:

116where n ch is the number of channels in the heat exchanger (9 channels), h t is the heat transfer parameter due to forced convection in the tube side, h e is the conduction heat transfer parameter, which is constant, and h s is the heat transfer parameter due to forced convection in the shell side. h t is assumed to depend linearly on F w 1 according to

117where h t min and h t max are the minimum and maximum values of h t . Both are parameters to be adjusted by the optimization algorithm. Similarly, the coefficient h s is assumed to depend linearly on F w 2 according to MP5 (h min = h s min , h max = h s max , F min = F w 2min , F max = F w 2max , F = F w 2 ), where F w 2min and F w 2max are the minimum and maximum values of F w 2 , 4.2137·10 −5 m 3 /s (2.53 liters/minute) and 1.5493·10 −4 m 3 /s (9.29 liters/minute), respectively. h s min and h s max are the minimum and maximum values of h s . Both are parameters to be adjusted. h e was calculated theoretically from the technical data of the heat exchanger (area, thickness and thermal conductivity of the plates), its value is h e = 216.72 W /K .

118On the other hand, the temperature gradient T ts in (23) is the so-called logarithmic mean temperature difference (LMTD) [39], which is calculated according to:

119where, for a parallel-flow configuration:

120and

121By considering the incoming and outgoing heat flow rates in tube and shell sides, it follows that their outlet water temperatures have to satisfy:

122and

123where V t is the volume of water in the tube side and V s is the volume of water in the shell side. These volumes were calculated theoretically from the dimensions of the heat exchanger, both resulting in 1.8 · 10 −4 m 3 (0.18 liters). Now let us look at the equations of tank 1. The heat difference in tank 1 ( Q t1 ) is calculated after MP2 (F = F w 1 , T in = T t1 in , T out = T t1 out , k = k w ), where T t1 in is the temperature of the water entering the tank and T t1 is the temperature of the water leaving the tank. It was not necessary to assume any lost of heat to the environment, so the water temperature at tank 1 outlet is given by:

124where V t1 is the volume of water in the tank, which is constant and is also a parameter to be adjusted. Finally, the equations that model pipe 1 are exactly the same as those of pipe 4 (see Section III-F). The heat difference in pipe 1 ( Q p1 ) is based on MP2 (F = F w 1 , T in = T p1 in , T out = T p1 out , k = k w ), where T p1 in is the water temperature at pipe 1 inlet and T p1 out is the water temperature at pipe 1 outlet. The loss of heat to the ambient is:

125where h p1 loss is the heat transfer parameter to the environment andT p1 is calculated after MP4 (T in = T p1 in , T out = T p1 out ). So, the balance of heat flows in the pipe 1 results:

126where V p1 is the volume of pipe 1, which is unknown and, therefore, a parameter to be adjusted.

H. SUBMODEL SM4

127The subsystem (SS4) corresponding to this submodel (SM4) consists of four elements: pipe 2, radiator, pipe 3 and tank 2 (see Fig. 3). The inputs of submodel are T p2 in , F w 2 and R; and its output is: T t2 (see Fig. 11). The parameters to be adjusted are: h r OFFmin , h r OFFmax , h r ONmin , h r ONmax , V t2 , V r and T amb r . The diagrams of pipes 2 and 3 are similar to that of pipe 4, which has already been introduced in Section III-F, with the only difference that for pipes 2 and 3 it was not necessary to model the losses of heat to the environment, because they are negligible compared to the amount of heat that the radiator extracts from the secondary circuit, in both states, on and off. The diagram of tank 2 is identical to that of tank 1, presented in Section III-G. The diagram of the radiator is shown in Fig. 10. Let us begin with pipes 2 and 3. The heat difference in pipe 2 ( Q p2 ) is calculated after MP2 (F = F w 2 , T in = T p2 in , T out = T p2 out , k = k w ), where T p2 in is the water temperature at the pipe inlet and T p2 out is the water temperature at the pipe outlet. Since there are no heat losses to the environment, the temperature of the water leaving the pipe is given by:

128where V p2 is the volume of pipe 2. This constant is calculated theoretically from the length and the cross-section area of the pipe, its value is 7.0686 · 10 −4 m 3 (0.7069 liters). The heat difference in pipe 3 ( Q p3 ) is calculated after MP2 (F = F w 2 , T in = T p3 in , T out = T p3 out , k = k w ), where T p3 in is the water temperature at the pipe inlet and T p3 out is the water temperature at the outlet of the pipe. Thus, the water temperature at the outlet of the pipe is given by:

129where V p3 is the volume of pipe 3. Also theoretically calculated, its value is 3.5343 · 10 −4 m 3 (0.3534 liters). Regarding tank 2, the heat difference Q t2 is calculated

130where T t2 in is the water temperature at the tank inlet and T t2 is the water temperature of the tank. As heat losses to the environment are not considered, T t2 is given by:

131where V t2 is the volume of water in tank 2 and a parameter to be adjusted. Finally, we address the radiator, which is the most important element of this submodel. The water flow of the secondary circuit (F w 2 ) circulates through the radiator. It enters the radiator at a temperature T r in and leaves it at T r out . The heat difference in the radiator ( Q r ) is calculated after MP2 (F = F w 2 , T in = T r in , T out = T r out , k = k w ). The amount of heat transferred from the hot water within the radiator to the environment depends on whether the fan is on (R = ON ) or off (R = OFF), since in the first case the transfer of heat occurs by natural convection, whereas in the second by forced convection. This results in two different heat transfer parameters, h r ON and h r OFF , one for each state (ON, OFF). Therefore, the heat transfer parameter of the radiator can be expressed as follows:

132Each of these coefficients depends, in turn, on the water flow rate F w 2 . As we did before, we also assume here that these dependencies are linear. h r ON is calculated according to MP5

133, where h r OFFmin and h r OFFmax are the minimum and the maximum values of h r OFF and also parameters to be adjusted. The amount of heat transferred to the environment depends, as we said, on the heat transfer parameter h r , but it also depends on the temperature gradient between the temperature of the water within the radiator and the temperature of the air that surrounds it:

134T r is the average value of the water temperatures at the inlet and outlet of the radiator, and it is the value that has been assumed as representative of the water temperature inside the radiator, calculated after MP4 (T in = T r in , T out = T r out ). T amb r is the temperature of the air surrounding the radiator. This temperature is different from the temperature assumed as ambient temperature for the rest of submodels (T amb ), for whose measurement a sensor was installed. The reason for this difference is that the radiator is mounted next to a window that is partially open (it can not be closed because through it the purge of hydrogen is evacuated). Thus, the temperature of the air surrounding the radiator is not the one inside the laboratory (T amb ), but, presumably, a weighted average of two variables, the temperature inside the laboratory and the temperature outside the building (considerably lower than the former, since the tests were conducted in October). As we had not installed any sensor to measure the air temperature surrounding the radiator (T amb r ), we decided to estimate it. We assumed for this temperature a constant and unknown value, a value within the temperature range between the inside temperature (T amb ) and the outside temperature, and then we adjusted its value as one more parameter of the model, with the data set from the modeling test (that is why T amb r is listed as a parameter of submodel SM4 at the beginning of this section). Moreover, since the validation test was performed only four days after the modeling test and during the same time span, we initially considered that it would be plausible to assume that the ambient temperature of the radiator (T amb r ) on that day was approximately equal to the one on the day of the modeling test. We will return to this hypothesis in Section IV-B, when we comment the results of the model validation.

135Lastly, the balance of heat flows in the radiator determines the water temperature variation at the radiator outlet: the six outputs of the model are compared with the six outputs of the real system, having been both, model and system, excited with the same input signals (Fig. 4). The values of the parameters that achieve that adjustment are shown in Table 1.

136As can be seen from these results, the adjustment is satisfactory. First, the accuracy of the model is good: the overall average error (the average of the average errors of the six outputs) is 0.17 • C (see Table 2). Second, the adjustment is balanced, that is, all the outputs of the model match their corresponding process outputs approximately equally well (T s in is the best adjusted and T t2 the worst, and there is a difference of 0.089 • C between their average errors). Third, the model captures the dynamics of the system well. Fourth, the values of the parameters (Table 1) are realistic, which is a good evidence that the model remains close to reality, from a conceptual point of view.

B. RESULTS OF THE MODEL VALIDATION

137The results of the validation of the complete model are shown in Fig. 13. In this figure, the six outputs of the model are compared, again, with the six outputs of the real system, having been both, model and system, excited with the same input signals, in this case the ones corresponding to the validation test (see Fig. 5).

138The first thing that can be observed is that the response of the model against the validation test data, in comparison with the results of the model adjustment (see Fig. 12), deteriorates. The accuracy (overall average error) achieved in this case is 0.438 • C (see Table 3), compared to 0.17 • C that was achieved in the adjustment with the modeling test data. A certain degree of deterioration in accuracy when validating, with respect to the adjustment in the modeling phase, is usual and normal. However, in our case, we think that this deterioration has an additional cause, namely, that the hypothesis assumed, according to which the ambient temperature for the radiator (T amb r ) on the modeling test day was equal to the one on the validation test day, is false. We believe this for the following reason. If T amb r is readjusted (maintaing the same values for the remaining 29 parameters) with the validation test data, the optimization algorithm returns a new value of T amb r , 27.86 • C (0.75 • C higher than the one which resulted from the adjustment), and when this new value of T amb r is used, the fit between the model outputs and the real signals of the validation test substantially improves (see Fig. 14): the overall average error shifts from 0.438 • C to 0.296 • C (see TABLE 3. Average error of each output of the model with respect to the outputs of the process when it is tested against the validation test data. Table 4), which means an improvement of 0.142 • C. Note also that the temperature T amb r represents one of the two reference points of the thermal process (the other one is T amb ), i.e. it is something like the ground in an electrical circuit (using the analogy between thermal and electrical systems). Consequently, it only determines the operating point of the system in steady state. This is why the responses of the model before and after the adjustment of T amb r are practically identical in shape, differing only in their average value (compare Fig. 13 and 14). Certainly, the ideal would have been to dispose, from the beginning, an additional temperature sensor next to the radiator, in order to have a real measurement of T amb r on both days.

139A second observation from Fig. 13 is that the model, despite the aforementioned deterioration in its accuracy, continues to faithfully capture the dynamics of the process, exactly the same as it did for the modeling test data (Fig. 12). This means that, in terms of the ability of the model to represent the dynamics of the process, there has been no deterioration.

140The ability of a model to faithfully represent the dynamics of the process is precisely the most important characteristic that a control-oriented model must fulfill, because any temperature control of a PEMFC stack will always incorporate an integral action to compensate for errors in steady state and, therefore, it will absorb any constant difference that may exist between the model and the process. Thus, after weighing up both aspects, accuracy and ability to faithfully represent the dynamics of the process, and given that the former is not critical and the latter is crucial, we decided to release the model, because it fulfills its purpose, which is to be useful for a subsequent design of a temperature control.

V. CONCLUSION

141In this article, we have presented a model of the cooling process of a µ-CHP system based on a PEMFC stack. The model has been developed to be used for the design of the temperature control of the stack. It is based on first principles, dynamic, non-linear and has been validated empirically. The results show that the model is able to faithfully represent the process. Especially, it is remarkable the accuracy with which the model captures the dynamics of the real process, which is the most important feature that a control-oriented model TABLE 4. Average error of each output of the model with respect to the outputs of the process when it is tested against the validation test data, after the readjustment of T amb r . must fulfill. Therefore, the model is useful for a subsequent temperature control design.

142As far as we know, there is no model in the literature that satisfies these characteristics (see Appendix B) and its need has been pointed out in several reviews (see [5], [33]). Therefore, the main contribution of this work consists of developing and publishing a model of the cooling process of a µ-CHP system based on a PEMFC stack (i.e. stack and heat recovery unit) which is dynamic and has been experimentally validated. The advantage of such a model is that it enables the design of a more sophisticated temperature control of the stack and, consequently, with a better performance than the one that a control based on a simple model (such as, for example, a First Order Plus Dead Time (FOPDT) model) can achieve.

143The model has been implemented in Matlab/Simulink and it is accessible, together with the test data that were used for its development, at http://hdl.handle.net/10251/118336. Moreover, the methodology employed to develop the model has been described in detail. This, added to the fact that the model is expressed in first principles (so it has a close relation with the structure of the real system and its parameters have physical meaning), allows other modelers to take our model as a starting point and, by making the necessary modifications, to build models of their µ-CHP systems.

144In a future work we plan to design, by using the model we have presented here, a temperature control for the stack of our µ-CHP system and to validate it experimentally, in order to improve the performance of the system with respect to the performance that the current control (based on a linear and simpler model) offers. Table 5 summarizes the main common modeling principles on which the four submodels (Sections III-E, III-F, III-G and III-H) are based. Table 6 summarizes the main characteristics of the thermal models found in the literature review that we carried out VOLUME 7, 2019 Note that this table refers only to thermal models. In some of the works listed, the authors develop other models as well (for example, an electrochemical model of the PEMFC), apart from a thermal model. In these cases, the attributes ''dynamic or static'' and ''experimentally validated'' refer to the thermal models exclusively.

APPENDIX B THERMAL MODELS IN THE LITERATURE

145As Table 6 shows, there are only three models that satisfy being dynamic and having been experimentally validated (Musio et al. [27], Real et al. [28] and San Martín et al. [29]). However, in these works 1) the stack is refrigerated by air (by means of a fan) and 2) the heat removed from the stack is evacuated to the atmosphere, i.e. the systems that these authors model do not include a heat recovery subsystem, which is the feature that makes an energy generator system a CHP system (cogeneration), (see [7]). In other words, the systems modelled in these works are substantially different from the system that we model in our work. Consequently, a direct comparation is not possible. Nonetheless, it is worth saying some words about these models.

146In Musio et al. [27], the validation results show a discrepancy between real and simulated stack temperatures of almost 4 • C (maximum error) and the model dynamics do not represent well the dynamics of the real system. Moreover, the stack air outlet temperature is not validated. In Real et al. [28], the validation results are remarkable. The stack temperature provided by this model follows the real stack temperature quite well within a wide range of temperatures. However, the model is validated only for changes in the electric current demanded to the stack and not for changes in the manipulable variable (fan voltage), which stays constant during the validation test. In order to design a dynamic control of the stack temperature, the model should represent not only the dynamic relation between the output (stack temperature) and the perturbation (electric current) but also the dynamic relation between the output and the manipulable variable, because this manipulable variable will be, once the control is designed, the control action. The model presented in Martín et al. [29] has exactly the same limitation. This model achieves a satisfactory matching between model and process for changes in the electric current demanded to the stack (perturbation), but there is no validation for changes in the manipulable variable (fan voltage). The reason why these two last works do not validate their models for changes in the manipulable variable (fan voltage) may be the following: in both cases the system modeled is a closed system (Nexa 1200) and, therefore, it probably hinders from accessing to the fan voltage directly, so that it can be freely manipulated, and independently from the electric current demanded.

참고문헌 39건

  1. A simplified PEM fuel cell model for building cogeneration applications Energy and Buildings · Elsevier BV · 2015 10.1016/j.enbuild.2015.08.023
  2. Fuel cells for domestic heat and power: are they worth it? 2010
  3. PEM fuel cell model suitable for energy optimization purposes Energy Conversion and Management · Elsevier BV · 2009 10.1016/j.enconman.2009.09.028
  4. Modelling of PEM Fuel Cell Performance: Steady-State and Dynamic Experimental Validation Energies · Multidisciplinary Digital Publishing Institute · 2014 10.3390/en7020670
  5. Dynamic analysis of PEMFC-based CHP systems for domestic application Applied Energy · Elsevier BV · 2011 10.1016/j.apenergy.2011.09.008
  6. A heat transfer textbook 1981
  7. Fuel cells for micro-combined heat and power generation Energy & Environmental Science · Royal Society of Chemistry · 2009 10.1039/b902222h
  8. Fuel cell systems optimisation – Methods and strategies International Journal of Hydrogen Energy · Elsevier BV · 2011 10.1016/j.ijhydene.2011.08.053
  9. Coolant controls of a PEM fuel cell system Journal of Power Sources · Elsevier BV · 2007 10.1016/j.jpowsour.2007.12.066
  10. Fuel cell micro-CHP techno-economics: Part 1 – model concept and formulation International Journal of Hydrogen Energy · Elsevier BV · 2009 10.1016/j.ijhydene.2009.09.094
  11. Theoretical and experimental investigations on thermal management of a PEMFC stack International Journal of Hydrogen Energy · Elsevier BV · 2011 10.1016/j.ijhydene.2011.01.052
  12. Control-Oriented Modeling and Analysis for Automotive Fuel Cell Systems Journal of Dynamic Systems Measurement and Control · ASM International · 2004 10.1115/1.1648308
  13. Fuel cell technology for domestic built environment applications: State of-the-art review Renewable and Sustainable Energy Reviews · Elsevier BV · 2014 10.1016/j.rser.2014.10.080
  14. Steady state and dynamic performance of proton exchange membrane fuel cells (PEMFCs) under various operating conditions and load changes Journal of Power Sources · Elsevier BV · 2006 10.1016/j.jpowsour.2006.03.077
  15. Modeling and control of air stream and hydrogen flow with recirculation in a PEM fuel cell system—I. Control-oriented modeling International Journal of Hydrogen Energy · Elsevier BV · 2006 10.1016/j.ijhydene.2006.02.031
  16. PEMFC system simulation in MATLAB-Simulink® environment International Journal of Hydrogen Energy · Elsevier BV · 2011 10.1016/j.ijhydene.2011.01.093
  17. Micro combined heat and power (MCHP) technologies and applications Renewable and Sustainable Energy Reviews · Elsevier BV · 2013 10.1016/j.rser.2013.07.053
  18. Development and experimental validation of a PEM fuel cell dynamic model Journal of Power Sources · Elsevier BV · 2007 10.1016/j.jpowsour.2007.04.066
  19. Model prediction of effects of operating parameters on proton exchange membrane fuel cell performance Renewable Energy · Elsevier BV · 2009 10.1016/j.renene.2009.08.017
  20. Part two: Control of a novel HTPEM-based micro combined heat and power fuel cell system International Journal of Hydrogen Energy · Elsevier BV · 2008 10.1016/j.ijhydene.2008.01.008
  21. Demonstration of a residential CHP system based on PEM fuel cells Journal of Power Sources · Elsevier BV · 2004 10.1016/j.jpowsour.2004.01.010
  22. A critical review of cooling techniques in proton exchange membrane fuel cell stacks International Journal of Hydrogen Energy · Elsevier BV · 2011 10.1016/j.ijhydene.2011.11.010
  23. Part one: A novel model of HTPEM-based micro-combined heat and power fuel cell system International Journal of Hydrogen Energy · Elsevier BV · 2008 10.1016/j.ijhydene.2008.01.009
  24. A review of the main parameters influencing long-term performance and durability of PEM fuel cells Journal of Power Sources · Elsevier BV · 2008 10.1016/j.jpowsour.2008.01.070
  25. Thermal management issues in a PEMFC stack – A brief review of current status Applied Thermal Engineering · Elsevier BV · 2008 10.1016/j.applthermaleng.2008.05.009
  26. Hydrogen and fuel cell technologies for heating: A review International Journal of Hydrogen Energy · Elsevier BV · 2015 10.1016/j.ijhydene.2014.11.059
  27. Dynamic modeling of a PEM fuel cell stack thermal system 2010 10.1109/icacc.2010.5486633
  28. Life cycle assessment of PEM FC applications: electric mobility and μ-CHP Energy & Environmental Science · Royal Society of Chemistry · 2015 10.1039/c5ee01082a
  29. Performance and degradation of Proton Exchange Membrane Fuel Cells: State of the art in modeling from atomistic to system scale Journal of Power Sources · Elsevier BV · 2015 10.1016/j.jpowsour.2015.11.041
  30. The Effects of Temperature on PEM Fuel Cell Kinetics and Performance Elsevier eBooks · Elsevier BV · 2013 10.1016/b978-0-444-53688-4.00004-8
  31. Energy analysis of a hybrid PEMFC–solar energy residential micro-CCHP system combined with an organic Rankine cycle and vapor compression cycle Energy Conversion and Management · Elsevier BV · 2017 10.1016/j.enconman.2017.03.057
  32. PEM fuel cell system control: A review Renewable Energy · Elsevier BV · 2017 10.1016/j.renene.2017.06.027
  33. Energy- and exergy-based working fluid selection and performance analysis of a high-temperature PEMFC-based micro combined cooling heating and power system Applied Energy · Elsevier BV · 2017 10.1016/j.apenergy.2017.07.031
  34. Micro-combined heat and power systems (micro-CHP) based on renewable energy sources Energy Conversion and Management · Elsevier BV · 2017 10.1016/j.enconman.2017.10.035
  35. Model for optimal management of the cooling system of a fuel cell-based combined heat and power system for developing optimization control strategies Applied Energy · Elsevier BV · 2017 10.1016/j.apenergy.2017.11.066
  36. A modelling study for the integration of a PEMFC micro-CHP in domestic building services design Applied Energy · Elsevier BV · 2018 10.1016/j.apenergy.2018.03.066
  37. Technical performance analysis of a micro-combined cooling, heating and power system based on solar energy and high temperature PEMFC International Journal of Hydrogen Energy · Elsevier BV · 2018 10.1016/j.ijhydene.2018.11.217
  38. Current status of fuel cell based combined heat and power systems for residential sector Journal of Power Sources · Elsevier BV · 2015 10.1016/j.jpowsour.2015.05.050
  39. Fuel Cell Technology: Reaching Towards Commercialization 2006