42 solidBodyMotionSolver,
62 coeffDict().lookupOrDefault<
word>(
"cellZone",
"none");
65 coeffDict().lookupOrDefault<
word>(
"cellSet",
"none");
67 if ((cellZoneName !=
"none") && (cellSetName !=
"none"))
70 <<
"Either cellZone OR cellSet can be supplied, but not both. " 71 <<
"If neither is supplied, all cells will be included" 76 if (cellZoneName !=
"none")
78 Info<<
"Applying solid body motion to cellZone " << cellZoneName
86 <<
"Unable to find cellZone " << cellZoneName
87 <<
". Valid cellZones are:" 95 if (cellSetName !=
"none")
97 Info<<
"Applying solid body motion to cellSet " << cellSetName
106 moveAllCells_ = nCells == 0;
110 Info<<
"Applying solid body motion to entire mesh" <<
endl;
120 label celli = cellIDs[i];
128 movePts[pointi] =
true;
144 pointIDs_.transfer(ptIDs);
170 SBMFPtr_().transformation(),
174 return ttransformedPts;
solidBodyMotionSolver(const polyMesh &, const dictionary &)
Construct from mesh and dictionary.
#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.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
void size(const label)
Override size to be inconsistent with allocated storage.
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.
vectorField pointField
pointField is a vectorField.
label findZoneID(const word &zoneName) const
Find zone index given a name.
A class for handling words, derived from string.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
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.
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.
A collection of cell labels.
Virtual base class for displacement motion solvers.
A List with indirect addressing.
wordList names() const
Return a list of zone names.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
~solidBodyMotionSolver()
Destructor.
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.