Go to the documentation of this file.
33 #ifndef createZeroField_H
34 #define createZeroField_H
42 autoPtr<GeometricField<Type, fvPatchField, volMesh>>
48 bool printAllocation =
false
76 autoPtr<typename GeometricField<Type, fvPatchField, volMesh>::Boundary>
80 bool printAllocation =
false
85 Info<<
"Allocating new boundaryField " <<
nl <<
endl;
102 Boundary& bRef = bPtr();
113 autoPtr<List<Field<Type>>>
117 bool printAllocation =
false
122 Info<<
"Allocating new point boundaryField " <<
nl <<
endl;
autoPtr< GeometricField< Type, fvPatchField, volMesh > > createZeroFieldPtr(const fvMesh &mesh, const word &name, const dimensionSet dims, bool printAllocation=false)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
Global zero (0)
autoPtr< typename GeometricField< Type, fvPatchField, volMesh >::Boundary > createZeroBoundaryPtr(const fvMesh &mesh, bool printAllocation=false)
static word timeName(const scalar t, const int precision=precision_)
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Dimension set for the base types.
#define forAll(list, i)
Loop across all elements in list.
Generic templated field type.
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
Generic dimensioned Type class.
autoPtr< List< Field< Type > > > createZeroBoundaryPointFieldPtr(const fvMesh &mesh, bool printAllocation=false)
Mesh data needed to do the Finite Volume discretisation.
This boundary condition is not designed to be evaluated; it is assmued that the value is assigned via...
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Traits class for primitives.
const Time & time() const
Return the top-level database.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.