equipotentialPointSmoother Class Reference
Inheritance diagram for equipotentialPointSmoother:
Collaboration diagram for equipotentialPointSmoother:

Public Member Functions

 TypeName ("equipotential")
 Runtime type information. More...
 
 equipotentialPointSmoother (const polyMesh &mesh, const dictionary &dict)
 Construct from a dictionary and a polyMesh. More...
 
virtual ~equipotentialPointSmoother ()=default
 Destructor. More...
 
virtual void calculate (const labelList &facesToMove, const pointField &oldPoints, const pointField &currentPoints, const pointField &faceCentres, const vectorField &faceAreas, const pointField &cellCentres, const scalarField &cellVolumes, vectorField &pointDisplacement) const
 Calculate the point displacements. More...
 
- Public Member Functions inherited from pointSmoother
 TypeName ("pointSmoother")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, pointSmoother, dictionary,(const polyMesh &mesh, const dictionary &dict),(mesh, dict))
 
 pointSmoother (const polyMesh &mesh, const dictionary &)
 Construct from a dictionary and a point displacement field. More...
 
virtual ~pointSmoother ()=default
 Destructor. More...
 
const polyMeshmesh () const noexcept
 Access the mesh. More...
 
void update (const labelList &facesToMove, const pointField &oldPoints, const pointField &currentPoints, const pointField &faceCentres, const vectorField &faceAreas, const pointField &cellCentres, const scalarField &cellVolumes, pointVectorField &pointDisplacement, const bool correctBCs=true) const
 Update the point displacements and apply constraints. More...
 
void update (const labelList &facesToMove, const pointField &oldPoints, const pointField &currentPoints, const polyMeshGeometry &meshGeometry, pointVectorField &pointDisplacement, const bool correctBCs=true) const
 Update the point displacements and apply constraints. More...
 
virtual void calculate (const labelList &facesToMove, const pointField &oldPoints, const pointField &currentPoints, const polyMeshGeometry &meshGeometry, vectorField &pointDisplacement) const
 Update the point displacements. More...
 
virtual tmp< scalarFieldfaceQuality (const pointField &points, const pointField &faceCentres, const vectorField &faceAreas, const pointField &cellCentres, const scalarField &cellVolumes) const
 Check element quality: 1 = best, 0 = invalid. (also negative?) Topology from mesh, point locations supplied. Move to motionSolver level? More...
 
virtual tmp< scalarFieldcellQuality (const pointField &points, const pointField &faceCentres, const vectorField &faceAreas, const pointField &cellCentres, const scalarField &cellVolumes) const
 Check element quality: 1 = best, 0 = invalid. Topology from mesh, point locations supplied. Move to motionSolver level? More...
 

Additional Inherited Members

- Static Public Member Functions inherited from pointSmoother
static autoPtr< pointSmootherNew (const word &pointSmootherType, const polyMesh &mesh, const dictionary &dict)
 Construct given type. More...
 
static autoPtr< pointSmootherNew (const polyMesh &mesh, const dictionary &dict)
 Construct with type looked up from dictionary. More...
 
- Protected Member Functions inherited from pointSmoother
bool isInternalOrProcessorFace (const label faceI) const
 Test if the given face is internal or on a processor boundary. More...
 
bitSet pointsToMove (const labelList &facesToMove, const bool moveInternalFaces) const
 Get list of the points to be moved. More...
 
template<class weightType >
void reset (const labelList &facesToMove, Field< weightType > &weights, vectorField &pointDisplacement, const bool resetInternalFaces=true) const
 Reset the relevant weights and displacements to zero. More...
 
template<class weightType >
void average (const labelList &facesToMove, Field< weightType > &weights, vectorField &pointDisplacement) const
 Average the displacements using the weights provided. More...
 

Detailed Description

Definition at line 50 of file equipotentialPointSmoother.H.

Constructor & Destructor Documentation

◆ equipotentialPointSmoother()

equipotentialPointSmoother ( const polyMesh mesh,
const dictionary dict 
)

Construct from a dictionary and a polyMesh.

Definition at line 43 of file equipotentialPointSmoother.C.

◆ ~equipotentialPointSmoother()

virtual ~equipotentialPointSmoother ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "equipotential"  )

Runtime type information.

◆ calculate()

void calculate ( const labelList facesToMove,
const pointField oldPoints,
const pointField currentPoints,
const pointField faceCentres,
const vectorField faceAreas,
const pointField cellCentres,
const scalarField cellVolumes,
vectorField pointDisplacement 
) const
virtual

Calculate the point displacements.

Implements pointSmoother.

Definition at line 55 of file equipotentialPointSmoother.C.

References Foam::fieldTypes::area, Foam::fac::average(), forAll, Foam::mag(), mesh, nPoints, reset(), and Foam::fieldTypes::volume.

Here is the call graph for this function:

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