exact Class Reference

Calculation of exact distance to nearest patch for all cells and boundary by constructing a search tree for all patch faces. More...

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

Public Member Functions

 TypeName ("exactDistance")
 Runtime type information. More...
 
 exact (const dictionary &dict, const fvMesh &mesh, const labelHashSet &patchIDs)
 Construct from coefficients dictionary, mesh. More...
 
 exact (const fvMesh &mesh, const labelHashSet &patchIDs)
 Construct from mesh and fixed-value patch set. 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)
 Correct the given distance-to-patch field. More...
 
virtual bool correct (volScalarField &y, volVectorField &n)
 Correct the given distance-to-patch and normal-to-patch fields. More...
 
- Public Member Functions inherited from patchDistMethod
 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)
 

Additional Inherited Members

- Static Public Member Functions inherited from patchDistMethod
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 inherited from patchDistMethod
 patchDistMethod (const patchDistMethod &)=delete
 No copy construct. More...
 
void operator= (const patchDistMethod &)=delete
 No copy assignment. More...
 
- Protected Attributes inherited from patchDistMethod
const fvMeshmesh_
 Reference to the mesh. More...
 
const labelHashSet patchIDs_
 Set of patch IDs. More...
 

Detailed Description

Calculation of exact distance to nearest patch for all cells and boundary by constructing a search tree for all patch faces.

See also
Foam::patchDistMethod::meshWave Foam::wallDist
Source files

Definition at line 60 of file exactPatchDistMethod.H.

Constructor & Destructor Documentation

◆ exact() [1/2]

exact ( const dictionary dict,
const fvMesh mesh,
const labelHashSet patchIDs 
)

Construct from coefficients dictionary, mesh.

and fixed-value patch set

Definition at line 127 of file exactPatchDistMethod.C.

◆ exact() [2/2]

exact ( const fvMesh mesh,
const labelHashSet patchIDs 
)

Construct from mesh and fixed-value patch set.

Definition at line 138 of file exactPatchDistMethod.C.

Member Function Documentation

◆ TypeName()

TypeName ( "exactDistance"  )

Runtime type information.

◆ movePoints()

virtual bool movePoints ( )
inlinevirtual

Update cached geometry when the mesh moves.

Reimplemented from patchDistMethod.

Definition at line 109 of file exactPatchDistMethod.H.

◆ updateMesh()

virtual void updateMesh ( const mapPolyMesh )
inlinevirtual

Update cached topology and geometry when the mesh changes.

Reimplemented from patchDistMethod.

Definition at line 117 of file exactPatchDistMethod.H.

◆ correct() [1/2]

bool correct ( volScalarField y)
virtual

Correct the given distance-to-patch field.

Implements patchDistMethod.

Definition at line 150 of file exactPatchDistMethod.C.

References correct(), and y.

Here is the call graph for this function:

◆ correct() [2/2]

bool correct ( volScalarField y,
volVectorField n 
)
virtual

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

Implements patchDistMethod.

Definition at line 156 of file exactPatchDistMethod.C.

References Foam::endl(), distributedTriSurfaceMesh::findNearest(), forAll, distributedTriSurfaceMesh::getNormal(), Foam::Info, Foam::mag(), n, OFstream::name(), Foam::notNull(), Foam::sqr(), Foam::type(), OBJstream::write(), and y.

Here is the call graph for this function:

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