Go to the documentation of this file.
51 ortho[faceI] = primitiveMeshTools::faceOrthogonality
63 syncTools::swapBoundaryCellPositions(
mesh, cc, neighbourCc);
73 label bFaceI = faceI -
mesh.nInternalFaces();
75 ortho[faceI] = primitiveMeshTools::faceOrthogonality
107 skew[faceI] = primitiveMeshTools::faceSkewness
115 cellCtrs[own[faceI]],
125 syncTools::swapBoundaryCellPositions(
mesh, cellCtrs, neighbourCc);
135 label bFaceI = faceI -
mesh.nInternalFaces();
137 skew[faceI] = primitiveMeshTools::faceSkewness
145 cellCtrs[own[faceI]],
156 skew[faceI] = primitiveMeshTools::boundaryFaceSkewness
192 const point& fc = fCtrs[faceI];
193 const vector& fa = fAreas[faceI];
195 scalar dOwn =
mag(fa & (fc-cellCtrs[own[faceI]]));
196 scalar dNei =
mag(fa & (cellCtrs[nei[faceI]]-fc));
198 weight[faceI] =
min(dNei,dOwn)/(dNei+dOwn+VSMALL);
205 syncTools::swapBoundaryCellPositions(
mesh, cellCtrs, neiCc);
215 label bFaceI = faceI -
mesh.nInternalFaces();
217 const point& fc = fCtrs[faceI];
218 const vector& fa = fAreas[faceI];
220 scalar dOwn =
mag(fa & (fc-cellCtrs[own[faceI]]));
221 scalar dNei =
mag(fa & (neiCc[bFaceI]-fc));
223 weight[faceI] =
min(dNei,dOwn)/(dNei+dOwn+VSMALL);
248 scalar volOwn = vol[own[faceI]];
249 scalar volNei = vol[nei[faceI]];
251 ratio[faceI] =
min(volOwn,volNei)/(
max(volOwn, volNei)+VSMALL);
258 syncTools::swapBoundaryCellList(
mesh, vol, neiVol);
268 label bFaceI = faceI -
mesh.nInternalFaces();
270 scalar volOwn = vol[own[faceI]];
271 scalar volNei = neiVol[bFaceI];
273 ratio[faceI] =
min(volOwn,volNei)/(
max(volOwn, volNei)+VSMALL);
dimensionedTensor skew(const dimensionedTensor &dt)
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
dimensioned< scalar > mag(const dimensioned< Type > &)
Mesh consisting of general polyhedral cells.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
A patch is a list of labels that address the faces in the global face list.
label start() const
Return start label of this patch in the polyMesh face list.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
volScalarField scalarField(fieldObject, mesh)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)