69 if (zoneIndices_[zonei] == -1)
74 ) <<
"Cannot find cellZone named " << iter().keyword()
102 movePts[pointi] =
true;
118 pointIndices_[zonei].
transfer(ptIDs);
120 Info<<
"Applying solid body motion " << SBMFs_[zonei].type()
121 <<
" to " << pointIndices_[zonei].
size()
122 <<
" points of cellZone " << iter().keyword()
129 SBMFs_.setSize(zonei);
149 const labelList& zonePoints = pointIndices_[i];
153 SBMFs_[i].transformation(),
158 return ttransformedPts;
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
wordList toc() const
Return the table of contents.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
void size(const label)
Override size to be inconsistent with allocated storage.
void setSize(const label)
Reset size of List.
label findIndex(const word &key) const
Return the index of the given the key or -1 if not found.
A List with indirect addressing.
A cell is defined as a list of faces with extra functionality.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A face is a list of labels corresponding to mesh vertices.
Virtual base class for mesh motion solver.
const word & keyword() const
Return keyword.
const dictionary & coeffDict() const
Const access to the coefficients dictionary.
const polyMesh & mesh() const
Return reference to mesh.
Solid-body motion of the mesh specified by a run-time selectable motion function.
~multiSolidBodyMotionSolver()
Destructor.
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
multiSolidBodyMotionSolver(const word &name, const polyMesh &, const dictionary &)
Construct from mesh and dictionary.
const Time & time() const
Return time.
Virtual base class for displacement motion solvers.
Mesh consisting of general polyhedral cells.
const cellZoneList & cellZones() const
Return cell zones.
virtual const faceList & faces() const
Return raw faces.
const cellList & cells() const
static autoPtr< solidBodyMotionFunction > New(const dictionary &SBMFCoeffs, const Time &runTime)
Select constructed from the SBMFCoeffs dictionary and Time.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
const dimensionedScalar c
Speed of light in a vacuum.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void transformPoints(vectorField &, const spatialTransform &, const vectorField &)
Transform given vectorField of coordinates with the given spatialTransform.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
vectorField pointField
pointField is a vectorField.
defineTypeNameAndDebug(combustionModel, 0)