34 #ifndef extendedCentredCellToCellStencil_H 35 #define extendedCentredCellToCellStencil_H 45 class cellToCellStencil;
113 template<
class Type,
class WeightType>
static void collectData(const distributionMap &map, const labelListList &stencil, const GeometricField< T, fvPatchField, volMesh > &fld, List< List< T >> &stencilFld)
Use map to get the data into stencil order.
tmp< GeometricField< typename outerProduct< WeightType, Type >::type, fvPatchField, volMesh > > weightedSum(const GeometricField< Type, fvPatchField, volMesh > &fld, const List< List< WeightType >> &stencilWeights) const
Sum vol field contributions to create cell values.
Baseclass for cell-to-cell stencils.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
Generic GeometricField class.
Mesh data needed to do the Finite Volume discretisation.
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))
void collectData(const GeometricField< Type, fvPatchField, volMesh > &fld, List< List< Type >> &stencilFld) const
Use map to get the data into stencil order.
extendedCentredCellToCellStencil(const cellToCellStencil &)
Construct from uncompacted cell stencil.
const distributionMap & map() const
Return reference to the parallel distribution map.
Class containing processor-to-processor mapping information.
static tmp< GeometricField< typename outerProduct< WeightType, Type >::type, fvPatchField, volMesh > > weightedSum(const distributionMap &map, const labelListList &stencil, const GeometricField< Type, fvPatchField, volMesh > &fld, const List< List< WeightType >> &stencilWeights)
Sum surface field contributions to create cell values.
void operator=(const extendedCentredCellToCellStencil &)=delete
Disallow default bitwise assignment.
const labelListList & stencil() const
Return reference to the stencil.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void compact()
After removing elements from the stencil adapt the schedule (map).
A class for managing temporary objects.
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or...