Go to the documentation of this file.
37 Foam::zoneMotion::zoneMotion
47 dict.getOrDefault<
word>(
"cellZone",
"none");
50 dict.getOrDefault<
word>(
"cellSet",
"none");
52 if ((cellZoneName !=
"none") && (cellSetName !=
"none"))
55 <<
"Either cellZone OR cellSet can be supplied, but not both. "
56 <<
"If neither is supplied, all cells will be included"
61 if (cellZoneName !=
"none")
63 Info<<
"Applying solid body motion to cellZone " << cellZoneName
66 label
zoneID =
mesh.cellZones().findZoneID(cellZoneName);
71 <<
"Unable to find cellZone " << cellZoneName
72 <<
". Valid cellZones are:"
73 <<
mesh.cellZones().names()
80 if (cellSetName !=
"none")
82 Info<<
"Applying solid body motion to cellSet " << cellSetName
91 moveAllCells_ = (nCells == 0);
95 Info<<
"Applying solid body motion to entire mesh" <<
endl;
103 label celli = cellIDs[i];
111 movePts[pointi] =
true;
127 pointIDs_.transfer(ptIDs);
142 return moveAllCells_;
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
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)
const labelList & pointIDs() const
Return pointsID.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const labelIOList & zoneID
A collection of cell labels.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label k
Boltzmann constant.
const dimensionedScalar c
Speed of light in a vacuum.
A face is a list of labels corresponding to mesh vertices.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool moveAllCells() const
Return flag.
A cell is defined as a list of faces with extra functionality.