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.
Oleg Zikanov "Shallow water modeling of rolling pad instability in liquid metal batteries" THEORETICAL AND COMPUTATIONAL FLUID DYNAMICS, v.32, 2017, p.325-347 Linyan Xiang and Oleg Zikanov "Numerical simulation of rolling pad instability in liquid metal batteries" submitted to PHYSICS OF FLUIDS