36#ifndef extendedCentredCellToFaceStencil_H
37#define extendedCentredCellToFaceStencil_H
46class cellToFaceStencil;
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Generic GeometricField class.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Base class for extended cell-to-face stencils (face values from neighbouring cells)
Calculates/constains the extended cell-to-face stencil.
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.
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).
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.
const mapDistribute & map() const
Return reference to the parallel distribution map.
const labelListList & stencil() const
Return reference to the stencil.
void collectData(const GeometricField< T, fvPatchField, volMesh > &fld, List< List< T > > &stencilFld) const
Use map to get the data into stencil order.
Class containing processor-to-processor mapping information.
A class for managing temporary objects.