36 #ifndef extendedCentredCellToFaceStencil_H 37 #define extendedCentredCellToFaceStencil_H 46 class cellToFaceStencil;
Calculates/constains the extended cell-to-face stencil.
Generic GeometricField class.
Base class for extended cell-to-face stencils (face values from neighbouring cells) ...
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > weightedSum(const GeometricField< Type, fvPatchField, volMesh > &fld, const List< List< scalar >> &stencilWeights) const
Sum vol field contributions to create face values.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > weightedSum(const mapDistribute &map, const labelListList &stencil, const GeometricField< Type, fvPatchField, volMesh > &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).
static void collectData(const mapDistribute &map, const labelListList &stencil, const GeometricField< T, fvPatchField, volMesh > &fld, List< List< T >> &stencilFld)
Use map to get the data into stencil order.
const labelListList & stencil() const
Return reference to the stencil.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Class containing processor-to-processor mapping information.
void collectData(const GeometricField< T, fvPatchField, volMesh > &fld, List< List< T >> &stencilFld) const
Use map to get the data into stencil order.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
A class for managing temporary objects.
const mapDistribute & map() const
Return reference to the parallel distribution map.