Go to the documentation of this file.
50 int main(
int argc,
char *argv[])
54 "Solver for the magnetic field generated by permanent magnets."
57 argList::addBoolOption
60 "Do not write the magnetic field intensity field"
63 argList::addBoolOption
66 "Do not write the magnetic flux density field"
69 argList::addBoolOption
72 "Write the paramagnetic particle force field"
82 #include "createFields.H"
86 Info<<
"Calculating the magnetic field potential" <<
endl;
90 while (
simple.correctNonOrthogonal())
113 <<
"Creating field H for time "
122 <<
"Creating field HdotGradH for time "
143 <<
"Creating field B for time "
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
const dictionary & simple
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
volScalarField H(IOobject("H", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedScalar(dimLength, Zero))
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Ostream & endl(Ostream &os)
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
surfaceScalarField murf(IOobject("murf", runTime.timeName(), mesh), mesh, dimensionedScalar("one", dimless, 1.0))
surfaceScalarField Mrf(IOobject("Mrf", runTime.timeName(), mesh), mesh, dimensionedScalar(dimensionSet(0, 1, 0, 0, 0, 1, 0), Zero))
GeometricField< vector, fvPatchField, volMesh > volVectorField
const dimensionedScalar mu0
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
const volScalarField & psi
Foam::argList args(argc, argv)
bool found(const word &optName) const