45 flatFld[celli] = fld[celli];
54 -fld.
mesh().nInternalFaces()
59 flatFld[nCompact++] = pfld[i];
67 stencilFld.setSize(stencil.
size());
71 const labelList& compactCells = stencil[facei];
77 stencilFld[facei][i] = flatFld[compactCells[i]];
97 collectData(map, stencil, fld, stencilFld);
126 const List<Type>& stField = stencilFld[facei];
131 sf[facei] += stField[i]*stWeight[i];
138 Boundary& bSfCorr = sf.boundaryFieldRef();
150 const List<Type>& stField = stencilFld[facei];
155 pSfCorr[i] += stField[j]*stWeight[j];
const fvPatch & patch() const
Return patch.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Generic GeometricField class.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
Generic dimensioned Type class.
virtual bool coupled() const
Return true if this patch field is coupled.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
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.
const dimensionSet & dimensions() const
Return dimensions.
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.
const fvPatch & patch() const
Return patch.
volScalarField sf(fieldObject, mesh)
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
void setSize(const label)
Reset size of List.
Class containing processor-to-processor mapping information.
const Mesh & mesh() const
Return mesh.
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
label constructSize() const
Constructed data size.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
label nInternalFaces() const
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const word & name() const
Return name.
const Time & time() const
Return the top-level database.