The Liquid Metal Battery (LMB), a promising energy-storage device that contains liquid-metal interior, is studied numerically in the paper. The metal pad roll instability was modeled based on the open-source CFD software, OpenFOAM. It's based on the solver for simulations of incompressible multiphase flows multiphaseInterFoam modified to include the electromagnetic fields and account for the sharp variations of the electrical conductivity.
Linyan Xiang (相林言) and Oleg Zikanov, “Numerical simulation of rolling pad instability in cuboid liquid metal batteries,” Physics of Fluids, vol. 31, no. 12, p. 124104, 2019, https://doi.org/10.1063/1.5123170 and Oleg Zikanov, "Shallow water modeling of rolling pad instability in liquid metal batteries." Theoretical and Computational Fluid Dynamics, 32, 325–347, 2018, https://doi.org/10.1007/s00162-018-0456-2