Go to the documentation of this file.
31 template<
class Type,
class WeightType>
42 const mapDistribute& map,
44 const GeometricField<Type, fvPatchField, volMesh>&
fld,
49 typedef GeometricField<WeightedType, fvPatchField, volMesh>
52 const fvMesh&
mesh =
fld.mesh();
58 tmp<WeightedFieldType> twf
65 mesh.time().timeName(),
69 dimensioned<WeightedType>
73 pTraits<WeightedType>::zero
77 WeightedFieldType& wf = twf();
86 wf[celli] += stWeight[i]*stField[i];
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
static tmp< GeometricField< typename outerProduct< WeightType, Type >::type, fvPatchField, volMesh > > weightedSum(const mapDistribute &map, const labelListList &stencil, const GeometricField< Type, fvPatchField, volMesh > &fld, const List< List< WeightType > > &stencilWeights)
Sum surface field contributions to create cell values.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
Mesh data needed to do the Finite Volume discretisation.
typeOfRank< typename pTraits< arg1 >::cmptType, int(pTraits< arg1 >::rank)+int(pTraits< arg2 >::rank) >::type type
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))
List< labelList > labelListList
A List of labelList.
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.