41 const label len = this->
size();
45 for (label i = 0; i < len; ++i)
47 pfld[i] = internalData[addressing[i]];
55 const UList<Type>& internalData,
59 patchInternalField(internalData, this->edgeFaces(), pfld);
70 patchInternalField(internalData, this->edgeFaces(), tpfld.ref());
75 template<
class GeometricField,
class AnyType>
const GeometricField::Patch & patchField(const GeometricField &gf) const
Return the patch field of the GeometricField corresponding to this patch.
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.
virtual label size() const
Patch size is the number of edge labels, but can be overloaded.
void resize_nocopy(const label len)
Adjust allocated size of list without necessarily.
Generic GeometricField class.
Generic templated field type.
void patchInternalField(const UList< Type > &internalData, const labelUList &addressing, Field< Type > &pfld) const
Extract internal field next to patch using specified addressing.
PatchField< Type > Patch
The patch field type for the GeometricBoundaryField.
A class for managing temporary objects.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.