Model Description and References
This model describes the dynamic behaviour of a proton exchange membrane electrolyser (PEMEL). The model includes components describing the electrical, fluidic, and thermal properties of the cell.Electric model
The basic electrical performance is modelled after a basic Thévenin circuit, with a constant voltage generator and a simple resistor. This may be sufficient for analyses focusing on mass balances, where voltage behaviour is not important. In the basic version, activation and mass_transport voltage losses are modelled with short circuits (i.e. no losses at all).
More complex behaviour can be simulated by replacing the voltage_source, ohmic, activation and mass_transport components with more detailed objects, with the restriction they must inherit from OnePort. While there is no way to enforce this strictly, it would be appropriate to follow the naming convention and e.g. use activation to implement Butler-Volmer kinetics, mass_transport to implement Warburg elements, and so on. More complex setups can be nested defining new classes inheriting from OnePort.
Other relevant behaviours can be simulated by adding elements in parallel to the circuit. In particular, it is possible to:
- Add a capacitor in parallel to activation, to simulate a charge double layer;
- Add a current generator or a resistance between pin_p and pin_n, to simulate crossover current.
Mass balances
The mass balances in anode and cathode are implemented by two Manifolds. Both are fed the reaction rate given by the circuit current, multiplied by the number of cells and divided by nF.
Each Manifold is configured with the appropriate stoichiometric coefficients nu and molar masses M, consistently with their medium.
The default mediums are wet hydrogen on the cathode and 3-component moist air on the anode (oxygen, nitrogen, water). These can be replaced in child classes, in which cases the Manifolds may require adaptation.
The model can work with flow inversion, but it is recommended to switch it off in the outer system definition as it may mask underlying modelling issues.
Thermal balance
The heat balance is calculated automatically by the Manifolds based on the enthalpies of entering and exiting flows. The heat balance is also fed a contribution equal to the stack's power input, from which the enthalpy balance is subtracted to obtain the rate of heat accumulation; a heat capacitor simulates heat holdup.
As PEM electrolysers usually exploit the large water flow in the anode as coolant, this class does not implement a separate coolant circuit; if required, it can be implemented either in child classes or externally, connecting a thermal conductor to the heatPort.
The heatPort may be connected to other external units such as radiating or convection heat exchange, or to a FixedTemperature if the temperature transients are not of interest.
Rainbow and black-sheep elements
The replaceable nature of circuit elements and Manifolds makes it possible to simulate more complex stacks. In the default implementation, only one cell is modelled, with the stack voltage being obtained by simply multiplying its voltage by Ncells; similarly, the manifolds are assumed to have uniform, zero-dimensional compositions.
Rainbow stacks, i.e. stacks with cells with different properties simulated in parallel, can be implemented by replacing the elements of the model with custom submodels that implement Ncells elements within themselves, presumably with different parameters. E.g. a ohmic could be replaced by an element containing Ncells resistors of different value.
Note that rainbow stacks do not need to be implemented for every aspect at the same time: for example, we may replace activation with an array of Butler-Volmer elements, but leave v_source as a single generator, depending on the purpose of the simulation.
The arrays of new elements could also require connection with the manifolds, e.g. if an advanced Nernst element were to need the composition at anode and cathode; proper connections will have to be devised in that case.
Black-sheep simulations are similar to rainbow simulations, but only one cell is simulated on its own, whereas the other Ncells-1 cells are aggregated. This is useful if we want to simulate the effect of one defective cell without increasing excessively the number of equations.
Limitations
The presence of a lumped heatCapacitor and of a central subtraction of electricPower from the heat balance makes it difficult to implement a rainbow stack with different temperatures for each cell. Such a setup could be be realised setting Ncells=1 and instantiating one PEMElectrolyser object per cell, connecting them electrically in series, in parallel for cathodes and anodes, and thermally in series with interlaced thermal conductors.
Such a setup would however rapidly become computationally onerous.
Governing Equations
T_stack = heatPort.T;
Parameters
| Name | Type | Unit | Default | Description |
N_cells | Integer | 1 | 42 | Number of cells in the stack |
n_drag | Real | 1 | 4 | Electro-osmotic drag coefficient |
Interfaces and Connections
| Name | Kind | Type | Unit | Description |
port_anode_a | Connection | Modelica.Fluid.Interfaces.FluidPort_a | Pa; kg/s; J/kg | - |
port_anode_b | Connection | Modelica.Fluid.Interfaces.FluidPort_b | Pa; kg/s; J/kg | - |
port_cathode_a | Connection | Modelica.Fluid.Interfaces.FluidPort_a | Pa; kg/s; J/kg | - |
port_cathode_b | Connection | Modelica.Fluid.Interfaces.FluidPort_b | Pa; kg/s; J/kg | - |
pin_p | Connection | Modelica.Electrical.Analog.Interfaces.PositivePin | V; A | Positive electrical terminal |
pin_n | Connection | Modelica.Electrical.Analog.Interfaces.NegativePin | V; A | Negative electrical terminal |
heatPort | Connection | Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | K; W | - |