29 template<
class GeoField>
32 const HashPtrTable<GeoField,
label, Hash<label>>&
fields,
37 const GeoField& field0 = *(*
fields.begin());
44 "uniformInterpolate(" + field0.name() +
')',
45 weights[0]*(*
fields[indices[0]])
48 GeoField&
fld = tfld();
50 for (
label i = 1; i < indices.size(); ++i)
59 template<
class GeoField>
62 const IOobject& fieldIO,
63 const word& fieldName,
66 const objectRegistry& fieldsCache
70 const objectRegistry& time0Fields = fieldsCache.lookupObject
77 const GeoField& field0 = time0Fields.lookupObject
87 tmp<GeoField> tfld(
GeoField::New(fieldIO.name(), weights[0]*field0));
88 GeoField&
fld = tfld.ref();
90 for (
label i = 1; i < times.size(); ++i)
92 const objectRegistry& timeIFields = fieldsCache.lookupObject
99 const GeoField& fieldi = timeIFields.lookupObject
107 fld += weights[i]*fieldi;
114 template<
class GeoField>
117 const IOobject& fieldIO,
118 const word& fieldName,
121 const word& registryName
124 return uniformInterpolate<GeoField>
130 fieldIO.db().subRegistry(registryName,
true)
A class for managing temporary objects.
volScalarField scalarField(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))
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
List< word > wordList
A List of words.
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< GeoField > uniformInterpolate(const HashPtrTable< GeoField, label, Hash< label >> &fields, const labelList &indices, const scalarField &weights)
Interpolate selected fields (given by indices and corresponding weights)