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);
118 const List<Type>& stField = stencilFld[facei];
123 sf[facei] += stField[i]*stWeight[i];
142 const List<Type>& stField = stencilFld[facei];
147 pSfCorr[i] += stField[j]*stWeight[j];
#define forAll(list, i)
Loop across all elements in list.
Generic GeometricField class.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
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 VolField< Type > &fld, List< List< Type >> &stencilFld)
Use map to get the data into stencil order.
static tmp< SurfaceField< Type > > weightedSum(const distributionMap &map, const labelListList &stencil, const VolField< Type > &fld, const List< List< scalar >> &stencilWeights)
Sum vol field contributions to create face values.
Mesh data needed to do the Finite Volume discretisation.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
const fvPatch & patch() const
Return patch.
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...
virtual bool coupled() const
Return true if this patch field is coupled.
const fvPatch & patch() const
Return patch.
label nInternalFaces() const
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.