Collection of static functions operating on pointMesh. More...
#include <polyMeshTools.H>


Static Public Member Functions | |
| static tmp< scalarField > | faceOrthogonality (const polyMesh &mesh, const vectorField &fAreas, const vectorField &cellCtrs) |
| Generate orthogonality field. (1 for fully orthogonal, < 1 for non-orthogonal). | |
| static tmp< scalarField > | faceSkewness (const polyMesh &mesh, const pointField &points, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs) |
| Generate skewness field. | |
| static tmp< scalarField > | faceWeights (const polyMesh &mesh, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs) |
| Generate interpolation factors field. | |
| static tmp< scalarField > | volRatio (const polyMesh &mesh, const scalarField &vol) |
| Generate volume ratio field. | |
| static polyMesh::readUpdateState | combine (const polyMesh::readUpdateState &state0, const polyMesh::readUpdateState &state1) |
| Combine readUpdateState. topo change trumps geom-only change etc. | |
| 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. | |
| 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. | |
| static void | makeFaceCentresAndAreas (const UList< face > &faces, const pointField &p, vectorField &fCtrs, vectorField &fAreas) |
| Calculate face centres and areas for specified faces. | |
| static void | makeFaceCentresAndAreas (const primitiveMesh &mesh, const pointField &p, vectorField &fCtrs, vectorField &fAreas) |
| Calculate face centres and areas for all mesh faces. | |
| static void | makeCellCentresAndVols (const primitiveMesh &mesh, const vectorField &fCtrs, const vectorField &fAreas, vectorField &cellCtrs, scalarField &cellVols) |
| Calculate cell centres and volumes from face properties. | |
| static tmp< scalarField > | faceOrthogonality (const primitiveMesh &mesh, const vectorField &fAreas, const vectorField &cellCtrs) |
| Generate non-orthogonality field (internal faces only). | |
| static void | facePyramidVolume (const primitiveMesh &mesh, const pointField &points, const vectorField &cellCtrs, scalarField &ownPyrVol, scalarField &neiPyrVol) |
| Generate face pyramid volume fields. | |
| static tmp< scalarField > | faceSkewness (const primitiveMesh &mesh, const pointField &points, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs) |
| Generate skewness field. | |
| 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. | |
| static tmp< scalarField > | faceConcavity (const scalar maxSin, const primitiveMesh &mesh, const pointField &p, const vectorField &faceAreas) |
| Generate face concavity field. Returns per face the (sin of the) most concave angle between two consecutive edges. | |
| static tmp< scalarField > | faceFlatness (const primitiveMesh &mesh, const pointField &p, const vectorField &fCtrs, const vectorField &faceAreas) |
| Generate face flatness field. Compares the individual triangles' normals against the face average normal. Between 0 (fully warped) and 1 (fully flat). | |
| static tmp< scalarField > | edgeAlignment (const primitiveMesh &mesh, const Vector< label > &directions, const pointField &p) |
| Generate edge alignment field. Is per face the minimum aligned edge (does not use edge addressing). | |
| static tmp< scalarField > | cellDeterminant (const primitiveMesh &mesh, const Vector< label > &directions, const vectorField &faceAreas, const bitSet &internalOrCoupledFace) |
| Generate cell determinant field. Normalised to 1 for an internal cube. | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |
| static scalar | faceOrthogonality (const point &ownCc, const point &neiCc, const vector &s) |
| Orthogonality of single face. | |
Collection of static functions operating on pointMesh.
Collection of static functions operating on polyMesh (mainly checks) so that need access to patch information.
Definition at line 49 of file polyMeshTools.H.
|
static |
Generate orthogonality field. (1 for fully orthogonal, < 1 for non-orthogonal).
Definition at line 29 of file polyMeshTools.C.
References primitiveMeshTools::faceOrthogonality(), forAll, mesh, tmp< T >::New(), pbm, pp(), and syncTools::swapBoundaryCellPositions().
Referenced by pointSmoother::faceQuality(), averageNeighbourFvGeometryScheme::makeNonOrthoWeights(), and averageNeighbourFvGeometryScheme::movePoints().


|
static |
Generate skewness field.
Definition at line 83 of file polyMeshTools.C.
References primitiveMeshTools::boundaryFaceSkewness(), primitiveMeshTools::faceSkewness(), forAll, mesh, tmp< T >::New(), p, pbm, pp(), Foam::skew(), and syncTools::swapBoundaryCellPositions().

|
static |
Generate interpolation factors field.
Definition at line 168 of file polyMeshTools.C.
References forAll, Foam::mag(), mesh, Foam::min(), tmp< T >::New(), pbm, pp(), and syncTools::swapBoundaryCellPositions().

|
static |
Generate volume ratio field.
Definition at line 225 of file polyMeshTools.C.
References forAll, Foam::max(), mesh, Foam::min(), tmp< T >::New(), pbm, pp(), and syncTools::swapBoundaryCellList().

|
static |
Combine readUpdateState. topo change trumps geom-only change etc.
Definition at line 274 of file polyMeshTools.C.
References polyMesh::POINTS_MOVED, polyMesh::TOPO_CHANGE, polyMesh::TOPO_PATCH_CHANGE, and polyMesh::UNCHANGED.