47 const label len = pfld.
size();
53 <<
"patchField size = " << len
54 <<
" but patch size = " << this->
size()
55 <<
" and addressing size = " << addressing.
size() <<
nl 60 for (label i = 0; i < len; ++i)
62 pfld[i] = internalData[addressing[i]];
70 const UList<Type>& internalData,
79 patchInternalField(internalData, this->edgeFaces(), pfld);
90 patchInternalField(internalData, this->edgeFaces(), tpfld.ref());
95 template<
class GeometricField,
class AnyType>
void size(const label n)
Older name for setAddressableSize.
const GeometricField::Patch & patchField(const GeometricField &gf) const
Return the patch field of the GeometricField corresponding to this patch.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
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.
Generic GeometricField class.
#define FOAM_UNLIKELY(cond)
errorManip< error > abort(error &err)
void patchInternalField(const UList< Type > &internalData, const labelUList &addressing, UList< 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.