33#ifndef createZeroField_H
34#define createZeroField_H
48 bool printAllocation =
false
63 mesh.time().timeName(),
76autoPtr<typename GeometricField<Type, fvPatchField, volMesh>::Boundary>
80 bool printAllocation =
false
85 Info<<
"Allocating new boundaryField " <<
nl <<
endl;
97 forAll(actualPatchTypes, patchi)
107 actualPatchTypes[patchi] = bm[patchi].type();
123 Boundary& bRef = bPtr();
134autoPtr<List<Field<Type>>>
138 bool printAllocation =
false
143 Info<<
"Allocating new point boundaryField " <<
nl <<
endl;
static const this_type & null() noexcept
Return a null DimensionedField (reference to a nullObject).
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
Generic GeometricField class.
GeometricBoundaryField< Type, PatchField, GeoMesh > Boundary
Type of boundary fields.
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label size() const noexcept
The number of entries in the list.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Generic dimensioned Type class.
A fvBoundaryMesh is a fvPatch list with a reference to the associated fvMesh, with additional search ...
Mesh data needed to do the Finite Volume discretisation.
const fvBoundaryMesh & boundary() const noexcept
Return reference to boundary mesh.
static const word & calculatedType() noexcept
The type name for calculated patch fields.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
A traits class, which is primarily used for primitives and vector-space.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
List< word > wordList
List of word.
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.
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).
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 expressions::valueTypeCode::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.