Solver for the magnetic field generated by permanent magnets. More...
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
Solver for the magnetic field generated by permanent magnets.
Original source file magneticFoam.C
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.
Definition in file magneticFoam.C.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 49 of file magneticFoam.C.
References argList::addBoolOption(), args, B, nonOrthogonalSolutionControl::correctNonOrthogonal(), Foam::fvc::div(), Foam::endl(), Foam::fvc::grad(), Foam::Info, Foam::fvm::laplacian(), Mrf(), Foam::constant::electromagnetic::mu0, murf(), Foam::nl, argList::optionFound(), psi, Foam::fvc::reconstruct(), simple(), Foam::fvc::snGrad(), Foam::solve(), and regIOobject::write().