polyMeshTools Class Reference

Collection of static functions operating on polyMesh (mainly checks) so that need access to patch information. More...

Inheritance diagram for polyMeshTools:
[legend]
Collaboration diagram for polyMeshTools:
[legend]

Static Public Member Functions

static tmp< scalarFieldfaceOrthogonality (const polyMesh &mesh, const vectorField &fAreas, const vectorField &cellCtrs)
 
static tmp< scalarFieldfaceSkewness (const polyMesh &mesh, const pointField &points, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs)
 Generate skewness field. More...
 
static tmp< scalarFieldfaceWeights (const polyMesh &mesh, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs)
 Generate interpolation factors field. More...
 
static tmp< scalarFieldvolRatio (const polyMesh &mesh, const scalarField &vol)
 Generate volume ratio field. More...
 
static polyMesh::readUpdateState combine (const polyMesh::readUpdateState &state0, const polyMesh::readUpdateState &state1)
 
- Static Public Member Functions inherited from primitiveMeshTools
static void updateFaceCentresAndAreas (const primitiveMesh &mesh, const UList< label > &faceIDs, const pointField &p, vectorField &fCtrs, vectorField &fAreas)
 Update face centres and areas for the faces in the set faceIDs. More...
 
static void updateCellCentresAndVols (const primitiveMesh &mesh, const vectorField &fCtrs, const vectorField &fAreas, const List< label > &cellIDs, const List< cell > &cells, vectorField &cellCtrs_s, scalarField &cellVols_s)
 Update cell centres and volumes for the cells in the set cellIDs. More...
 
static void makeFaceCentresAndAreas (const UList< face > &faces, const pointField &p, vectorField &fCtrs, vectorField &fAreas)
 Calculate face centres and areas for specified faces. More...
 
static void makeFaceCentresAndAreas (const primitiveMesh &mesh, const pointField &p, vectorField &fCtrs, vectorField &fAreas)
 Calculate face centres and areas for all mesh faces. More...
 
static void makeCellCentresAndVols (const primitiveMesh &mesh, const vectorField &fCtrs, const vectorField &fAreas, vectorField &cellCtrs, scalarField &cellVols)
 Calculate cell centres and volumes from face properties. More...
 
static tmp< scalarFieldfaceOrthogonality (const primitiveMesh &mesh, const vectorField &fAreas, const vectorField &cellCtrs)
 Generate non-orthogonality field (internal faces only) More...
 
static void facePyramidVolume (const primitiveMesh &mesh, const pointField &points, const vectorField &cellCtrs, scalarField &ownPyrVol, scalarField &neiPyrVol)
 Generate face pyramid volume fields. More...
 
static tmp< scalarFieldfaceSkewness (const primitiveMesh &mesh, const pointField &points, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs)
 Generate skewness field. More...
 
static void cellClosedness (const primitiveMesh &mesh, const Vector< label > &meshD, const vectorField &areas, const scalarField &vols, scalarField &openness, scalarField &aratio)
 Generate cell openness and cell aspect ratio field. More...
 
static tmp< scalarFieldfaceConcavity (const scalar maxSin, const primitiveMesh &mesh, const pointField &p, const vectorField &faceAreas)
 
static tmp< scalarFieldfaceFlatness (const primitiveMesh &mesh, const pointField &p, const vectorField &fCtrs, const vectorField &faceAreas)
 
static tmp< scalarFieldedgeAlignment (const primitiveMesh &mesh, const Vector< label > &directions, const pointField &p)
 
static tmp< scalarFieldcellDeterminant (const primitiveMesh &mesh, const Vector< label > &directions, const vectorField &faceAreas, const bitSet &internalOrCoupledFace)
 Generate cell determinant field. Normalised to 1 for an internal cube. More...
 
static scalar faceSkewness (const UList< face > &faces, const pointField &p, const vectorField &fCtrs, const vectorField &fAreas, const label facei, const point &ownCc, const point &neiCc)
 Skewness of single face. More...
 
static scalar boundaryFaceSkewness (const UList< face > &faces, const pointField &p, const vectorField &fCtrs, const vectorField &fAreas, const label facei, const point &ownCc)
 Skewness of single boundary face. More...
 
static scalar faceSkewness (const primitiveMesh &mesh, const pointField &p, const vectorField &fCtrs, const vectorField &fAreas, const label facei, const point &ownCc, const point &neiCc)
 Skewness of single face. More...
 
static scalar boundaryFaceSkewness (const primitiveMesh &mesh, const pointField &p, const vectorField &fCtrs, const vectorField &fAreas, const label facei, const point &ownCc)
 Skewness of single boundary face. More...
 
static scalar faceOrthogonality (const point &ownCc, const point &neiCc, const vector &s)
 Orthogonality of single face. More...
 

Detailed Description

Collection of static functions operating on polyMesh (mainly checks) so that need access to patch information.

Source files

Definition at line 53 of file polyMeshTools.H.

Member Function Documentation

◆ faceOrthogonality()

Foam::tmp< Foam::scalarField > faceOrthogonality ( const polyMesh mesh,
const vectorField fAreas,
const vectorField cellCtrs 
)
static

Generate orthogonality field. (1 for fully orthogonal, < 1 for non-orthogonal)

Definition at line 36 of file polyMeshTools.C.

References polyMesh::boundaryMesh(), polyMesh::faceNeighbour(), primitiveMeshTools::faceOrthogonality(), polyMesh::faceOwner(), forAll, mesh, Time::New(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), and syncTools::swapBoundaryCellPositions().

Referenced by averageNeighbourFvGeometryScheme::makeNonOrthoWeights(), and averageNeighbourFvGeometryScheme::movePoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ faceSkewness()

Foam::tmp< Foam::scalarField > faceSkewness ( const polyMesh mesh,
const pointField points,
const vectorField fCtrs,
const vectorField fAreas,
const vectorField cellCtrs 
)
static

Generate skewness field.

Definition at line 90 of file polyMeshTools.C.

References primitiveMeshTools::boundaryFaceSkewness(), polyMesh::boundaryMesh(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), cellQuality::faceSkewness(), forAll, mesh, Time::New(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), p, Foam::skew(), and syncTools::swapBoundaryCellPositions().

Here is the call graph for this function:

◆ faceWeights()

Foam::tmp< Foam::scalarField > faceWeights ( const polyMesh mesh,
const vectorField fCtrs,
const vectorField fAreas,
const vectorField cellCtrs 
)
static

Generate interpolation factors field.

Definition at line 175 of file polyMeshTools.C.

References polyMesh::boundaryMesh(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMeshTools::faceWeights(), forAll, Foam::mag(), mesh, Foam::min(), Time::New(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), and syncTools::swapBoundaryCellPositions().

Referenced by polyMeshTools::faceWeights().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ volRatio()

Foam::tmp< Foam::scalarField > volRatio ( const polyMesh mesh,
const scalarField vol 
)
static

Generate volume ratio field.

Definition at line 232 of file polyMeshTools.C.

References polyMesh::boundaryMesh(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), forAll, Foam::max(), mesh, Foam::min(), Time::New(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), and syncTools::swapBoundaryCellList().

Here is the call graph for this function:

◆ combine()

Combine readUpdateState. topo change trumps geom-only change etc.

Definition at line 281 of file polyMeshTools.C.

References polyMesh::POINTS_MOVED, polyMesh::TOPO_CHANGE, polyMesh::TOPO_PATCH_CHANGE, and polyMesh::UNCHANGED.


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