# MagneticFoam

From OpenFOAMWiki

## 1 General description

Quoting from the comment header on the solver:

Solver for the magnetic field generated by permanent magnets.

A Poisson's equation for the magnetic scalar potential psi is solved from which the magnetic field intensity H and magnetic flux density B are obtained. The paramagnetic particle force field (H dot grad(H)) is optionally available.

The source code for the solver can be found in the folder `applications/solvers/electromagnetics/magneticFoam`.

Thread at CFD-Online dedicated to understanding this solver: magneticFoam

First known working case: magneticFoam @ cfd-online - post #12

## 2 References

- Useful information about implementing a solver similar to
**magneticFoam**: OpenFOAM Simulation for Electromagnetic Problems