Go to the documentation of this file.
47 flatFld[celli] =
fld[celli];
54 label nCompact = pfld.
patch().start();
58 flatFld[nCompact++] = pfld[i];
66 stencilFld.setSize(stencil.size());
70 const labelList& compactCells = stencil[facei];
72 stencilFld[facei].
setSize(compactCells.size());
76 stencilFld[facei][i] = flatFld[compactCells[i]];
96 collectData(map, stencil,
fld, stencilFld);
105 mesh.time().timeName(),
117 const List<Type>& stField = stencilFld[celli];
122 sf[celli] += stField[i]*stWeight[i];
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
#define forAll(list, i)
Loop across all elements in list.
Class containing processor-to-processor mapping information.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
static tmp< GeometricField< Type, fvPatchField, volMesh > > weightedSum(const mapDistribute &map, const labelListList &stencil, const GeometricField< Type, fvsPatchField, surfaceMesh > &fld, const List< List< scalar >> &stencilWeights)
Sum surface field contributions to create cell values.
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
static void collectData(const mapDistribute &map, const labelListList &stencil, const GeometricField< T, fvsPatchField, surfaceMesh > &fld, List< List< T >> &stencilFld)
Use map to get the data into stencil order.
label constructSize() const
Constructed data size.
const fvPatch & patch() const
Return patch.
Internal & ref(const bool updateAccessTime=true)
Return a reference to the dimensioned internal field.
void setSize(const label newSize)
Alias for resize(const label)
Generic GeometricField class.