41 multiSolidBodyMotionSolver,
57 zoneIDs_.setSize(coeffDict().size());
58 SBMFs_.setSize(coeffDict().size());
59 pointIDs_.setSize(coeffDict().size());
68 if (zoneIDs_[zonei] == -1)
73 ) <<
"Cannot find cellZone named " << iter().keyword()
101 movePts[pointi] =
true;
117 pointIDs_[zonei].transfer(ptIDs);
119 Info<<
"Applying solid body motion " << SBMFs_[zonei].type()
120 <<
" to " << pointIDs_[zonei].size() <<
" points of cellZone " 121 << iter().keyword() <<
endl;
126 zoneIDs_.setSize(zonei);
127 SBMFs_.setSize(zonei);
128 pointIDs_.setSize(zonei);
147 const labelList& zonePoints = pointIDs_[i];
151 SBMFs_[i].transformation(),
156 return ttransformedPts;
label findZoneID(const word &zoneName) const
Find zone index given a name.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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...
void transformPoints(vectorField &, const septernion &, const vectorField &)
Transform given vectorField of coordinates with the given septernion.
T & ref() const
Return non-const reference or generate a fatal error.
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.
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.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
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 set(entry *)
Assign a new entry, overwrite any existing entry.
multiSolidBodyMotionSolver(const polyMesh &, const dictionary &)
Construct from mesh and dictionary.
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
~multiSolidBodyMotionSolver()
Destructor.