Eventos Anais de eventos
COBEM 2023
27th International Congress of Mechanical Engineering
Development, implementation and verification of an MHD compressible solver in OpenFOAM
Submission Author:
Juan Pablo de Lima Costa Salazar , SC , Brazil
Co-Authors:
Gabriel Fernandes Marconcini Roberto, Juan Pablo de Lima Costa Salazar
Presenter: Juan Pablo de Lima Costa Salazar
doi://10.26678/ABCM.COBEM2023.COB2023-0055
Abstract
Advancements over the last decades in CFD have made the simulation of increasingly complex flows a reality. Among these are MHD flows, where the electromagnetic effects are a prominent feature of the flow field, leading to a wide range of relevant and interesting phenomena. In this work we implement a solver for compressible MHD flows within the framework of the open source CFD code OpenFOAM, named mhdCentralFoam. The MHD governing equations are discretized using the cell-centered finite volume method. The mhdCentralFoam solver uses a density-based method with semi-discrete central-upwind schemes and a hyperbolic-parabolic advection equation for treatment of the magnetic field divergence free condition. The verification of the solver was performed by comparing the hydrodynamics and MHD solutions to the results available in the literature using two test cases: Hartmann flow and the Brio-Wu shock tube. The mhdCentralFoam solver was able to capture the physical phenomena involved and produced accurate results for the solution of compressible MHD flows.
Keywords
Magnetohydrodynamics, Computational Fluid Dynamics, compressible, OpenFOAM

