56 auto tpfld = tmp<Field<Type>>
::New(size());
57 patchInternalField(
f, this->edgeFaces(), tpfld.ref());
70 patchInternalField(
f, edgeFaces, tpfld.ref());
82 patchInternalField(
f, this->edgeFaces(), pfld);
86 template<
class GeometricField,
class AnyType>
const GeometricField::Patch & patchField(const GeometricField &gf) const
Return the patch field of the GeometricField corresponding to this patch.
void resize(const label len)
Adjust allocated size of list.
virtual label size() const
Patch size is the number of edge labels, but can be overloaded.
Generic GeometricField class.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
faPatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cover...
#define forAll(list, i)
Loop across all elements in list.
Generic templated field type.
const labelUList & edgeFaces() const
Return edge-face addressing.
void patchInternalField(const UList< Type > &f, const labelUList &edgeFaces, Field< Type > &pfld) const
Extract internal field next to patch using edgeFaces mapping.
A class for managing temporary objects.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.