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 " 111 <<
"Creating field HdotGradH for time " 132 <<
"Creating field B for time "
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.
bool optionFound(const word &opt) const
Return true if the named option is found.
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...
surfaceScalarField Mrf(IOobject("Mrf", runTime.timeName(), mesh), mesh, dimensionedScalar(dimensionSet(0, 1, 0, 0, 0, 1, 0), 0))
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const volScalarField & psi
virtual Ostream & write(const token &)=0
Write next token to stream.
virtual bool write(const bool write=true) const
Write using setting from DB.
Foam::argList args(argc, argv)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
simpleControl simple(mesh)