61 const labelUList& faceCells = this->faceCells();
65 pif[facei] =
f[faceCells[facei]];
70 template<
class GeometricField,
class Type>
80 template<
class GeometricField,
class Type>
90 template<
class GeometricField,
class Type>
96 return patchField<GeometricField, Type>
98 db().
template lookupObject<GeometricField>(
name)
113 const bool haveVf = db().template foundObject<volFieldType>(
name);
114 const bool haveSf = db().template foundObject<surfaceFieldType>(
name);
116 if (!haveVf && !haveSf)
121 <<
" from objectRegistry " << db().name()
122 <<
" failed\n available objects of type "
124 << db().toc<volFieldType>()
125 <<
"\n available objects of type "
127 << db().toc<surfaceFieldType>()
143 const volFieldType& vf =
144 db().template lookupObject<volFieldType>(
name);
153 vf.boundaryField()[index()]
160 const surfaceFieldType&
sf =
161 db().template lookupObject<surfaceFieldType>(
name);
#define forAll(list, i)
Loop across all elements in list.
const dimensionSet & dimensions() const
Return dimensions.
Pre-declare SubField and related Field type.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
GeoMesh::template PatchField< Type > Patch
Type of the patch field of which the Boundary is composed.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void setSize(const label)
Reset size of List.
Specialisation of DimensionedField which holds a slice of a given complete field in such a form that ...
virtual label size() const
Return size.
const GeometricField::Patch & patchField(const GeometricField &) const
Return the corresponding patchField of the named field.
tmp< Field< Type > > patchInternalField(const UList< Type > &) const
Return given internal field next to patch as patch field.
tmp< DimensionedField< Type, fvPatch > > lookupField(const word &) const
Lookup a dimensioned field for this geometry.
virtual const labelUList & faceCells() const
Return faceCells.
const GeometricField::Patch & lookupPatchField(const word &name) const
Lookup and return the patchField of the named field from the.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
volScalarField sf(fieldObject, mesh)
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
errorManip< error > abort(error &err)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.