15 Info<<
"Reading transportProperties\n" <<
endl;
17 IOdictionary transportProperties
21 "transportProperties",
24 IOobject::MUST_READ_IF_MODIFIED,
29 List<magnet>
magnets(transportProperties.lookup(
"magnets"));
59 if (magnetZonei == -1)
62 <<
"Cannot find faceZone for magnet " <<
magnets[i].
name()
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
surfaceScalarField murf(IOobject("murf", runTime.timeName(), mesh), mesh, 1)
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
Ostream & endl(Ostream &os)
Add newline and flush stream.
Vector< scalar > vector
A scalar version of the templated Vector.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
surfaceScalarField Mrf(IOobject("Mrf", runTime.timeName(), mesh), mesh, dimensionedScalar(dimensionSet(0, 1, 0, 0, 0, 1, 0), 0))
List< label > labelList
A List of labels.
#define FatalIOErrorIn(functionName, ios)
Report an error message using Foam::FatalIOError.
word name(const complex &)
Return a string representation of a complex.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Foam::argList args(argc, argv)
Info<< "Reading field psi\"<< endl;volScalarField psi(IOobject("psi", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading transportProperties\"<< endl;IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));List< magnet > magnets(transportProperties.lookup("magnets"))
const volScalarField & psi