33#ifndef createZeroField_H
34#define createZeroField_H
42autoPtr<GeometricField<Type, fvPatchField, volMesh>>
48 bool printAllocation =
false
76autoPtr<typename GeometricField<Type, fvPatchField, volMesh>::Boundary>
80 bool printAllocation =
false
85 Info<<
"Allocating new boundaryField " <<
nl <<
endl;
97 forAll(actualPatchTypes, pI)
99 auto patchTypeCstrIter =
101 if (patchTypeCstrIter.found())
103 actualPatchTypes[pI] = bm[pI].type();
119 Boundary& bRef = bPtr();
130autoPtr<List<Field<Type>>>
134 bool printAllocation =
false
139 Info<<
"Allocating new point boundaryField " <<
nl <<
endl;
Generic templated field type.
Generic GeometricBoundaryField class.
Generic GeometricField class.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static word timeName(const scalar t, const int precision=precision_)
label size() const noexcept
The number of elements in the list.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
This boundary condition is not designed to be evaluated; it is assmued that the value is assigned via...
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
const Time & time() const
Return the top-level database.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
A class for handling words, derived from Foam::string.
messageStream Info
Information stream (stdout output on master, null elsewhere)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
autoPtr< GeometricField< Type, fvPatchField, volMesh > > createZeroFieldPtr(const fvMesh &mesh, const word &name, const dimensionSet dims, bool printAllocation=false)
autoPtr< List< Field< Type > > > createZeroBoundaryPointFieldPtr(const fvMesh &mesh, bool printAllocation=false)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
autoPtr< typename GeometricField< Type, fvPatchField, volMesh >::Boundary > createZeroBoundaryPtr(const fvMesh &mesh, bool printAllocation=false)
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.
A non-counting (dummy) refCount.