Go to the documentation of this file.
38 #ifndef patchDistMethod_H
39 #define patchDistMethod_H
virtual bool correct(volScalarField &y)=0
Correct the given distance-to-patch field.
A class for handling words, derived from Foam::string.
virtual void updateMesh(const mapPolyMesh &)
Update cached topology and geometry when the mesh changes.
patchDistMethod(const patchDistMethod &)=delete
No copy construct.
virtual ~patchDistMethod()
Destructor.
static wordList patchTypes(const fvMesh &mesh, const labelHashSet &patchIDs)
Return the patch types for y and n.
virtual bool movePoints()
Update cached geometry when the mesh moves.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Specialisation of patchDist for wall distance calculation.
const fvMesh & mesh_
Reference to the mesh.
Mesh data needed to do the Finite Volume discretisation.
declareRunTimeSelectionTable(autoPtr, patchDistMethod, dictionary,(const dictionary &dict, const fvMesh &mesh, const labelHashSet &patchIDs),(dict, mesh, patchIDs))
const labelHashSet patchIDs_
Set of patch IDs.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void operator=(const patchDistMethod &)=delete
No copy assignment.
Macros to ease declaration of run-time selection tables.
static autoPtr< patchDistMethod > New(const dictionary &dict, const fvMesh &mesh, const labelHashSet &patchIDs, const word &defaultPatchDistMethod=word::null)
TypeName("patchDistMethod")
Runtime type information.
static const word null
An empty word.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelHashSet & patchIDs() const
Return the patchIDs.