primitiveMeshTools Class Reference
Inheritance diagram for primitiveMeshTools:

Static Public Member Functions

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)
 Generate face concavity field. Returns per face the (sin of the) More...
 
static tmp< scalarFieldfaceFlatness (const primitiveMesh &mesh, const pointField &p, const vectorField &fCtrs, const vectorField &faceAreas)
 Generate face flatness field. Compares the individual triangles'. More...
 
static tmp< scalarFieldedgeAlignment (const primitiveMesh &mesh, const Vector< label > &directions, const pointField &p)
 Generate edge alignment field. Is per face the minimum aligned edge. More...
 
static tmp< scalarFieldcellDeterminant (const primitiveMesh &mesh, const Vector< label > &directions, const vectorField &faceAreas, const PackedBoolList &internalOrCoupledFace)
 Generate cell determinant field. 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

Definition at line 49 of file primitiveMeshTools.H.

Member Function Documentation

◆ faceOrthogonality() [1/2]

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

Generate non-orthogonality field (internal faces only)

Definition at line 122 of file primitiveMeshTools.C.

References primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), forAll, primitiveMesh::nInternalFaces(), and tmp< T >::ref().

Referenced by primitiveMesh::checkFaceOrthogonality(), and polyMeshTools::faceOrthogonality().

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

◆ facePyramidVolume()

void facePyramidVolume ( const primitiveMesh mesh,
const pointField points,
const vectorField cellCtrs,
scalarField ownPyrVol,
scalarField neiPyrVol 
)
static

Generate face pyramid volume fields.

Definition at line 201 of file primitiveMeshTools.C.

References f(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), primitiveMesh::faces(), forAll, primitiveMesh::isInternalFace(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), points, and List< T >::setSize().

Referenced by primitiveMesh::checkFacePyramids().

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

◆ faceSkewness() [1/2]

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

Generate skewness field.

Definition at line 150 of file primitiveMeshTools.C.

References primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), forAll, primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), p, tmp< T >::ref(), and Foam::skew().

Referenced by primitiveMesh::checkFaceSkewness(), and polyMeshTools::faceSkewness().

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

◆ cellClosedness()

void cellClosedness ( const primitiveMesh mesh,
const Vector< label > &  meshD,
const vectorField areas,
const scalarField vols,
scalarField openness,
scalarField aratio 
)
static

Generate cell openness and cell aspect ratio field.

Definition at line 240 of file primitiveMeshTools.C.

References Foam::cmptMag(), Foam::cmptSum(), primitiveMesh::faceNeighbour(), primitiveMesh::faceOwner(), forAll, Foam::mag(), Foam::max(), Foam::min(), primitiveMesh::nCells(), VectorSpace< Form, Cmpt, Ncmpts >::nComponents, Foam::pow(), List< T >::setSize(), and Foam::Zero.

Referenced by primitiveMesh::checkClosedCells().

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

◆ faceConcavity()

Foam::tmp< Foam::scalarField > faceConcavity ( const scalar  maxSin,
const primitiveMesh mesh,
const pointField p,
const vectorField faceAreas 
)
static

Generate face concavity field. Returns per face the (sin of the)

most concave angle between two consecutive edges

Definition at line 334 of file primitiveMeshTools.C.

References f(), primitiveMesh::faces(), UList< T >::fcIndex(), UList< T >::first(), forAll, UList< T >::last(), Foam::mag(), Foam::max(), primitiveMesh::nFaces(), p, and tmp< T >::ref().

Referenced by primitiveMesh::checkFaceAngles().

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

◆ faceFlatness()

Foam::tmp< Foam::scalarField > faceFlatness ( const primitiveMesh mesh,
const pointField p,
const vectorField fCtrs,
const vectorField faceAreas 
)
static

Generate face flatness field. Compares the individual triangles'.

normals against the face average normal. Between 0 (fully warped) and 1 (fully flat)

Definition at line 404 of file primitiveMeshTools.C.

References f(), primitiveMesh::faces(), forAll, Foam::mag(), n, primitiveMesh::nFaces(), p, tmp< T >::ref(), and List< T >::size().

Referenced by primitiveMesh::checkFaceFlatness().

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

◆ edgeAlignment()

static tmp<scalarField> edgeAlignment ( const primitiveMesh mesh,
const Vector< label > &  directions,
const pointField p 
)
static

Generate edge alignment field. Is per face the minimum aligned edge.

(does not use edge addressing)

◆ cellDeterminant()

Foam::tmp< Foam::scalarField > cellDeterminant ( const primitiveMesh mesh,
const Vector< label > &  directions,
const vectorField faceAreas,
const PackedBoolList internalOrCoupledFace 
)
static

Generate cell determinant field.

Definition at line 453 of file primitiveMeshTools.C.

References Foam::constant::universal::c, primitiveMesh::cells(), Foam::det(), forAll, Foam::mag(), primitiveMesh::nCells(), VectorSpace< Form, Cmpt, Ncmpts >::nComponents, tmp< T >::ref(), Foam::sqr(), SymmTensor< Cmpt >::xx(), SymmTensor< Cmpt >::yy(), Foam::Zero, and SymmTensor< Cmpt >::zz().

Referenced by polyMesh::checkCellDeterminant().

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

◆ faceSkewness() [2/2]

Foam::scalar faceSkewness ( const primitiveMesh mesh,
const pointField p,
const vectorField fCtrs,
const vectorField fAreas,
const label  facei,
const point ownCc,
const point neiCc 
)
static

Skewness of single face.

Definition at line 32 of file primitiveMeshTools.C.

References f(), primitiveMesh::faces(), forAll, Foam::mag(), Foam::max(), p, and Foam::constant::mathematical::pi().

Here is the call graph for this function:

◆ boundaryFaceSkewness()

Foam::scalar boundaryFaceSkewness ( const primitiveMesh mesh,
const pointField p,
const vectorField fCtrs,
const vectorField fAreas,
const label  facei,
const point ownCc 
)
static

Skewness of single boundary face.

Definition at line 68 of file primitiveMeshTools.C.

References f(), primitiveMesh::faces(), forAll, Foam::mag(), Foam::max(), p, and Foam::constant::mathematical::pi().

Referenced by polyMeshTools::faceSkewness().

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

◆ faceOrthogonality() [2/2]

Foam::scalar faceOrthogonality ( const point ownCc,
const point neiCc,
const vector s 
)
static

Orthogonality of single face.

Definition at line 107 of file primitiveMeshTools.C.

References Foam::mag(), and s().

Here is the call graph for this function:

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