73 Info<<
" creating MRF zone: " << name <<
endl;
92 allOk = (allOk && ok);
187 "MRFZoneList:centrifugalAcceleration",
196 operator[](i).addCentrifugalAcceleration(centrifugalAcceleration);
199 return tcentrifugalAcceleration;
234 "relative(" + tphi().
name() +
')',
349 "absolute(" + tphi().
name() +
')',
410 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 update()
Update MRFZone faces if the mesh topology changes.
void reset(const dictionary &dict)
Reset the source list.
void clear() const
If object pointer points to valid object:
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
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.
static tmp< GeometricField< vector, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< vector >> &)
Return a temporary field constructed from name,.
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.
label count(const ListType &l, typename ListType::const_reference x)
Count the number of occurrences of a value in a list.
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.
void addCoriolis(const volVectorField &U, volVectorField &ddtU) const
Add the Coriolis acceleration.
const dimensionSet dimTime
const dimensionSet & dimensions() const
Return dimensions.
void correctBoundaryVelocity(volVectorField &U) const
Correct the boundary velocity for the rotation of the MRF region.
tmp< volVectorField > centrifugalAcceleration() const
Return the centrifugal acceleration.
const dimensionSet dimAcceleration
A class for handling words, derived from string.
const word & name() const
Return const access to the MRF region name.
bool topoChanged() const
Is mesh topology changing.
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.
tmp< volVectorField > DDt(const volVectorField &U) const
Return the Coriolis 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.
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.
Mesh data needed to do the Finite Volume discretisation.
MRFZoneList(const fvMesh &mesh, const dictionary &dict)
A class for managing temporary objects.
void makeRelative(volVectorField &U) const
Make the given absolute velocity relative within the MRF region.
bool read(const dictionary &dict)
Read dictionary.