56 tfield.ref().primitiveFieldRef() = df;
58 tfield.ref().correctBoundaryConditions();
72 auto tfield = zeroGradientField<Type>(df);
99 auto tfield = zeroGradientField<Type>(tproxied());
107 auto tfield = zeroGradientField<Type>(tdf());
118template<
class GeoField>
130 tfield.ref().checkOut();
131 tfield.ref().rename(
fld.name());
139template<
class GeoField>
169 return interpolateInternal(subsetter_, df);
180 return interpolateInternal(subsetter_, tdf);
184template<
class GeoField>
192template<
class GeoField>
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
const Mesh & mesh() const
Return mesh.
const orientedType & oriented() const noexcept
Return oriented type.
Generic GeometricField class.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
readOption readOpt() const noexcept
The read option.
bool registerObject() const noexcept
Should object created with this IOobject be registered?
writeOption writeOpt() const noexcept
The write option.
Generic dimensioned Type class.
static tmp< GeometricField< Type, fvPatchField, volMesh > > zeroGradientField(const DimensionedField< Type, volMesh > &df)
Construct volField (with zeroGradient) from an internal field.
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)
Holds a reference to the original mesh (the baseMesh) and optionally to a subset of that mesh (the su...
static tmp< DimensionedField< Type, volMesh > > interpolate(const DimensionedField< Type, volMesh > &, const fvMesh &sMesh, const labelUList &cellMap)
Map volume internal (dimensioned) field.
bool hasSubMesh() const noexcept
Have subMesh?
bool interpolate() const noexcept
Same as isPointData()
A class for managing temporary objects.
void clear() const noexcept
bool valid() const noexcept
Identical to good(), or bool operator.
This boundary condition applies a zero-gradient condition from the patch internal field onto the patc...
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
static constexpr const zero Zero
Global zero (0)
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.