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" 62 Foam::faceZoneToCell::faceActionNames_;
67 void Foam::faceZoneToCell::combine(
topoSet&
set,
const bool add)
const 69 bool hasMatched =
false;
71 forAll(mesh_.faceZones(), i)
75 if (zoneName_.match(zone.
name()))
84 Info<<
" Found matching zone " << zone.
name()
85 <<
" with " << cellLabels.
size() <<
" cells on selected side." 93 if (cellLabels[i] >= 0 && cellLabels[i] < mesh_.nCells())
95 addOrDelete(
set, cellLabels[i], add);
103 WarningIn(
"faceZoneToCell::combine(topoSet&, const bool)")
104 <<
"Cannot find any faceZone named " << zoneName_ <<
endl 105 <<
"Valid names are " << mesh_.faceZones().names() <<
endl;
116 const word& zoneName,
134 zoneName_(dict.
lookup(
"name")),
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;
const labelList & slaveCells() const
Return labels of slave cells.
General set of labels of mesh quantity (points, cells, faces).
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)...
const labelList & masterCells() const
Return labels of master cells (cells next to the master face.
A class for handling words, derived from string.
void size(const label)
Override size to be inconsistent with allocated storage.
A list of keyword definitions, which are a keyword followed by any number of values (e...
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define WarningIn(functionName)
Report a warning using Foam::Warning.
faceZoneToCell(const polyMesh &mesh, const word &zoneName, const faceAction option)
Construct from components.
setAction
Enumeration defining the valid actions.
Macros for easy insertion into run-time selection tables.
const word & name() const
Return name.
Initialise the NamedEnum HashTable from the static list of names.
Mesh consisting of general polyhedral cells.
faceAction
Enumeration defining the valid options.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Base class of a source for a topoSet.
Class with constructor to add usage string to table.
virtual ~faceZoneToCell()
Destructor.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)