Go to the documentation of this file.
42 dynamicMultiMotionSolverFvMesh,
48 dynamicMultiMotionSolverFvMesh,
56 Foam::dynamicMultiMotionSolverFvMesh::dynamicMultiMotionSolverFvMesh
92 zoneIDs_.
setSize(dynamicMeshCoeffs.size());
93 motionPtr_.setSize(dynamicMeshCoeffs.size());
94 pointIDs_.
setSize(dynamicMeshCoeffs.size());
100 for (
const entry& dEntry : dynamicMeshCoeffs)
110 if (zoneIDs_[zonei] == -1)
113 <<
"Cannot find cellZone named " << zoneName
137 for (
const label celli :
cellZones()[zoneIDs_[zonei]])
139 for (
const label facei :
cells()[celli])
152 Info<<
"Applying motionSolver " << motionPtr_[zonei].type()
155 <<
" points of cellZone " << zoneName <<
endl;
161 motionPtr_.setSize(zonei);
180 for (
const label pointi : pointIDs_[zonei])
182 transformedPts[pointi] = newPoints[pointi];
188 static bool hasWarned =
false;
201 <<
"Did not find volVectorField U."
202 <<
" Not updating U boundary conditions." <<
endl;
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
A keyword and a list of tokens is an 'entry'.
static autoPtr< motionSolver > New(const polyMesh &)
Select constructed from polyMesh.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
label size() const noexcept
The number of elements in table.
void reset()
Clear all bits but do not adjust the addressable size.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A class for managing temporary objects.
IOdictionary(const IOobject &)
Construct given an IOobject.
const cellList & cells() const
virtual bool init(const bool doInit)
Initialise all non-demand-driven data.
Abstract base class for geometry and/or topology changing fvMesh.
void set(const bitSet &bitset)
Set specified bits from another bitset.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
void resize(const label nElem, const unsigned int val=0u)
Reset addressable list size, does not shrink the allocated size.
#define forAll(list, i)
Loop across all elements in list.
messageStream Info
Information stream (uses stdout - output is on the master only)
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
virtual bool movePoints()
Do what is necessary if the mesh has moved.
label findZoneID(const word &zoneName) const
Find zone index by name, return -1 if not found.
wordList names() const
A list of the zone names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void correctBoundaryConditions()
Correct boundary field.
virtual const faceList & faces() const
Return raw faces.
readOption readOpt() const
The read option.
label nPoints() const
Number of mesh points.
virtual bool init(const bool doInit)
Initialise all non-demand-driven data.
const Time & time() const
Return the top-level database.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
void setSize(const label newSize)
Alias for resize(const label)
virtual bool update()
Update the mesh for both mesh motion and topology change.
constant condensation/saturation model.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
labelList sortedToc() const
The indices of the on bits as a sorted labelList.