FreeFOAM The Cross-Platform CFD Toolkit
twoDPointCorrector Class Reference

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

#include <meshTools/twoDPointCorrector.H>


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 61 of file twoDPointCorrector.H.

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 vectorplaneNormal () const
 Return plane normal.
const labelListnormalEdgeIndices () 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.

Constructor & Destructor Documentation

twoDPointCorrector ( const polyMesh mesh)

Construct from components.

Definition at line 190 of file twoDPointCorrector.C.

Definition at line 202 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 116 of file twoDPointCorrector.H.

const vector & planeNormal ( ) const

Return plane normal.

Definition at line 239 of file twoDPointCorrector.C.

Referenced by twoDPointCorrector::correctPoints(), directions::directions(), and twoDPointCorrector::normalDir().

const labelList & normalEdgeIndices ( ) const

Return indices of normal edges.

Definition at line 251 of file twoDPointCorrector.C.

Referenced by twoDPointCorrector::correctPoints().

void correctPoints ( pointField p) const
void updateMesh ( )

Update topology.

Definition at line 293 of file twoDPointCorrector.C.


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