2025-06-25 09:11:08 +00:00
|
|
|
# SOEC Co-Electrolysis
|
2025-06-06 11:15:34 +00:00
|
|
|
|
2025-07-22 11:10:04 +00:00
|
|
|
This example shows a 1D isothermal SOEC (Solid oxide electrolyzer cell) model for
|
|
|
|
converting carbon dioxide and steam into syngas.
|
2025-06-06 11:15:34 +00:00
|
|
|
|
2025-07-03 13:07:43 +00:00
|
|
|
The operating parameters chosen here are not necessarily realistic. For example,
|
|
|
|
a utilization of 0.95 causes issues with the formation of solid carbon.
|
2025-06-06 07:02:52 +00:00
|
|
|
|
2025-06-04 15:53:37 +00:00
|
|
|
```python
|
|
|
|
import gaspype as gp
|
2025-06-17 20:55:04 +00:00
|
|
|
from gaspype.constants import R, F
|
2025-06-04 15:53:37 +00:00
|
|
|
import numpy as np
|
|
|
|
import matplotlib.pyplot as plt
|
|
|
|
```
|
|
|
|
|
2025-07-03 13:07:43 +00:00
|
|
|
Calculate equilibrium compositions for fuel and air sides in counter flow
|
|
|
|
along the fuel flow direction:
|
2025-06-04 15:53:37 +00:00
|
|
|
```python
|
2025-06-25 09:11:08 +00:00
|
|
|
utilization = 0.95
|
|
|
|
air_dilution = 0.2
|
|
|
|
t = 700 + 273.15 # K
|
|
|
|
p = 1e5 # Pa
|
2025-06-04 15:53:37 +00:00
|
|
|
|
|
|
|
fs = gp.fluid_system('H2, H2O, O2, CH4, CO, CO2')
|
2025-06-25 09:11:08 +00:00
|
|
|
feed_fuel = gp.fluid({'H2O': 2, 'CO2': 1}, fs)
|
2025-06-04 15:53:37 +00:00
|
|
|
|
2025-09-03 13:53:13 +00:00
|
|
|
o2_full_conv = np.sum(gp.elements(feed_fuel).get_n(['C' ,'O']) * [-1/2, 1/2])
|
2025-06-04 15:53:37 +00:00
|
|
|
|
2025-06-25 09:11:08 +00:00
|
|
|
feed_air = gp.fluid({'O2': 1, 'N2': 4}) * o2_full_conv * utilization * air_dilution
|
2025-06-04 15:53:37 +00:00
|
|
|
|
2025-06-25 09:11:08 +00:00
|
|
|
conversion = np.linspace(0, utilization, 128)
|
2025-06-04 15:53:37 +00:00
|
|
|
perm_oxygen = o2_full_conv * conversion * gp.fluid({'O2': 1})
|
|
|
|
|
2025-06-25 09:11:08 +00:00
|
|
|
fuel_side = gp.equilibrium(feed_fuel - perm_oxygen, t, p)
|
|
|
|
air_side = gp.equilibrium(feed_air + perm_oxygen, t, p)
|
2025-06-04 15:53:37 +00:00
|
|
|
```
|
|
|
|
|
2025-06-06 11:15:34 +00:00
|
|
|
Plot compositions of the fuel and air side:
|
2025-06-04 15:53:37 +00:00
|
|
|
```python
|
|
|
|
fig, ax = plt.subplots()
|
|
|
|
ax.set_xlabel("Conversion")
|
|
|
|
ax.set_ylabel("Molar fraction")
|
|
|
|
ax.plot(conversion, fuel_side.get_x(), '-')
|
|
|
|
ax.legend(fuel_side.species)
|
|
|
|
|
|
|
|
fig, ax = plt.subplots()
|
|
|
|
ax.set_xlabel("Conversion")
|
|
|
|
ax.set_ylabel("Molar fraction")
|
|
|
|
ax.plot(conversion, air_side.get_x(), '-')
|
|
|
|
ax.legend(air_side.species)
|
|
|
|
```
|
|
|
|
|
2025-06-06 11:15:34 +00:00
|
|
|
Calculation of the oxygen partial pressures:
|
2025-06-04 15:53:37 +00:00
|
|
|
```python
|
|
|
|
o2_fuel_side = gp.oxygen_partial_pressure(fuel_side, t, p)
|
|
|
|
o2_air_side = air_side.get_x('O2') * p
|
|
|
|
```
|
|
|
|
|
2025-06-06 11:15:34 +00:00
|
|
|
Plot oxygen partial pressures:
|
2025-06-04 15:53:37 +00:00
|
|
|
```python
|
|
|
|
fig, ax = plt.subplots()
|
|
|
|
ax.set_xlabel("Conversion")
|
|
|
|
ax.set_ylabel("Oxygen partial pressure / Pa")
|
|
|
|
ax.set_yscale('log')
|
|
|
|
ax.plot(conversion, np.stack([o2_fuel_side, o2_air_side], axis=1), '-')
|
|
|
|
ax.legend(['o2_fuel_side', 'o2_air_side'])
|
|
|
|
```
|
|
|
|
|
2025-07-03 13:07:43 +00:00
|
|
|
The high oxygen partial pressure at the inlet is in reality lower.
|
|
|
|
The assumption that gas inter-diffusion in the flow direction is slower
|
2025-07-03 13:57:09 +00:00
|
|
|
than the gas velocity does not hold at this very high gradient. However
|
2025-07-03 13:07:43 +00:00
|
|
|
often the oxygen partial pressure is still to high to prevent oxidation of the
|
|
|
|
cell/electrode. This can be effectively prevented by recycling small amounts of
|
2025-07-22 11:10:04 +00:00
|
|
|
the hydrogen riche output gas.
|
2025-07-03 13:07:43 +00:00
|
|
|
|
2025-06-06 11:15:34 +00:00
|
|
|
Calculation of the local nernst potential between fuel and air side:
|
2025-06-04 15:53:37 +00:00
|
|
|
```python
|
|
|
|
z_O2 = 4
|
|
|
|
nernst_voltage = R*t / (z_O2*F) * np.log(o2_air_side/o2_fuel_side)
|
|
|
|
```
|
|
|
|
|
2025-06-25 09:11:08 +00:00
|
|
|
Plot nernst potential:
|
2025-06-04 15:53:37 +00:00
|
|
|
```python
|
|
|
|
fig, ax = plt.subplots()
|
|
|
|
ax.set_xlabel("Conversion")
|
|
|
|
ax.set_ylabel("Voltage / V")
|
|
|
|
ax.plot(conversion, nernst_voltage, '-')
|
|
|
|
print(np.min(nernst_voltage))
|
|
|
|
```
|
|
|
|
|
2025-06-06 11:15:34 +00:00
|
|
|
The model uses between each node a constant conversion. Because
|
|
|
|
current density depends strongly on the position along the cell
|
|
|
|
the constant conversion does not relate to a constant distance.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
To calculate the local current density (**node_current**) as well
|
|
|
|
as the total cell current (**terminal_current**) the (relative)
|
|
|
|
physical distance between the nodes (**dz**) must be calculated:
|
2025-06-04 15:53:37 +00:00
|
|
|
```python
|
2025-06-25 09:11:08 +00:00
|
|
|
cell_voltage = 1.3 # V
|
|
|
|
ASR = 0.2 # Ohm*cm²
|
2025-06-04 15:53:37 +00:00
|
|
|
|
2025-07-03 13:07:43 +00:00
|
|
|
node_current = (nernst_voltage - cell_voltage) / ASR # A/cm² (Current density at each node)
|
2025-06-04 15:53:37 +00:00
|
|
|
|
2025-07-03 13:07:43 +00:00
|
|
|
current = (node_current[1:] + node_current[:-1]) / 2 # A/cm² (Average current density between the nodes)
|
2025-06-04 15:53:37 +00:00
|
|
|
|
2025-06-06 11:15:34 +00:00
|
|
|
dz = 1/current / np.sum(1/current) # Relative distance between each node
|
2025-06-04 15:53:37 +00:00
|
|
|
|
2025-07-03 13:07:43 +00:00
|
|
|
terminal_current = np.sum(current * dz) # A/cm² (Total cell current per cell area)
|
2025-06-04 15:53:37 +00:00
|
|
|
|
|
|
|
print(f'Terminal current: {terminal_current:.2f} A/cm²')
|
|
|
|
```
|
|
|
|
|
2025-06-06 11:15:34 +00:00
|
|
|
Plot the local current density:
|
2025-06-04 15:53:37 +00:00
|
|
|
```python
|
2025-06-06 11:15:34 +00:00
|
|
|
z_position = np.concatenate([[0], np.cumsum(dz)]) # Relative position of each node
|
2025-06-04 15:53:37 +00:00
|
|
|
|
|
|
|
fig, ax = plt.subplots()
|
|
|
|
ax.set_xlabel("Relative cell position")
|
|
|
|
ax.set_ylabel("Current density / A/cm²")
|
|
|
|
ax.plot(z_position, node_current, '-')
|
|
|
|
```
|
|
|
|
|