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.
void resize(const label numElem, const unsigned int val=0u)
Reset addressable list size, does not shrink the allocated 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.
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
label nPoints() const noexcept
Number of mesh points.
#define forAll(list, i)
Loop across all elements in list.
messageStream Info
Information stream (stdout output on master, null elsewhere)
const cellZoneMesh & cellZones() const noexcept
Return cell zone mesh.
void setSize(const label n)
Alias for resize()
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
IOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
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)
readOption readOpt() const noexcept
The read option.
void correctBoundaryConditions()
Correct boundary field.
virtual const faceList & faces() const
Return raw faces.
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.
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.