46#ifndef extendedUpwindCellToFaceStencil_H
47#define extendedUpwindCellToFaceStencil_H
62class extendedUpwindCellToFaceStencil
69 const bool pureUpwind_;
84 void selectOppositeFaces
87 const scalar minOpposedness,
98 const scalar minOpposedness,
101 const bool stencilHasNeighbour,
109 void transportStencils
112 const scalar minOpposedness,
119 extendedUpwindCellToFaceStencil
121 const extendedUpwindCellToFaceStencil&
125 void operator=(
const extendedUpwindCellToFaceStencil&) =
delete;
135 extendedUpwindCellToFaceStencil
139 const scalar minOpposedness
144 extendedUpwindCellToFaceStencil
Info<< nl;Info<< "Write faMesh in vtk format:"<< nl;{ vtk::uindirectPatchWriter writer(aMesh.patch(), fileName(aMesh.time().globalPath()/vtkBaseFileName));writer.writeGeometry();globalIndex procAddr(aMesh.nFaces());labelList cellIDs;if(UPstream::master()) { cellIDs.resize(procAddr.totalSize());for(const labelRange &range :procAddr.ranges()) { auto slice=cellIDs.slice(range);slice=identity(range);} } writer.beginCellData(4);writer.writeProcIDs();writer.write("cellID", cellIDs);writer.write("area", aMesh.S().field());writer.write("normal", aMesh.faceAreaNormals());writer.beginPointData(1);writer.write("normal", aMesh.pointAreaNormals());Info<< " "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edges")));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Generic GeometricField class.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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).
extendedCellToFaceStencil(const polyMesh &)
Construct from mesh.
const labelListList & neiStencil() const
Return reference to the stencil.
const mapDistribute & ownMap() const
Return reference to the parallel distribution map.
const labelListList & ownStencil() const
Return reference to the stencil.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > weightedSum(const surfaceScalarField &phi, const GeometricField< Type, fvPatchField, volMesh > &fld, const List< List< scalar > > &ownWeights, const List< List< scalar > > &neiWeights) const
Sum vol field contributions to create face values.
const mapDistribute & neiMap() const
Return reference to the parallel distribution map.
Class containing processor-to-processor mapping information.
A class for managing temporary objects.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
List< bool > boolList
A List of bools.