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

primitiveMeshGeometry Class Reference

Updateable mesh geometry + checking routines. More...

Collaboration diagram for primitiveMeshGeometry:

List of all members.


Public Member Functions

 ClassName ("primitiveMeshGeometry")
 primitiveMeshGeometry (const primitiveMesh &)
 Construct from mesh.
const primitiveMesh & mesh () const
const vectorField & faceAreas () const
const vectorField & faceCentres () const
const vectorField & cellCentres () const
const scalarField & cellVolumes () const
void correct ()
 Take over properties from mesh.
void correct (const pointField &p, const labelList &changedFaces)
 Recalculate on selected faces. Recalculates cell properties.
labelList affectedCells (const labelList &changedFaces) const
 Helper function: get affected cells from faces.
bool checkFaceDotProduct (const bool report, const scalar orthWarn, const labelList &checkFaces, labelHashSet *setPtr) const
bool checkFacePyramids (const bool report, const scalar minPyrVol, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr) const
bool checkFaceSkewness (const bool report, const scalar internalSkew, const scalar boundarySkew, const labelList &checkFaces, labelHashSet *setPtr) const
bool checkFaceWeights (const bool report, const scalar warnWeight, const labelList &checkFaces, labelHashSet *setPtr) const
bool checkFaceAngles (const bool report, const scalar maxDeg, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr) const
bool checkFaceTwist (const bool report, const scalar minTwist, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr) const
bool checkFaceArea (const bool report, const scalar minArea, const labelList &checkFaces, labelHashSet *setPtr) const
bool checkCellDeterminant (const bool report, const scalar warnDet, const labelList &checkFaces, const labelList &affectedCells, labelHashSet *setPtr) const

Static Public Member Functions

