34 #ifndef extendedCentredCellToFaceStencil_H
35 #define extendedCentredCellToFaceStencil_H
44 class cellToFaceStencil;
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Base class for extended cell-to-face stencils (face values from neighbouring cells)
Class containing processor-to-processor mapping information.
Calculates/contains the extended cell-to-face stencil.
static void collectData(const distributionMap &map, const labelListList &stencil, const VolField< Type > &fld, List< List< Type >> &stencilFld)
Use map to get the data into stencil order.
static tmp< SurfaceField< Type > > weightedSum(const distributionMap &map, const labelListList &stencil, const VolField< Type > &fld, const List< List< scalar >> &stencilWeights)
Sum vol field contributions to create face values.
void compact()
After removing elements from the stencil adapt the schedule (map).
const distributionMap & map() const
Return reference to the parallel distribution map.
tmp< SurfaceField< Type > > weightedSum(const VolField< Type > &fld, const List< List< scalar >> &stencilWeights) const
Sum vol field contributions to create face values.
const labelListList & stencil() const
Return reference to the stencil.
extendedCentredCellToFaceStencil(const cellToFaceStencil &)
Construct from uncompacted face stencil.
void operator=(const extendedCentredCellToFaceStencil &)=delete
Disallow default bitwise assignment.
void collectData(const VolField< Type > &fld, List< List< Type >> &stencilFld) const
Use map to get the data into stencil order.
A class for managing temporary objects.
gmvFile<< "tracers "<< particles.size()<< nl;{ pointField positions(particles.size());label particlei=0;forAllConstIter(Cloud< passiveParticle >, particles, iter) { positions[particlei++]=iter().position(mesh);} for(i=0;i< pTraits< point >::nComponents;i++) { forAll(positions, particlei) { gmvFile<< component(positions[particlei], i)<< ' ';} gmvFile<< nl;}}forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))