45 int main(
int argc,
char *argv[])
47 argList::addBoolOption
50 "do not write the magnetic field intensity field" 53 argList::addBoolOption
56 "do not write the magnetic flux density field" 59 argList::addBoolOption
62 "write the paramagnetic particle force field" 71 #include "createFields.H" 75 Info<<
"Calculating the magnetic field potential" <<
endl;
79 while (
simple.correctNonOrthogonal())
102 <<
"Creating field H for time " 103 << runTime.timeName() <<
endl;
111 <<
"Creating field HdotGradH for time " 112 << runTime.timeName() <<
endl;
132 <<
"Creating field B for time " 133 << runTime.timeName() <<
endl;
const dimensionedScalar mu0
Magnetic constant/permeability of free space: default SI units: [H/m].
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
surfaceScalarField murf(IOobject("murf", runTime.timeName(), mesh), mesh, 1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
GeometricField< vector, fvPatchField, volMesh > volVectorField
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
bool optionFound(const word &opt) const
Return true if the named option is found.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const dictionary & simple
surfaceScalarField Mrf(IOobject("Mrf", runTime.timeName(), mesh), mesh, dimensionedScalar("Mr", dimensionSet(0, 1, 0, 0, 0, 1, 0), 0))
virtual bool write() const
Write using setting from DB.
const volScalarField & psi
virtual Ostream & write(const token &)=0
Write next token to stream.
Foam::argList args(argc, argv)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)