Go to the documentation of this file.
41 const DimensionedField<Type, volMesh>& df
47 io.registerObject(
false);
49 auto tfield = tmp<GeometricField<Type, fvPatchField, volMesh>>
::New
53 dimensioned<Type>(df.dimensions(),
Zero),
54 zeroGradientFvPatchField<Type>::typeName
56 tfield.
ref().primitiveFieldRef() = df;
57 tfield.
ref().oriented() = df.oriented();
58 tfield.
ref().correctBoundaryConditions();
72 auto tfield = zeroGradientField<Type>(df);
99 auto tfield = zeroGradientField<Type>(tproxied());
107 auto tfield = zeroGradientField<Type>(tdf());
118 template<
class GeoField>
130 tfield.
ref().checkOut();
131 tfield.
ref().rename(
fld.name());
139 template<
class GeoField>
169 return interpolateInternal(subsetter_, df);
180 return interpolateInternal(subsetter_, tdf);
184 template<
class GeoField>
192 template<
class GeoField>
void clear() const noexcept
A class for managing temporary objects.
Given the original mesh and the list of selected cells, it creates the mesh consisting only of the de...
static constexpr const zero Zero
static tmp< GeometricField< Type, fvPatchField, volMesh > > interpolateInternal(const fvMeshSubset &subsetter, const DimensionedField< Type, volMesh > &df)
static tmp< GeoField > interpolate(const fvMeshSubset &subsetter, const GeoField &fld)
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
static tmp< GeometricField< Type, fvPatchField, volMesh > > zeroGradientField(const DimensionedField< Type, volMesh > &df)
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))
bool hasSubMesh() const noexcept
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
static tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &, const fvMesh &sMesh, const labelUList &patchMap, const labelUList &cellMap, const labelUList &faceMap, const bool allowUnmapped=false)
bool valid() const noexcept
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...