41 multiSolidBodyMotionSolver,
58 zoneIDs_.setSize(coeffDict().size());
59 SBMFs_.setSize(coeffDict().size());
60 pointIDs_.setSize(coeffDict().size());
69 if (zoneIDs_[zonei] == -1)
74 ) <<
"Cannot find cellZone named " << iter().keyword()
102 movePts[pointi] =
true;
118 pointIDs_[zonei].transfer(ptIDs);
120 Info<<
"Applying solid body motion " << SBMFs_[zonei].type()
121 <<
" to " << pointIDs_[zonei].size() <<
" points of cellZone " 122 << iter().keyword() <<
endl;
127 zoneIDs_.setSize(zonei);
128 SBMFs_.setSize(zonei);
129 pointIDs_.setSize(zonei);
148 const labelList& zonePoints = pointIDs_[i];
152 SBMFs_[i].transformation(),
157 return ttransformedPts;
label findZoneID(const word &zoneName) const
Find zone index given a name.
#define forAll(list, i)
Loop across all elements in list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A face is a list of labels corresponding to mesh vertices.
const meshCellZones & cellZones() const
Return cell zones.
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.
T & ref() const
Return non-const reference or generate a fatal error.
multiSolidBodyMotionSolver(const word &name, const polyMesh &, const dictionary &)
Construct from mesh and dictionary.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const cellList & cells() const
label k
Boltzmann constant.
const dimensionedScalar c
Speed of light in a vacuum.
Macros for easy insertion into run-time selection tables.
wordList names() const
Return a list of zone names.
vectorField pointField
pointField is a vectorField.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
A class for handling words, derived from string.
static autoPtr< solidBodyMotionFunction > New(const dictionary &SBMFCoeffs, const Time &runTime)
Select constructed from the SBMFCoeffs dictionary and Time.
virtual const faceList & faces() const
Return raw faces.
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const Time & time() const
Return time.
defineTypeNameAndDebug(combustionModel, 0)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
A cell is defined as a list of faces with extra functionality.
Virtual base class for displacement motion solvers.
A List with indirect addressing.
void transformPoints(vectorField &, const spatialTransform &, const vectorField &)
Transform given vectorField of coordinates with the given spatialTransform.
void set(entry *)
Assign a new entry, overwrite any existing entry.
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
~multiSolidBodyMotionSolver()
Destructor.