Go to the documentation of this file.
43 #ifndef cellCellStencil_H
44 #define cellCellStencil_H
165 virtual bool update() = 0;
A class for handling words, derived from Foam::string.
wordHashSet nonInterpolatedFields_
Set of fields that should not be interpolated.
bool localStencil(const labelUList &) const
Helper: is stencil fully local.
A class for managing temporary objects.
static labelList count(const label size, const labelUList &lst)
Count occurrences (in parallel)
virtual const wordHashSet & nonInterpolatedFields() const
Return the names of any (stencil or mesh specific) fields that.
Mesh consisting of general polyhedral cells.
TypeName("cellCellStencil")
Runtime type information.
virtual const labelListList & cellStencil() const =0
Per interpolated cell the neighbour cells (in terms of slots as.
virtual const labelUList & cellTypes() const =0
Return the cell type list.
static void globalCellCells(const globalIndex &gi, const polyMesh &mesh, const boolList &isValidDonor, const labelList &selectedCells, labelListList &cellCells, pointListList &cellCellCentres)
Helper: create cell-cell addressing in global numbering.
const labelIOList & zoneID() const
Helper: get reference to registered zoneID. Loads volScalarField.
Class containing processor-to-processor mapping information.
virtual ~cellCellStencil()
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
virtual void stencilWeights(const point &sample, const pointList &donorCcs, scalarList &weights) const =0
Calculate weights for a single acceptor.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
virtual const scalarList & cellInterpolationWeight() const =0
Per interpolated cell the interpolation factor. (0 = use.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual const mapDistribute & cellInterpolationMap() const =0
Return a communication schedule.
virtual const labelUList & interpolationCells() const =0
Indices of interpolated cells.
Calculation of interpolation stencils.
static tmp< volScalarField > createField(const fvMesh &mesh, const word &name, const UList< Type > &)
Helper: create volScalarField for postprocessing.
Bookkeeping for patch definitions.
virtual const List< scalarList > & cellInterpolationWeights() const =0
Weights for cellStencil.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const fvMesh & mesh_
Reference to the mesh.
virtual bool update()=0
Update stencils. Return false if nothing changed.
static autoPtr< cellCellStencil > New(const fvMesh &, const dictionary &dict, const bool update=true)
New function which constructs and returns pointer to a.
static const Enum< cellType > cellTypeNames_
Mode type names.
declareRunTimeSelectionTable(autoPtr, cellCellStencil, mesh,(const fvMesh &mesh, const dictionary &dict, const bool update),(mesh, dict, update))
Minimal example by using system/controlDict.functions: