34 #ifndef extendedCentredFaceToCellStencil_H
35 #define extendedCentredFaceToCellStencil_H
44 class faceToCellStencil;
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Class containing processor-to-processor mapping information.
void compact()
After removing elements from the stencil adapt the schedule (map).
extendedCentredFaceToCellStencil(const faceToCellStencil &)
Construct from uncompacted face stencil.
const distributionMap & map() const
Return reference to the parallel distribution map.
const labelListList & stencil() const
Return reference to the stencil.
void operator=(const extendedCentredFaceToCellStencil &)=delete
Disallow default bitwise assignment.
void collectData(const SurfaceField< Type > &fld, List< List< Type >> &stencilFld) const
Use map to get the data into stencil order.
tmp< VolField< Type > > weightedSum(const SurfaceField< Type > &fld, const List< List< scalar >> &stencilWeights) const
Sum surface field contributions to create cell values.
Note: transformations on coupled patches not supported. Problem is the positions of cells reachable t...
static void collectData(const distributionMap &map, const labelListList &stencil, const SurfaceField< Type > &fld, List< List< Type >> &stencilFld)
Use map to get the data into stencil order.
static tmp< VolField< Type > > weightedSum(const distributionMap &map, const labelListList &stencil, const SurfaceField< Type > &fld, const List< List< scalar >> &stencilWeights)
Sum surface field contributions to create cell values.
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring faces in glo...
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))