42 patchDistanceToCell::typeName,
43 "\n Usage: patchDistanceToCell (<patches>) distance\n\n" 44 " Select cells that are below a distance from a list of patches\n\n" 50 void Foam::patchDistanceToCell::combine(topoSet&
set,
const bool add)
const 55 mesh_.boundaryMesh().patchSet(patches_)
58 forAll(pw.distance(), celli)
60 if (pw.distance()[celli] < distance_)
62 addOrDelete(
set, celli, add);
83 distance_(dict.
lookup<scalar>(
"distance"))
129 Info<<
" Adding cells a distance less than " << distance_
130 <<
" from patches " << patches_ <<
" ..." <<
endl;
136 Info<<
" Removing cells a distance less than " << distance_
137 <<
" from patches " << patches_ <<
" ..." <<
endl;
virtual ~patchDistanceToCell()
Destructor.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds items read from Istream.
void putBack(const token &)
Put back token.
Ostream & endl(Ostream &os)
Add newline and flush stream.
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
A class for handling words, derived from string.
setAction
Enumeration defining the valid actions.
A wordRe is a word, but can also have a regular expression for matching words.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
General set of labels of mesh quantity (points, cells, faces).
Class with constructor to add usage string to table.
Mesh consisting of general polyhedral cells.
List< wordRe > wordReList
A List of wordRe (word or regular expression)
patchDistanceToCell(const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.