OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

motionSmoother Class Reference

Collaboration diagram for motionSmoother:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 94 of file motionSmoother.H.


Public Member Functions

 ClassName ("motionSmoother")
 motionSmoother (polyMesh &, pointMesh &, indirectPrimitivePatch &pp, const labelList &adaptPatchIDs, const dictionary &paramDict)
 Construct from mesh, patches to work on and smoothing parameters.
 motionSmoother (polyMesh &, indirectPrimitivePatch &pp, const labelList &adaptPatchIDs, const pointVectorField &, const dictionary &paramDict)
 Construct from mesh, patches to work on and smoothing parameters and.
 ~motionSmoother ()
const polyMesh & mesh () const
 Reference to mesh.
const pointMesh & pMesh () const
 Reference to pointMesh.
const indirectPrimitivePatch & patch () const
 Reference to patch.
const labelList & adaptPatchIDs () const
 Patch labels that are being adapted.
pointVectorField & displacement ()
 Reference to displacement field.
const pointVectorField & displacement () const
 Reference to displacement field.
const pointScalarField & scale () const
 Reference to scale field.
const pointField & oldPoints () const
 Starting mesh position.
twoDPointCorrector & twoDCorrector ()
 Return reference to 2D point motion correction.
void correct ()
 Take over existing mesh position.
void setDisplacement (pointField &patchDisp)
 Set displacement field from displacement on patch points.
void correctBoundaryConditions (pointVectorField &) const
 Special correctBoundaryConditions which evaluates fixedValue.
tmp< scalarField > movePoints (pointField &)
 Move mesh. Does 2D correction (modifies passed pointField) and.
scalar setErrorReduction (const scalar)
 Set the errorReduction (by how much to scale the displacement.
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.
template<class Type>
void smooth (const GeometricField< Type, pointPatchField, pointMesh > &fld, const scalarField &edgeWeight, const bool separation, GeometricField< Type, pointPatchField, pointMesh > &newFld) const
 Fully explicit smoothing of internal points with varying.

Static Public Member Functions

static bool checkMesh (const bool report, const polyMesh &mesh, const dictionary &dict, labelHashSet &wrongFaces)
 Check mesh with mesh settings in dict. Collects incorrect faces.
static bool checkMesh (const bool report, const dictionary &dict, const polyMeshGeometry &, const labelList &checkFaces, labelHashSet &wrongFaces)
 Check part of mesh with mesh settings in dict.

Classes

class  maxMagEqOp
 To synchronise displacements. We want max displacement since.

Constructor & Destructor Documentation

motionSmoother ( polyMesh &  ,
pointMesh &  ,
indirectPrimitivePatch &  pp,
const labelList &  adaptPatchIDs,
const dictionary &  paramDict 
)

Construct from mesh, patches to work on and smoothing parameters.

Reads displacement field (only boundary conditions used)

motionSmoother ( polyMesh &  ,
indirectPrimitivePatch &  pp,
const labelList &  adaptPatchIDs,
const pointVectorField &  ,
const dictionary &  paramDict 
)

Construct from mesh, patches to work on and smoothing parameters and.

displacementfield (only boundary conditions used)

~motionSmoother (  ) 


Member Function Documentation

ClassName ( "motionSmoother"   ) 

const polyMesh& mesh (  )  const

Reference to mesh.

const pointMesh& pMesh (  )  const

Reference to pointMesh.

const indirectPrimitivePatch& patch (  )  const

Reference to patch.

const labelList& adaptPatchIDs (  )  const

Patch labels that are being adapted.

pointVectorField& displacement (  ) 

Reference to displacement field.

const pointVectorField& displacement (  )  const

Reference to displacement field.

const pointScalarField& scale (  )  const

Reference to scale field.

const pointField& oldPoints (  )  const

Starting mesh position.

twoDPointCorrector& twoDCorrector (  )  [inline]

Return reference to 2D point motion correction.

Definition at line 354 of file motionSmoother.H.

void correct (  ) 

Take over existing mesh position.

void setDisplacement ( pointField &  patchDisp  ) 

Set displacement field from displacement on patch points.

Modify provided displacement to be consistent with actual boundary conditions on displacement. Note: resets the displacement to be 0 on coupled patches beforehand to make sure shared points partially on pp (on some processors) and partially not (on other processors) get the value from pp.

void correctBoundaryConditions ( pointVectorField &   )  const

Special correctBoundaryConditions which evaluates fixedValue.

patches first so they get overwritten with any constraint bc's.

tmp<scalarField> movePoints ( pointField &   ) 

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

polyMesh::movePoints. Returns swept volumes.

scalar setErrorReduction ( const   scalar  ) 

Set the errorReduction (by how much to scale the displacement.

at error locations) parameter. Returns the old value. Set to 0 (so revert to old mesh) grows out one cell layer from error faces.

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 updateMesh (  ) 

Update topology.

static bool checkMesh ( const bool  report,
const polyMesh &  mesh,
const dictionary &  dict,
labelHashSet &  wrongFaces 
) [static]

Check mesh with mesh settings in dict. Collects incorrect faces.

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

static bool checkMesh ( const bool  report,
const dictionary &  dict,
const polyMeshGeometry &  ,
const labelList &  checkFaces,
labelHashSet &  wrongFaces 
) [static]

Check part of mesh with mesh settings in dict.

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

void smooth ( const GeometricField< Type, pointPatchField, pointMesh > &  fld,
const scalarField &  edgeWeight,
const bool  separation,
GeometricField< Type, pointPatchField, pointMesh > &  newFld 
) const

Fully explicit smoothing of internal points with varying.

diffusivity.


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd