42 void Foam::patchDistanceToCell::combine(topoSet&
set,
const bool add)
const 49 mesh_.boundaryMesh().patchSet(patches_),
58 addOrDelete(
set, celli, add);
79 distance_(dict.
lookup<scalar>(
"distance"))
99 Info<<
" Adding cells a distance less than " << distance_
100 <<
" from patches " << patches_ <<
" ..." <<
endl;
106 Info<<
" Removing cells a distance less than " << distance_
107 <<
" 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...
Ostream & endl(Ostream &os)
Add newline and flush stream.
scalar distance(const vector &p1, const vector &p2)
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
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).
label calculate(const polyMesh &mesh, const labelHashSet &patchIDs, scalarField &cellDistance)
Calculate distance data from patches.
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.
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.