Go to the documentation of this file.
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);
106 mesh.time().timeName(),
124 for (
label faceI = 0; faceI <
mesh.nInternalFaces(); faceI++)
126 const List<Type>& stField = stencilFld[faceI];
131 sf[faceI] += stField[i]*stWeight[i];
138 GeometricBoundaryField& bSfCorr =
sf.boundaryField();
150 const List<Type>& stField = stencilFld[faceI];
155 pSfCorr[i] += stField[j]*stWeight[j];
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_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.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Mesh data needed to do the Finite Volume discretisation.
volScalarField sf(fieldObject, mesh)
label constructSize() const
Constructed data size.
void setSize(const label)
Reset size of List.
const fvPatch & patch() const
Return patch.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Traits class for primitives.
label start() const
Return start label of this patch in the polyMesh face list.
const fvPatch & patch() const
Return patch.
void size(const label)
Override size to be inconsistent with allocated storage.
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.
Generic GeometricField class.
virtual bool coupled() const
Return true if this patch field is coupled.