Go to the documentation of this file.
54 faceZoneToCell::typeName,
55 "\n Usage: faceZoneToCell zone master|slave\n\n"
56 " Select master or slave side of the faceZone."
57 " Note:accepts wildcards for zone.\n\n"
69 bool hasMatched =
false;
85 <<
" with " << cellLabels.
size() <<
" cells on selected side."
116 const word& zoneName,
135 option_(faceActionNames_.read(
dict.
lookup(
"option")))
147 zoneName_(checkIs(is)),
148 option_(faceActionNames_.read(checkIs(is)))
168 Info<<
" Adding all " << faceActionNames_[option_]
169 <<
" cells of faceZone " << zoneName_ <<
" ..." <<
endl;
175 Info<<
" Removing all " << faceActionNames_[option_]
176 <<
" cells of faceZone " << zoneName_ <<
" ..." <<
endl;
wordRe zoneName_
Name/regular expression of faceZone.
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
void combine(topoSet &set, const bool add) const
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Class with constructor to add usage string to table.
virtual ~faceZoneToCell()
Destructor.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
bool match(const std::string &, bool literalMatch=false) const
Smart match as regular expression or as a string.
Mesh consisting of general polyhedral cells.
const faceZoneMesh & faceZones() const
Return face zone mesh.
faceZoneToCell(const polyMesh &mesh, const word &zoneName, const faceAction option)
Construct from components.
A subset of mesh faces organised as a primitive patch.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
General set of labels of mesh quantity (points, cells, faces).
faceAction
Enumeration defining the valid options.
A list of keyword definitions, which are a keyword followed by any number of values (e....
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
const word & name() const
Return name.
wordList names() const
Return a list of zone names.
faceAction option_
Option.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static addToUsageTable usage_
Add usage string.
static const NamedEnum< faceAction, 2 > faceActionNames_
void size(const label)
Override size to be inconsistent with allocated storage.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
void addOrDelete(topoSet &set, const label cellI, const bool) const
Add (if bool) cellI to set or delete cellI from set.
Initialise the NamedEnum HashTable from the static list of names.