Go to the documentation of this file.
15 Info<<
"Reading transportProperties\n" <<
endl;
21 "transportProperties",
24 IOobject::MUST_READ_IF_MODIFIED,
54 Mrf.setOriented(
true);
60 if (magnetZonei == -1)
63 <<
"Cannot find faceZone for magnet " <<
magnets[i].name()
69 const scalar muri =
magnets[i].mur();
70 const scalar Mri =
magnets[i].Mr().value();
75 for (
const label facei : faces)
78 Mrf[facei] = Mri*(orientationi & Sf[facei]);
List< label > labelList
A List of labels.
forAll(U.boundaryField(), patchi)
static constexpr const zero Zero
IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Ostream & endl(Ostream &os)
Info<< "Reading field psi\n"<< endl;volScalarField psi(IOobject("psi", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading transportProperties\n"<< endl;IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));List< magnet > magnets(transportProperties.lookup("magnets"))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
surfaceScalarField murf(IOobject("murf", runTime.timeName(), mesh), mesh, dimensionedScalar("one", dimless, 1.0))
Vector< scalar > vector
A scalar version of the templated Vector.
surfaceScalarField Mrf(IOobject("Mrf", runTime.timeName(), mesh), mesh, dimensionedScalar(dimensionSet(0, 1, 0, 0, 0, 1, 0), Zero))
errorManipArg< error, int > exit(error &err, const int errNo=1)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
word name(const expressions::valueTypeCode typeCode)
#define FatalIOErrorInFunction(ios)
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
const volScalarField & psi
const dimensionSet dimless