45 flatFld[celli] = fld[celli];
56 flatFld[nCompact++] = pfld[i];
64 stencilFld.setSize(stencil.
size());
68 const labelList& compactCells = stencil[facei];
74 stencilFld[facei][i] = flatFld[compactCells[i]];
94 collectData(map, stencil, fld, stencilFld);
115 const List<Type>& stField = stencilFld[celli];
120 sf[celli] += stField[i]*stWeight[i];
#define forAll(list, i)
Loop across all elements in list.
const word & name() const
Return name.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
void size(const label)
Override size to be inconsistent with allocated storage.
static tmp< GeometricField< Type, fvPatchField, volMesh > > weightedSum(const distributionMap &map, const labelListList &stencil, const GeometricField< Type, fvsPatchField, surfaceMesh > &fld, const List< List< scalar >> &stencilWeights)
Sum surface field contributions to create cell values.
Generic GeometricField class.
Generic dimensioned Type class.
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
const dimensionSet & dimensions() const
Return dimensions.
label constructSize() const
Constructed data size.
const Mesh & mesh() const
Return mesh.
volScalarField sf(fieldObject, mesh)
const fvPatch & patch() const
Return patch.
void setSize(const label)
Reset size of List.
Class containing processor-to-processor mapping information.
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
static void collectData(const distributionMap &map, const labelListList &stencil, const GeometricField< T, fvsPatchField, surfaceMesh > &fld, List< List< T >> &stencilFld)
Use map to get the data into stencil order.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...