laplacianConstraintPointSmoother Class Reference
Inheritance diagram for laplacianConstraintPointSmoother:
Collaboration diagram for laplacianConstraintPointSmoother:

Public Member Functions

 TypeName ("laplacianConstraint")
 Runtime type information. More...
 
 laplacianConstraintPointSmoother (const polyMesh &mesh, const dictionary &dict)
 Construct from a dictionary and a polyMesh. More...
 
virtual ~laplacianConstraintPointSmoother ()=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 displacement. 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 laplacianConstraintPointSmoother.H.

Constructor & Destructor Documentation

◆ laplacianConstraintPointSmoother()

laplacianConstraintPointSmoother ( const polyMesh mesh,
const dictionary dict 
)

Construct from a dictionary and a polyMesh.

Definition at line 48 of file laplacianConstraintPointSmoother.C.

◆ ~laplacianConstraintPointSmoother()

virtual ~laplacianConstraintPointSmoother ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "laplacianConstraint"  )

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 displacement.

Implements pointSmoother.

Definition at line 60 of file laplacianConstraintPointSmoother.C.

References Foam::fac::average(), Tuple2< T1, T2 >::first(), UList< T >::first(), forAll, mesh, Foam::constant::atomic::mp, Foam::New(), nPoints, pp(), reset(), and Foam::Zero.

Here is the call graph for this function:

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