Go to the documentation of this file.
64 str <<
"l 1 " << vertI <<
nl;
81 if (sCells.
size() > 0)
83 sumSize += sCells.
size();
85 minSize =
min(minSize, sCells.
size());
86 maxSize =
max(maxSize, sCells.
size());
96 Info<<
"Stencil size :" <<
nl
97 <<
" average : " << sumSize <<
nl
98 <<
" min : " << minSize <<
nl
99 <<
" max : " << maxSize <<
nl
106 int main(
int argc,
char *argv[])
155 compactFld[cellI] =
fld[cellI];
165 compactFld[nCompact++] = pfld[i];
177 const labelList& compactCells = stencil[cellI];
183 stencilPoints[cellI][i] = compactFld[compactCells[i]];
189 forAll(stencilPoints, cellI)
193 runTime.path()/
"centredCell" +
Foam::name(cellI) +
".obj",
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
void writeStencilOBJ(const fileName &fName, const point &fc, const List< point > &stencilCc)
A class for handling file names.
int main(int argc, char *argv[])
void writeStencilStats(const labelListList &stencil)
#define forAll(list, i)
Loop across all elements in list.
static const label labelMax
static label nProcs(const label communicator=0)
Number of processes in parallel run.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const globalIndex & globalNumbering() const
Global numbering for cells and boundary faces.
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.
Class containing processor-to-processor mapping information.
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
label constructSize() const
Constructed data size.
void setSize(const label)
Reset size of List.
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...
Traits class for primitives.
void size(const label)
Override size to be inconsistent with allocated storage.
Generic GeometricField class.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
word name(const complex &)
Return a string representation of a complex.