Go to the documentation of this file.
44 #ifndef extendedUpwindCellToFaceStencil_H
45 #define extendedUpwindCellToFaceStencil_H
54 class cellToFaceStencil;
85 const scalar minOpposedness,
96 const scalar minOpposedness,
99 const bool stencilHasNeighbour,
110 const scalar minOpposedness,
134 const scalar minOpposedness
const labelListList & ownStencil() const
Return reference to the stencil.
void selectOppositeFaces(const boolList &nonEmptyFace, const scalar minOpposedness, const label faceI, const label cellI, DynamicList< label > &oppositeFaces) const
Find most 'opposite' faces of cell.
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.
autoPtr< mapDistribute > ownMapPtr_
Swap map for getting neigbouring data.
A class for managing temporary objects.
const bool pureUpwind_
Does stencil contain upwind points only.
extendedUpwindCellToFaceStencil(const extendedUpwindCellToFaceStencil &)
Disallow default bitwise copy construct.
void operator=(const extendedUpwindCellToFaceStencil &)
Disallow default bitwise assignment.
Creates upwind stencil by shifting a centred stencil to upwind and downwind faces and optionally remo...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Class containing processor-to-processor mapping information.
const mapDistribute & ownMap() const
Return reference to the parallel distribution map.
autoPtr< mapDistribute > neiMapPtr_
const mapDistribute & neiMap() const
Return reference to the parallel distribution map.
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))
Calculates/constains the extended cell-to-face stencil.
labelListList neiStencil_
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Base class for extended cell-to-face stencils (face values from neighbouring cells)
const labelListList & neiStencil() const
Return reference to the stencil.
Generic GeometricField class.
void transportStencils(const labelListList &faceStencil, const scalar minOpposedness, labelListList &ownStencil, labelListList &neiStencil)
Transport (centred) face stencil to 'opposite' faces.
labelListList ownStencil_
Per face the stencil.
void transportStencil(const boolList &nonEmptyFace, const labelListList &faceStencil, const scalar minOpposedness, const label faceI, const label cellI, const bool stencilHasNeighbour, DynamicList< label > &oppositeFaces, labelHashSet &faceStencilSet, labelList &transportedStencil) const
Transport (centred) face stencil to 'opposite' face.