34 #ifndef extendedCentredCellToCellStencil_H
35 #define extendedCentredCellToCellStencil_H
45 class cellToCellStencil;
113 template<
class Type,
class WeightType>
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or...
Class containing processor-to-processor mapping information.
Baseclass for cell-to-cell stencils.
static tmp< VolField< typename outerProduct< WeightType, Type >::type > > weightedSum(const distributionMap &map, const labelListList &stencil, const VolField< Type > &fld, const List< List< WeightType >> &stencilWeights)
Sum surface field contributions to create cell values.
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.
void compact()
After removing elements from the stencil adapt the schedule (map).
const distributionMap & map() const
Return reference to the parallel distribution map.
const labelListList & stencil() const
Return reference to the stencil.
tmp< VolField< typename outerProduct< WeightType, Type >::type > > weightedSum(const VolField< Type > &fld, const List< List< WeightType >> &stencilWeights) const
Sum vol field contributions to create cell values.
extendedCentredCellToCellStencil(const cellToCellStencil &)
Construct from uncompacted cell stencil.
void collectData(const VolField< Type > &fld, List< List< Type >> &stencilFld) const
Use map to get the data into stencil order.
void operator=(const extendedCentredCellToCellStencil &)=delete
Disallow default bitwise assignment.
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))