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
Global zero (0)
static tmp< GeometricField< Type, fvPatchField, volMesh > > interpolateInternal(const fvMeshSubset &subsetter, const DimensionedField< Type, volMesh > &df)
Convert an internal field to a volume field (with zeroGradient)
static tmp< GeoField > interpolate(const fvMeshSubset &subsetter, const GeoField &fld)
Wrapper for field or the subsetted field.
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)
Construct volField (with zeroGradient) from an internal field.
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))
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
static tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &, const fvMesh &sMesh, const labelUList &patchMap, const labelUList &cellMap, const labelUList &faceMap)
Map volume field.
bool valid() const noexcept
bool hasSubMesh() const
Have subMesh?
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...