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;
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
virtual Ostream & write(const char)=0
Write character.
const dimensionedScalar mu0
Magnetic constant/permeability of free space: default SI units: [H/m].
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))
const volScalarField & psi
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
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)