patchDistMethod Class Referenceabstract

Specialisation of patchDist for wall distance calculation. More...

Inheritance diagram for patchDistMethod:
[legend]
Collaboration diagram for patchDistMethod:
[legend]

Public Member Functions

 TypeName ("patchDistMethod")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, patchDistMethod, dictionary,(const dictionary &dict, const fvMesh &mesh, const labelHashSet &patchIDs),(dict, mesh, patchIDs))
 
 patchDistMethod (const fvMesh &mesh, const labelHashSet &patchIDs)
 Construct from mesh and patch ID set. More...
 
virtual ~patchDistMethod ()
 Destructor. More...
 
const labelHashSetpatchIDs () const
 Return the patchIDs. More...
 
virtual bool movePoints ()
 Update cached geometry when the mesh moves. More...
 
virtual void updateMesh (const mapPolyMesh &)
 Update cached topology and geometry when the mesh changes. More...
 
virtual bool correct (volScalarField &y)=0
 Correct the given distance-to-patch field. More...
 
virtual bool correct (volScalarField &y, volVectorField &n)=0
 Correct the given distance-to-patch and normal-to-patch fields. More...
 
template<class Type >
Foam::wordList patchTypes (const fvMesh &mesh, const labelHashSet &patchIDs)
 

Static Public Member Functions

static autoPtr< patchDistMethodNew (const dictionary &dict, const fvMesh &mesh, const labelHashSet &patchIDs, const word &defaultPatchDistMethod=word::null)
 
template<class Type >
static wordList patchTypes (const fvMesh &mesh, const labelHashSet &patchIDs)
 Return the patch types for y and n. More...
 

Protected Member Functions

 patchDistMethod (const patchDistMethod &)=delete
 No copy construct. More...
 
void operator= (const patchDistMethod &)=delete
 No copy assignment. More...
 

Protected Attributes

const fvMeshmesh_
 Reference to the mesh. More...
 
const labelHashSet patchIDs_
 Set of patch IDs. More...
 

Detailed Description

Specialisation of patchDist for wall distance calculation.

Source files

Definition at line 59 of file patchDistMethod.H.

Constructor & Destructor Documentation

◆ patchDistMethod() [1/2]

patchDistMethod ( const patchDistMethod )
protecteddelete

No copy construct.

◆ patchDistMethod() [2/2]

patchDistMethod ( const fvMesh mesh,
const labelHashSet patchIDs 
)

Construct from mesh and patch ID set.

Definition at line 42 of file patchDistMethod.C.

◆ ~patchDistMethod()

~patchDistMethod ( )
virtual

Destructor.

Definition at line 93 of file patchDistMethod.C.

Member Function Documentation

◆ operator=()

void operator= ( const patchDistMethod )
protecteddelete

No copy assignment.

◆ TypeName()

TypeName ( "patchDistMethod"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
patchDistMethod  ,
dictionary  ,
(const dictionary &dict, const fvMesh &mesh, const labelHashSet &patchIDs ,
(dict, mesh, patchIDs  
)

◆ New()

Foam::autoPtr< Foam::patchDistMethod > New ( const dictionary dict,
const fvMesh mesh,
const labelHashSet patchIDs,
const word defaultPatchDistMethod = word::null 
)
static

Definition at line 56 of file patchDistMethod.C.

References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, Foam::Info, mesh, dictionary::readEntry(), and keyType::REGEX.

Here is the call graph for this function:

◆ patchTypes() [1/2]

static wordList patchTypes ( const fvMesh mesh,
const labelHashSet patchIDs 
)
static

Return the patch types for y and n.

These are fixedValue for the set provided otherwise zero-gradient

Referenced by patchDistMethod::patchTypes().

Here is the caller graph for this function:

◆ patchIDs()

const labelHashSet & patchIDs ( ) const
inline

Return the patchIDs.

Definition at line 143 of file patchDistMethod.H.

References patchDistMethod::patchIDs_.

Referenced by patchMeanVelocityForce::magUbarAve(), and patchDistMethod::patchTypes().

Here is the caller graph for this function:

◆ movePoints()

virtual bool movePoints ( )
inlinevirtual

Update cached geometry when the mesh moves.

Reimplemented in exact.

Definition at line 149 of file patchDistMethod.H.

◆ updateMesh()

virtual void updateMesh ( const mapPolyMesh )
inlinevirtual

Update cached topology and geometry when the mesh changes.

Reimplemented in exact.

Definition at line 155 of file patchDistMethod.H.

◆ correct() [1/2]

virtual bool correct ( volScalarField y)
pure virtual

Correct the given distance-to-patch field.

Implemented in advectionDiffusion, directionalMeshWave, meshWave, Poisson, and exact.

◆ correct() [2/2]

virtual bool correct ( volScalarField y,
volVectorField n 
)
pure virtual

Correct the given distance-to-patch and normal-to-patch fields.

Implemented in advectionDiffusion, directionalMeshWave, meshWave, Poisson, and exact.

◆ patchTypes() [2/2]

Foam::wordList patchTypes ( const fvMesh mesh,
const labelHashSet patchIDs 
)

Definition at line 34 of file patchDistMethodTemplates.C.

References fvMesh::boundary(), mesh, patchDistMethod::patchIDs(), patchDistMethod::patchTypes(), and UPtrList< T >::size().

Here is the call graph for this function:

Member Data Documentation

◆ mesh_

const fvMesh& mesh_
protected

Reference to the mesh.

Definition at line 66 of file patchDistMethod.H.

◆ patchIDs_

const labelHashSet patchIDs_
protected

Set of patch IDs.

Definition at line 69 of file patchDistMethod.H.

Referenced by patchDistMethod::patchIDs().


The documentation for this class was generated from the following files: