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;
234 "relative(" + tphi().
name() +
')',
349 "absolute(" + tphi().
name() +
')',
408 isA<fixedValueFvsPatchScalarField>(phibf[patchi])
425 models.writeData(os);
~MRFZoneList()
Destructor.
bool read(const dictionary &dict)
Read MRF dictionary.
void makeAbsolute(volVectorField &U) const
Make the given relative velocity absolute within the MRF region.
#define forAll(list, i)
Loop across all elements in list.
void reset(const dictionary &dict)
Reset the source list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const surfaceVectorField & Sf() const
Return cell face area vectors.
A list of keyword definitions, which are a keyword followed by any number of values (e...
MRF zone definition based on cell zone and parameters obtained from a control dictionary constructed ...
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
const word & name() const
Return const access to the MRF region name.
bool good() const
Return true if next operation might succeed.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< surfaceScalarField > relative(const tmp< surfaceScalarField > &phi) const
Return the given absolute flux relative within the MRF region.
void correctBoundaryVelocity(volVectorField &U) const
Correct the boundary velocity for the rotation of the MRF region.
const fvMesh & mesh_
Reference to the mesh database.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
void correctBoundaryFlux(const volVectorField &U, surfaceScalarField &phi) const
Correct the boundary flux for the rotation of the MRF region.
void clear() const
If object pointer points to valid object:
const Boundary & boundaryField() const
Return const-reference to the boundary field.
A class for handling words, derived from string.
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.
bool active(const bool warn=false) const
Return active status.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
const dimensionSet & dimensions() const
Return dimensions.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
List container for MRF zomes.
word name(const complex &)
Return a string representation of a complex.
Internal & ref()
Return a reference to the dimensioned internal field.
tmp< volVectorField > DDt(const volVectorField &U) const
Return the frame acceleration.
const T & operator[](const label) const
Return element const reference.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
const Mesh & mesh() const
Return mesh.
Mesh data needed to do the Finite Volume discretisation.
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &phi) const
Return the given relative flux absolute within the MRF region.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
void makeRelative(volVectorField &U) const
Make the given absolute velocity relative within the MRF region.
bool read(const dictionary &dict)
Read dictionary.
void addAcceleration(const volVectorField &U, volVectorField &ddtU) const
Add the frame acceleration.
bool writeData(Ostream &os) const
Write data to Ostream.
label size() const
Return the number of elements in the UPtrList.