52 dict.readIfPresent(
"cellSet", cellSetName)
53 && cellSetName ==
"none" 60 if (!cellSetName.empty())
62 Info<<
"Applying motion to cellSet: " << cellSetName <<
endl;
73 dict.readIfPresent(
"cellZone", cellZoneName)
74 && cellZoneName ==
"none" 81 if (!cellZoneName.empty())
83 Info<<
"Applying motion to cellZone: " << cellZoneName <<
endl;
91 <<
"No matching cellZones: " << cellZoneName <<
nl 101 if (!cellSetName.empty() || !cellZoneName.empty())
106 for (
const label zoneID :
zoneIDs)
108 for (
const label celli :
mesh.cellZones()[zoneID])
110 for (
const label facei :
mesh.cells()[celli])
112 movePts.
set(
mesh.faces()[facei]);
118 for (
const label celli :
cellIDs)
120 for (
const label facei :
mesh.cells()[celli])
122 movePts.set(
mesh.faces()[facei]);
128 pointIDs_ = movePts.sortedToc();
138 Info<<
"Applying motion to entire mesh" <<
endl;
const labelIOList & zoneIDs
void set(const bitSet &bitset)
Set specified bits from another bitset.
zoneMotion(const dictionary &dict, const polyMesh &mesh)
Construct from dictionary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
bool empty() const noexcept
True if List is empty (ie, size() is zero)
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool returnReduceAnd(const bool value, const label comm=UPstream::worldComm)
Perform logical (and) MPI Allreduce on a copy. Uses UPstream::reduceAnd.
A class for handling words, derived from Foam::string.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings...
void clear()
Clear string and regular expression.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
A collection of cell labels.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Mesh consisting of general polyhedral cells.
List< Key > toc() const
The table of contents (the keys) in unsorted order.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...