33 const primitiveMesh& mesh,
37 const cell& c = mesh.cells()[celli];
41 const label ow = mesh.faceOwner()[c[i]];
51 Foam::scalar Foam::MPLICcellStorage::calcAlphaMin()
const 57 for (
label i = 1; i < cPoints_.
size(); ++i)
59 const label pI = cPoints_[i];
68 Foam::scalar Foam::MPLICcellStorage::calcAlphaMax()
const 74 for (
label i = 1; i < cPoints_.
size(); ++i)
76 const label pI = cPoints_[i];
92 const face& f = faces_[cFaces_[facei]];
95 scalar fAlphaMin(pointsAlpha_[f.first()]);
98 for (
label i = 1; i < f.size(); ++i)
100 fAlphaMin =
min(fAlphaMin, pointsAlpha_[f[i]]);
118 const face& f = faces_[cFaces_[facei]];
121 scalar fAlphaMax(pointsAlpha_[f.first()]);
124 for (
label i = 1; i < f.size(); ++i)
126 fAlphaMax =
max(fAlphaMax, pointsAlpha_[f[i]]);
144 const scalar cellAlpha,
150 faces_(mesh.
faces()),
151 edges_(mesh.
edges()),
154 cFaces_(mesh.
cells()[celli]),
156 pointsAlpha_(pointsAlpha),
158 cellAlpha_(cellAlpha),
160 owns_(calcIsOwner(mesh, celli)),
166 cellAlphaMin_(calcAlphaMin()),
167 cellAlphaMax_(calcAlphaMax()),
168 facesAlphaMin_(calcFacesAlphaMin()),
169 facesAlphaMax_(calcFacesAlphaMax()),
const labelListList & cellEdges() const
#define forAll(list, i)
Loop across all elements in list.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
scalar cellAlphaMin() const
Return minimum point alpha value in the cell.
const labelListList & faceEdges() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Cell-face mesh analysis engine.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual const pointField & points() const =0
Return mesh points.
const cellList & cells() const
T & first()
Return the first element of the list.
MPLICcellStorage(const primitiveMesh &mesh, const scalarField &pointsAlpha, const vectorField &pointsU, const scalar cellAlpha, const vector &cellU, const label celli)
Construct from components.
List< bool > boolList
Bool container classes.
const scalarField & magFaceAreas() const
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
const vectorField & cellCentres() const
const scalarField & facesAlphaMax() const
Return maximum point alpha value on the cell faces.
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
const vectorField & faceCentres() const
const vectorField & faceAreas() const
virtual const faceList & faces() const =0
Return faces.
scalar cellAlphaMax() const
Return maximum point alpha value in the cell.
const scalarField & facesAlphaMin() const
Return minimum point alpha value on the cell faces.
const labelListList & cellPoints() const
const scalarField & cellVolumes() const