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