36#ifndef extendedCentredCellToCellStencil_H
37#define extendedCentredCellToCellStencil_H
47class cellToCellStencil;
121 template<
class Type,
class WeightType>
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.
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or...
Baseclass for cell-to-cell stencils.
static tmp< GeometricField< typename outerProduct< WeightType, Type >::type, fvPatchField, volMesh > > weightedSum(const mapDistribute &map, const labelListList &stencil, const GeometricField< Type, fvPatchField, volMesh > &fld, const List< List< WeightType > > &stencilWeights)
Sum surface field contributions to create cell values.
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.
void compact()
After removing elements from the stencil adapt the schedule (map).
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.
const mapDistribute & map() const
Return reference to the parallel distribution map.
const labelListList & stencil() const
Return reference to the stencil.
void collectData(const GeometricField< Type, fvPatchField, volMesh > &fld, List< List< Type > > &stencilFld) const
Use map to get the data into stencil order.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Class containing processor-to-processor mapping information.
A class for managing temporary objects.
Mesh data needed to do the Finite Volume discretisation.
type
Volume classification types.