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.
const surfaceVectorField & Sf() const
Return cell face area vectors.
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.
void clear() const
If object pointer points to valid object:
void addAcceleration(const volVectorField &U, volVectorField &ddtU) const
Add the frame acceleration.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const Boundary & boundaryField() const
Return const-reference to the boundary field.
MRF zone definition based on cell zone and parameters obtained from a control dictionary constructed ...
T & ref() const
Return non-const reference or generate a fatal error.
const T & operator[](const label) const
Return element const reference.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool good() const
Return true if next operation might succeed.
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)
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
const dimensionSet & dimensions() const
Return dimensions.
bool active(const bool warn=false) const
Return active status.
void correctBoundaryVelocity(volVectorField &U) const
Correct the boundary velocity for the rotation of the MRF region.
A class for handling words, derived from string.
const word & name() const
Return const access to the MRF region name.
void correctBoundaryFlux(const volVectorField &U, surfaceScalarField &phi) const
Correct the boundary flux for the rotation of the MRF region.
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.
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &phi) const
Return the given relative flux absolute within the MRF region.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
tmp< volVectorField > DDt(const volVectorField &U) const
Return the frame acceleration.
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...
bool writeData(Ostream &os) const
Write data to Ostream.
List container for MRF zomes.
const Mesh & mesh() const
Return mesh.
word name(const complex &)
Return a string representation of a complex.
Internal & ref()
Return a reference to the dimensioned internal field.
tmp< surfaceScalarField > relative(const tmp< surfaceScalarField > &phi) const
Return the given absolute flux relative within the MRF region.
label size() const
Return the number of elements in the UPtrList.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
Mesh data needed to do the Finite Volume discretisation.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
A class for managing temporary objects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void makeRelative(volVectorField &U) const
Make the given absolute velocity relative within the MRF region.
bool read(const dictionary &dict)
Read dictionary.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.