This code is for the topology optimization of full-cell batteries and supercapacitor porous electrodes. It was used to produce the results in Li et al., 2024. Please see the paper for more details.
For half-cell optimization, please refer to TOPE and Roy et al. 2022.
LLNL Release Number: LLNL-CODE-2003445
Please install the open-source finite element library Firedrake, and the MMA optimization package pyMMAopt. For automation of bash jobs, we use signac-flow (0.12.0).