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