15 Info<<
"Reading physicalProperties\n" <<
endl;
17 IOdictionary physicalProperties
24 IOobject::MUST_READ_IF_MODIFIED,
29 List<magnet>
magnets(physicalProperties.lookup(
"magnets"));
59 if (magnetZonei == -1)
62 <<
"Cannot find faceZone for magnet " <<
magnets[i].name()
66 const labelList& faces = mesh.faceZones()[magnetZonei];
68 const scalar muri =
magnets[i].mur();
69 const scalar Mri =
magnets[i].Mr().value();
76 label facei = faces[i];
78 Mrf[facei] = Mri*(orientationi & Sf[facei]);
const word & executable() const
Name of executable without the path.
#define FatalIOErrorIn(functionName, ios)
Report an error message using Foam::FatalIOError.
const volScalarField & psi
surfaceScalarField Mrf(IOobject("Mrf", runTime.name(), mesh), mesh, dimensionedScalar(dimensionSet(0, 1, 0, 0, 0, 1, 0), 0))
Info<< "Reading field psi\n"<< endl;volScalarField psi(IOobject("psi", runTime.name(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading physicalProperties\n"<< endl;IOdictionary physicalProperties(IOobject("physicalProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));List< magnet > magnets(physicalProperties.lookup("magnets"))
surfaceScalarField murf(IOobject("murf", runTime.name(), mesh), mesh, 1)
errorManipArg< error, int > exit(error &err, const int errNo=1)
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
SurfaceField< scalar > surfaceScalarField
Vector< scalar > vector
A scalar version of the templated Vector.
VolField< scalar > volScalarField
SurfaceField< vector > surfaceVectorField
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Foam::argList args(argc, argv)