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.
Generic GeometricField class.
void size(const label)
Override size to be inconsistent with allocated storage.
void setSize(const label)
Reset size of List.
Generic dimensioned Type class.
label constructSize() const
Constructed data size.
Class containing processor-to-processor mapping information.
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
static void collectData(const distributionMap &map, const labelListList &stencil, const SurfaceField< Type > &fld, List< List< Type >> &stencilFld)
Use map to get the data into stencil order.
static tmp< VolField< Type > > weightedSum(const distributionMap &map, const labelListList &stencil, const SurfaceField< Type > &fld, const List< List< scalar >> &stencilWeights)
Sum surface field contributions to create cell values.
Mesh data needed to do the Finite Volume discretisation.
virtual label start() const
Return start label of this patch in the polyMesh face list.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const fvPatch & patch() const
Return patch.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
volScalarField sf(fieldObject, mesh)
gmvFile<< "tracers "<< particles.size()<< nl;{ pointField positions(particles.size());label particlei=0;forAllConstIter(Cloud< passiveParticle >, particles, iter) { positions[particlei++]=iter().position(mesh);} for(i=0;i< pTraits< point >::nComponents;i++) { forAll(positions, particlei) { gmvFile<< component(positions[particlei], i)<< ' ';} gmvFile<< nl;}}forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.