OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

twoDPointCorrector Class Reference

Class applies a two-dimensional correction to mesh motion point field. More...

Collaboration diagram for twoDPointCorrector:

List of all members.


Public Member Functions

 twoDPointCorrector (const polyMesh &mesh)
 Construct from components.
 ~twoDPointCorrector ()
bool required () const
 Is 2D correction required, i.e. is the mesh a wedge or slab.
const vector & planeNormal () const
 Return plane normal.
const labelList & normalEdgeIndices () const
 Return indices of normal edges.
direction normalDir () const
 Return direction normal to plane.
void correctPoints (pointField &p) const
 Correct motion points.
void updateMesh ()
 Update topology.

Detailed Description

Class applies a two-dimensional correction to mesh motion point field.

The correction guarantees that the mesh does not get twisted during motion and thus introduce a third dimension into a 2-D problem.

The operation is performed by looping through all edges approximately normal to the plane and enforcing their orthoginality onto the plane by adjusting points on their ends.

Source files

Definition at line 56 of file twoDPointCorrector.H.


Constructor & Destructor Documentation

twoDPointCorrector ( const polyMesh &  mesh  ) 

Construct from components.

Definition at line 183 of file twoDPointCorrector.C.

References Foam::deleteDemandDrivenData().

Here is the call graph for this function:

Definition at line 195 of file twoDPointCorrector.C.


Member Function Documentation

bool required (  )  const [inline]

Is 2D correction required, i.e. is the mesh a wedge or slab.

Definition at line 111 of file twoDPointCorrector.H.

const vector & planeNormal (  )  const

Return plane normal.

Definition at line 232 of file twoDPointCorrector.C.

const labelList & normalEdgeIndices (  )  const

Return indices of normal edges.

Definition at line 244 of file twoDPointCorrector.C.

direction normalDir (  )  const

Return direction normal to plane.

Definition at line 203 of file twoDPointCorrector.C.

void correctPoints ( pointField &  p  )  const

Correct motion points.

Definition at line 255 of file twoDPointCorrector.C.

void updateMesh (  ) 

Update topology.

Definition at line 286 of file twoDPointCorrector.C.


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