OpenFOAM logo
Open Source CFD Toolkit

motionSmoother Class Reference

Collaboration diagram for motionSmoother:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ClassName ("motionSmoother")
 motionSmoother (polyMesh &, pointMesh &, indirectPrimitivePatch &pp, const labelList &adaptPatchIDs, const scalar reduction=0.5, const label nSmoothScale=1, const scalar maxNonOrtho=90, const scalar minVol=SMALL, const scalar maxConcave=180, const scalar minArea=VSMALL)
 Construct from mesh, optional fixedValue patch.
 ~motionSmoother ()
const polyMeshmesh () const
 Reference to mesh.
const pointMeshpMesh () const
 Reference to pointMesh.
const indirectPrimitivePatchpatch () const
 Reference to patch.
scalar maxNonOrtho () const
scalar minVol () const
scalar maxConcave () const
scalar minArea () const
pointVectorFielddisplacement ()
 Reference to displacement field.
const pointVectorFielddisplacement () const
 Reference to displacement field.
const pointScalarFieldscale () const
 Reference to scale field.
const pointFieldoldPoints () const
 Starting mesh position.
bool twoDMotion () const
twoDPointCorrectortwoDCorrector ()
void correct ()
 Take over existing mesh position.
tmp< scalarFieldmovePoints (pointField &)
 Move mesh. Does 2D correction (modifies passed pointField) and.
bool scaleMesh (const bool smoothMesh=true, const label nAllow=0)
 Move mesh with given scale. Return true if mesh ok or has.
void updateMesh ()
 Update topology.
bool checkMesh (labelHashSet &) const
 Check mesh with current settings. Collects incorrect faces.
template<class Type>
void smooth (GeometricField< Type, pointPatchField, pointMesh > &) const
 Point-jacobi smoothing of internal points.
template<class Type>
void smooth (const GeometricField< Type, pointPatchField, pointMesh > &fld, const scalarField &edgeGamma, GeometricField< Type, pointPatchField, pointMesh > &newFld) const
 Fully explicit smoothing of internal points with varying.

Static Public Member Functions

template<class Type, class CombineOp>
void syncField (GeometricField< Type, pointPatchField, pointMesh > &, const Type &zero, const CombineOp &cop)
 Sychronizes patch points on pointField.

Constructor & Destructor Documentation

motionSmoother polyMesh ,
pointMesh ,
indirectPrimitivePatch pp,
const labelList adaptPatchIDs,
const scalar  reduction = 0.5,
const label  nSmoothScale = 1,
const scalar  maxNonOrtho = 90,
const scalar  minVol = SMALL,
const scalar  maxConcave = 180,
const scalar  minArea = VSMALL
 

Construct from mesh, optional fixedValue patch.

where displacement will be adapted and parameters: number of error distribution cycles, minimum pyramid vol, max. concaveness check. Will read displacement field.

~motionSmoother  ) 
 


Member Function Documentation

bool checkMesh labelHashSet  )  const
 

Check mesh with current settings. Collects incorrect faces.

in set. Returns true if one or more faces in error. Parallel ok.

ClassName "motionSmoother"   ) 
 

void correct  ) 
 

Take over existing mesh position.

const pointVectorField& displacement  )  const
 

Reference to displacement field.

pointVectorField& displacement  ) 
 

Reference to displacement field.

scalar maxConcave  )  const
 

scalar maxNonOrtho  )  const
 

const polyMesh& mesh  )  const
 

Reference to mesh.

scalar minArea  )  const
 

scalar minVol  )  const
 

tmp<scalarField> movePoints pointField  ) 
 

Move mesh. Does 2D correction (modifies passed pointField) and.

polyMesh::movePoints. Returns swept volumes.

const pointField& oldPoints  )  const
 

Starting mesh position.

const indirectPrimitivePatch& patch  )  const
 

Reference to patch.

const pointMesh& pMesh  )  const
 

Reference to pointMesh.

const pointScalarField& scale  )  const
 

Reference to scale field.

bool scaleMesh const bool  smoothMesh = true,
const label  nAllow = 0
 

Move mesh with given scale. Return true if mesh ok or has.

less than nAllow errors, false otherwise and locally update scale. Smoothmesh=false means only patch points get moved. Parallel ok (as long as displacement field is consistent across patches)

void smooth const GeometricField< Type, pointPatchField, pointMesh > &  fld,
const scalarField edgeGamma,
GeometricField< Type, pointPatchField, pointMesh > &  newFld
const
 

Fully explicit smoothing of internal points with varying.

diffusivity.

void smooth GeometricField< Type, pointPatchField, pointMesh > &   )  const
 

Point-jacobi smoothing of internal points.

void syncField GeometricField< Type, pointPatchField, pointMesh > &  ,
const Type &  zero,
const CombineOp &  cop
[static]
 

Sychronizes patch points on pointField.

twoDPointCorrector& twoDCorrector  )  [inline]
 

Definition at line 317 of file motionSmoother.H.

References Foam::label, Foam::labelHashSet, Foam::pointField, and Foam::scalarField.

bool twoDMotion  )  const [inline]
 

Definition at line 312 of file motionSmoother.H.

void updateMesh  ) 
 

Update topology.


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org