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 "
const dimensionedScalar mu0
Magnetic constant/permeability of free space: default SI units: [H/m].
constexpr char nl
The newline '\n' character (0x0a)
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Ostream & endl(Ostream &os)
Add newline and flush stream.
GeometricField< vector, fvPatchField, volMesh > volVectorField
surfaceScalarField murf(IOobject("murf", runTime.timeName(), mesh), mesh, dimensionedScalar("one", dimless, 1.0))
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))
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
surfaceScalarField Mrf(IOobject("Mrf", runTime.timeName(), mesh), mesh, dimensionedScalar(dimensionSet(0, 1, 0, 0, 0, 1, 0), Zero))
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const dictionary & simple
messageStream Info
Information stream (stdout output on master, null elsewhere)
const volScalarField & psi
virtual bool write(const bool valid=true) const
Write using setting from DB.
Foam::argList args(argc, argv)
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
bool found(const word &optName) const
Return true if the named option is found.
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)