42 void Foam::patchDistanceToCell::combine(topoSet& set,
const bool add)
const
56 if (distance[celli] < distance_)
69 const dictionary&
dict
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;
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
patchDistanceToCell(const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual ~patchDistanceToCell()
Destructor.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool usePatchGroups=true) const
Return the patch set corresponding to the given names.
const polyBoundaryMesh & boundary() const
Return boundary mesh.
void addOrDelete(topoSet &set, const label celli, const bool) const
Add (if bool) celli to set or delete celli from set.
setAction
Enumeration defining the valid actions.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
label calculate(const polyMesh &mesh, const labelHashSet &patchIDs, scalarField &cellDistance)
Calculate distance data from patches.
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
void add(GeometricField< typename typeOfSum< Type1, Type2 >::type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type1, GeoMesh, PrimitiveField2 > &gf1, const GeometricField< Type2, GeoMesh, PrimitiveField3 > &gf2)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet & dimLength
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
List< wordRe > wordReList
A List of wordRe (word or regular expression)
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)