Go to the documentation of this file.
49 "\n Usage: cellToCell <cellSet>\n\n"
50 " Select all cells in the cellSet\n\n"
63 names_(
one{}, setName)
77 if (!
dict.readIfPresent(
"sets", names_))
80 dict.readEntry(
"set", names_.first());
92 names_(
one{},
word(checkIs(is)))
104 if (action == topoSetSource::ADD || action == topoSetSource::NEW)
108 Info<<
" Adding all elements of cellSet "
112 for (
const word& setName : names_)
114 cellSet loadedSet(mesh_, setName);
116 set.addSet(loadedSet);
119 else if (action == topoSetSource::SUBTRACT)
123 Info<<
" Removing all elements of cellSet "
127 for (
const word& setName : names_)
129 cellSet loadedSet(mesh_, setName);
131 set.subtractSet(loadedSet);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
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.
Class with constructor to add usage string to table.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
setAction
Enumeration defining the valid actions.
Mesh consisting of general polyhedral cells.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (stdout output on master, null elsewhere)
General set of labels of mesh quantity (points, cells, faces).
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
A collection of cell labels.
cellToCell(const polyMesh &mesh, const word &setName)
Construct from components.
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells.
defineTypeNameAndDebug(combustionModel, 0)