49 "\n Usage: cellToCell <cellSet>\n\n"
50 " Select all cells in the cellSet\n\n"
104 Info<<
" Adding all elements of cell "
105 << (isZone_ ?
"zones: " :
"sets: ")
109 for (
const word& setName : names_)
118 set.addSet(loadedSet);
126 Info<<
" Removing all elements of cell "
127 << (isZone_ ?
"zones: " :
"sets: ")
131 for (
const word& setName : names_)
135 set.subtractSet(
mesh_.cellZones()[setName]);
140 set.subtractSet(loadedSet);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
@ NO_REGISTER
Do not request registration (bool: false).
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A collection of cell labels.
A topoSetCellSource to select all the cells from given cellSet(s) or cellZone(s).
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
cellToCell(const polyMesh &mesh, const word &setName)
Construct from components.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
Mesh consisting of general polyhedral cells.
const cellZoneMesh & cellZones() const noexcept
Return cell zone mesh.
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells.
topoSetCellSource(const polyMesh &mesh)
Construct from mesh.
Class with constructor to add usage string to table.
Base class of a source for a topoSet.
static bool readNames(const dictionary &dict, wordList &names)
Helper: extract wordList of patches/zones from dictionary. Returns.
setAction
Enumeration defining various actions.
@ SUBTRACT
Subtract elements from current set.
@ ADD
Add elements to current set.
@ NEW
Create a new set and ADD elements to it.
bool verbose_
Output verbosity (default: true).
const polyMesh & mesh() const noexcept
Reference to the mesh.
const polyMesh & mesh_
Reference to the mesh.
static Istream & checkIs(Istream &is)
Check state of stream.
General set of labels of mesh quantity (points, cells, faces).
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
void set(List< bool > &bools, const labelUList &locations)
Set the listed locations (assign 'true').
messageStream Info
Information stream (stdout output on master, null elsewhere).
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
constexpr char nl
The newline '\n' character (0x0a).