OpenFOAM is an open source CFD library supporting single and multiphase-simulation of laminar and turbulent flows. Moreover, modelling of electric field and current as well as magnetic fields and electrochemistry is easily possible.
OpenFOAM is used intensively at HZDR for the simulation of liquid metal batteries. HZDR supports actively the development of OpenFOAM by integrating developed models into the official OpenFOAM software.
Computing mass or heat fluxes or electric current densities, the velocity, temperature or electric potential needs to be interpolated between cell centres and cell faces. In order to achieve exact results, the interpolation scheme needs to account for the diffusivities, thermal or electric conductivities.
Available from: OpenFOAM-v1912
- Weber, N.; Beckstein, P.; Galindo, V.; Starace, M.; Weier, T.
Electro-vortex flow simulation using coupled meshes
Computers and Fluids 168(2018) 101-109
Function Object "Capillary Courant Number"
Simulating multiphase flows using the volume-of-fluid method, unphysical ("spurious") velocities appear at the interfaces. These velocities can be reduced by several orders of magnitude by defining the time step of the simulation based on the capillary velocity.
- Personnettaz, P.; Beckstein, P.; Landgraf, S.; Köllner, T.; Nimtz, M.; Weber, N.; Weier, T.
Thermally driven convection in Li||Bi liquid metal batteries
Journal of Power Sources 401(2018) 362-374