Go to the documentation of this file.
83 str <<
"l 1 " << vertI <<
nl;
100 if (sCells.
size() > 0)
102 sumSize += sCells.
size();
104 minSize =
min(minSize, sCells.
size());
105 maxSize =
max(maxSize, sCells.
size());
115 Info<<
"Stencil size :" <<
nl
116 <<
" average : " << sumSize <<
nl
117 <<
" min : " << minSize <<
nl
118 <<
" max : " << maxSize <<
nl
125 int main(
int argc,
char *argv[])
461 forAll(stencilPoints, cellI)
465 runTime.path()/
"centredCECCell" +
Foam::name(cellI) +
".obj",
489 forAll(stencilPoints, cellI)
493 runTime.path()/
"centredCPCCell" +
Foam::name(cellI) +
".obj",
517 forAll(stencilPoints, cellI)
521 runTime.path()/
"centredCFCCell" +
Foam::name(cellI) +
".obj",
A class for handling file names.
void writeStencilStats(const labelListList &stencil)
#define forAll(list, i)
Loop across all elements in list.
const labelListList & edgeFaces() const
static const label labelMax
Ostream & endl(Ostream &os)
Add newline and flush stream.
static const centredCECCellToCellStencilObject & New(const fvMesh &mesh)
int main(int argc, char *argv[])
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
static const label labelMin
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void writeStencilOBJ(const fileName &fName, const point &fc, const List< point > &stencilCc)
const labelListList & edgeCells() const
const labelListList & stencil() const
Return reference to the stencil.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
const vectorField & cellCentres() const
const volVectorField & C() const
Return cell centres as volVectorField.
prefixOSstream Pout(cout, "Pout")
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const labelListList & pointCells() const
void size(const label)
Override size to be inconsistent with allocated storage.
void collectData(const GeometricField< Type, fvPatchField, volMesh > &fld, List< List< Type > > &stencilFld) const
Use map to get the data into stencil order.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
word name(const complex &)
Return a string representation of a complex.