51 ortho[facei] = primitiveMeshTools::faceOrthogonality
63 syncTools::swapBoundaryCellPositions(mesh, cc, neighbourCc);
75 ortho[facei] = primitiveMeshTools::faceOrthogonality
107 skew[facei] = primitiveMeshTools::faceSkewness
115 cellCtrs[own[facei]],
125 syncTools::swapBoundaryCellPositions(mesh, cellCtrs, neighbourCc);
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);
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);
270 scalar volOwn = vol[own[facei]];
271 scalar volNei = neiVol[bFacei];
273 ratio[facei] =
min(volOwn,volNei)/(
max(volOwn, volNei)+VSMALL);
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedTensor skew(const dimensionedTensor &dt)
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
label start() const
Return start label of this patch in the polyMesh face list.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
volScalarField scalarField(fieldObject, mesh)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
virtual const labelList & faceNeighbour() const
Return face neighbour.
dimensioned< scalar > mag(const dimensioned< Type > &)
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
virtual const labelList & faceOwner() const
Return face owner.
A patch is a list of labels that address the faces in the global face list.
T & ref() const
Return non-const reference or generate a fatal error.
label nInternalFaces() const