111 #ifndef Foam_patchDistanceToCell_H 112 #define Foam_patchDistanceToCell_H 126 class patchDistanceToCell
128 public topoSetCellSource
133 static addToUsageTable usage_;
136 wordRes selectedPatches_;
147 void combine(topoSet&
set,
const bool add)
const;
160 const polyMesh&
mesh,
161 const wordRe& patchName,
163 const scalar minDistance = 0
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
TypeName("patchDistanceToCell")
Runtime type information.
scalar distance(const vector &p1, const vector &p2)
const polyMesh & mesh() const noexcept
Reference to the mesh.
setAction
Enumeration defining various actions.
patchDistanceToCell(const polyMesh &mesh, const wordRe &patchName, const scalar distance, const scalar minDistance=0)
Construct from components (single patch, distance range)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
General set of labels of mesh quantity (points, cells, faces).
virtual ~patchDistanceToCell()=default
Destructor.