static bool checkFaceDotProduct (const bool report, const scalar orthWarn, const primitiveMesh &, const vectorField &cellCentres, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
static bool checkFacePyramids (const bool report, const scalar minPyrVol, const primitiveMesh &, const vectorField &cellCentres, const pointField &p, const labelList &checkFaces, labelHashSet *)
static bool checkFaceSkewness (const bool report, const scalar internalSkew, const scalar boundarySkew, const primitiveMesh &mesh, const vectorField &cellCentres, const vectorField &faceCentres, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
static bool checkFaceWeights (const bool report, const scalar warnWeight, const primitiveMesh &mesh, const vectorField &cellCentres, const vectorField &faceCentres, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
static bool checkFaceAngles (const bool report, const scalar maxDeg, const primitiveMesh &mesh, const vectorField &faceAreas, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr)
static bool checkFaceTwist (const bool report, const scalar minTwist, const primitiveMesh &, const vectorField &faceAreas, const vectorField &faceCentres, const pointField &p, const labelList &checkFaces, labelHashSet *setPtr)
static bool checkFaceArea (const bool report, const scalar minArea, const primitiveMesh &, const vectorField &faceAreas, const labelList &checkFaces, labelHashSet *setPtr)
static bool checkCellDeterminant (const bool report, const scalar minDet, const primitiveMesh &, const vectorField &faceAreas, const labelList &checkFaces, const labelList &affectedCells, labelHashSet *setPtr)

Detailed Description

Updateable mesh geometry + checking routines.

Source files

Definition at line 45 of file primitiveMeshGeometry.H.


Constructor & Destructor Documentation

primitiveMeshGeometry ( const primitiveMesh &  mesh  ) 

Construct from mesh.

Definition at line 210 of file primitiveMeshGeometry.C.


Member Function Documentation

ClassName ( "primitiveMeshGeometry"   ) 

const primitiveMesh& mesh (  )  const [inline]

Definition at line 96 of file primitiveMeshGeometry.H.

const vectorField& faceAreas (  )  const [inline]

Definition at line 101 of file primitiveMeshGeometry.H.

const vectorField& faceCentres (  )  const [inline]

Definition at line 105 of file primitiveMeshGeometry.H.

const vectorField& cellCentres (  )  const [inline]

Definition at line 109 of file primitiveMeshGeometry.H.

const scalarField& cellVolumes (  )  const [inline]

Definition at line 113 of file primitiveMeshGeometry.H.

void correct (  ) 

Take over properties from mesh.

Definition at line 226 of file primitiveMeshGeometry.C.

void correct ( const pointField &  p,
const labelList &  changedFaces 
)

Recalculate on selected faces. Recalculates cell properties.

Recalculate on selected faces.

on owner and neighbour of these cells.

Definition at line 237 of file primitiveMeshGeometry.C.

Foam::labelList affectedCells ( const labelList &  changedFaces  )  const

Helper function: get affected cells from faces.

Definition at line 181 of file primitiveMeshGeometry.C.

Referenced by primitiveMeshGeometry::checkFaceDotProduct().

Here is the caller graph for this function:

bool checkFaceDotProduct ( const bool  report,
const scalar  orthWarn,
const primitiveMesh &  mesh,
const vectorField &  cellCentres,
const vectorField &  faceAreas,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) [static]

Definition at line 250 of file primitiveMeshGeometry.C.

References primitiveMeshGeometry::affectedCells().

Here is the call graph for this function:

bool checkFacePyramids ( const bool  report,
const scalar  minPyrVol,
const primitiveMesh &  mesh,
const vectorField &  cellCentres,
const pointField &  p,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) [static]

Definition at line 404 of file primitiveMeshGeometry.C.

bool checkFaceSkewness ( const bool  report,
const scalar  internalSkew,
const scalar  boundarySkew,
const primitiveMesh &  mesh,
const vectorField &  cellCentres,
const vectorField &  faceCentres,
const vectorField &  faceAreas,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) [static]

Definition at line 520 of file primitiveMeshGeometry.C.

bool checkFaceWeights ( const bool  report,
const scalar  warnWeight,
const primitiveMesh &  mesh,
const vectorField &  cellCentres,
const vectorField &  faceCentres,
const vectorField &  faceAreas,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) [static]

Definition at line 664 of file primitiveMeshGeometry.C.

bool checkFaceAngles ( const bool  report,
const scalar  maxDeg,
const primitiveMesh &  mesh,
const vectorField &  faceAreas,
const pointField &  p,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) [static]

Definition at line 754 of file primitiveMeshGeometry.C.

bool checkFaceTwist ( const bool  report,
const scalar  minTwist,
const primitiveMesh &  mesh,
const vectorField &  faceAreas,
const vectorField &  faceCentres,
const pointField &  p,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) [static]

Definition at line 1034 of file primitiveMeshGeometry.C.

References Foam::abort(), Foam::endl(), primitiveMesh::faces(), Foam::FatalError, FatalErrorIn, forAll, Foam::Info, Foam::mag(), face::nextLabel(), Foam::nl, Foam::reduce(), and WarningIn.

Referenced by primitiveMeshGeometry::checkFaceTwist().

Here is the call graph for this function:

Here is the caller graph for this function:

bool checkFaceArea ( const bool  report,
const scalar  minArea,
const primitiveMesh &  mesh,
const vectorField &  faceAreas,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) [static]

Definition at line 1150 of file primitiveMeshGeometry.C.

bool checkCellDeterminant ( const bool  report,
const scalar  minDet,
const primitiveMesh &  mesh,
const vectorField &  faceAreas,
const labelList &  checkFaces,
const labelList &  affectedCells,
labelHashSet *  setPtr 
) [static]

Definition at line 1215 of file primitiveMeshGeometry.C.

bool checkFaceDotProduct ( const bool  report,
const scalar  orthWarn,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) const

Definition at line 1321 of file primitiveMeshGeometry.C.

bool checkFacePyramids ( const bool  report,
const scalar  minPyrVol,
const pointField &  p,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) const

Definition at line 1342 of file primitiveMeshGeometry.C.

bool checkFaceSkewness ( const bool  report,
const scalar  internalSkew,
const scalar  boundarySkew,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) const

Definition at line 1364 of file primitiveMeshGeometry.C.

bool checkFaceWeights ( const bool  report,
const scalar  warnWeight,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) const

Definition at line 1388 of file primitiveMeshGeometry.C.

bool checkFaceAngles ( const bool  report,
const scalar  maxDeg,
const pointField &  p,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) const

Definition at line 1410 of file primitiveMeshGeometry.C.

bool checkFaceTwist ( const bool  report,
const scalar  minTwist,
const pointField &  p,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) const

Definition at line 1455 of file primitiveMeshGeometry.C.

References primitiveMeshGeometry::checkFaceTwist().

Here is the call graph for this function:

bool checkFaceArea ( const bool  report,
const scalar  minArea,
const labelList &  checkFaces,
labelHashSet *  setPtr 
) const

Definition at line 1478 of file primitiveMeshGeometry.C.

bool checkCellDeterminant ( const bool  report,
const scalar  warnDet,
const labelList &  checkFaces,
const labelList &  affectedCells,
labelHashSet *  setPtr 
) const

Definition at line 1498 of file primitiveMeshGeometry.C.


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