Go to the documentation of this file.
47 flatFld[celli] =
fld[celli];
56 -
fld.mesh().nInternalFaces()
61 flatFld[nCompact++] = pfld[i];
69 stencilFld.setSize(stencil.size());
73 const labelList& compactCells = stencil[facei];
75 stencilFld[facei].
setSize(compactCells.size());
79 stencilFld[facei][i] = flatFld[compactCells[i]];
99 collectData(map, stencil,
fld, stencilFld);
108 mesh.time().timeName(),
121 for (label facei = 0; facei <
mesh.nInternalFaces(); facei++)
123 const List<Type>& stField = stencilFld[facei];
128 sf[facei] += stField[i]*stWeight[i];
135 Boundary& bSfCorr = sf.boundaryFieldRef();
143 label facei = pSfCorr.
patch().start();
147 const List<Type>& stField = stencilFld[facei];
152 pSfCorr[i] += stField[j]*stWeight[j];
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
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.
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.
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
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.
const fvPatch & patch() const
Return patch.
void setSize(const label newSize)
Alias for resize(const label)
virtual bool coupled() const
Return true if this patch field is coupled.
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.