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),
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>
static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
static tmp< DimensionedField< Type, volMesh > > interpolate(const DimensionedField< Type, volMesh > &, const fvMesh &sMesh, const labelUList &cellMap)
Map volume internal (dimensioned) field.
bool valid() const noexcept
Identical to good(), or bool operator.
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
bool hasSubMesh() const noexcept
Have subMesh?
Ignore writing from objectRegistry::writeObject()
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.
Holds a reference to the original mesh (the baseMesh) and optionally to a subset of that mesh (the su...
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))
static tmp< GeometricField< Type, fvPatchField, volMesh > > zeroGradientField(const DimensionedField< Type, volMesh > &df)
Construct volField (with zeroGradient) from an internal field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void clear() const noexcept
If object pointer points to valid object: delete object and set pointer to nullptr.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)