32 Foam::MRFZoneList::MRFZoneList
63 if (warn && this->
size() && !a)
65 Info<<
" No MRF zones active" <<
endl;
92 Info<<
" creating MRF zone: " << name <<
endl;
111 allOk = (allOk && ok);
175 "MRFZoneList:acceleration",
176 U.
mesh().time().timeName(),
190 return tacceleration;
346 models.writeData(os);
T * ptr() const
Return tmp pointer for reuse.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
Mesh data needed to do the Finite Volume discretisation.
label size() const
Return the number of elements in the PtrList.
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
word name(const complex &)
Return a string representation of a complex.
const surfaceVectorField & Sf() const
Return cell face area vectors.
void correctBoundaryFlux(const volVectorField &U, surfaceScalarField &phi) const
Correct the boundary flux for the rotation of the MRF region.
tmp< surfaceScalarField > relative(const tmp< surfaceScalarField > &phi) const
Return the given absolute flux relative within the MRF region.
bool active(const bool warn=false) const
Return active status.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &phi) const
Return the given relative flux absolute within the MRF region.
void correctBoundaryVelocity(volVectorField &U) const
Correct the boundary velocity for the rotation of the MRF region.
void makeRelative(volVectorField &U) const
Make the given absolute velocity relative within the MRF region.
bool read(const dictionary &dict)
Read MRF dictionary.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void makeRelative(volVectorField &U) const
Make the given absolute velocity relative within the MRF region.
bool read(const dictionary &dict)
Read dictionary.
MRF zone definition based on cell zone and parameters obtained from a control dictionary constructed ...
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
~MRFZoneList()
Destructor.
const Mesh & mesh() const
Return mesh.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
void addAcceleration(const volVectorField &U, volVectorField &ddtU) const
Add the frame acceleration.
void addCoriolis(const volVectorField &U, volVectorField &ddtU) const
Add the Coriolis force contribution to the acceleration field.
const fvMesh & mesh_
Reference to the mesh database.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
void makeAbsolute(volVectorField &U) const
Make the given relative velocity absolute within the MRF region.
tmp< volVectorField > DDt(const volVectorField &U) const
Return the frame acceleration.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void makeAbsolute(volVectorField &U) const
Make the given relative velocity absolute within the MRF region.
void writeData(Ostream &os) const
Write.
bool writeData(Ostream &os) const
Write data to Ostream.
bool good() const
Return true if next operation might succeed.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
const dimensionSet & dimensions() const
Return dimensions.
bool active() const
Return const access to the MRF active flag.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const word & name() const
Return const access to the MRF region name.
void reset(const dictionary &dict)
Reset the source list.
List container for MRF zomes.
A class for managing temporary objects.
const MRFZone & operator[](const label) const
Return element const reference.
void correctBoundaryVelocity(volVectorField &U) const
Correct the boundary velocity for the rotation of the MRF region.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.