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,
95template<
class GeometricField,
class AnyType>
Generic GeometricField class.
PatchField< Type > Patch
The patch field type for the GeometricBoundaryField.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void size(const label n)
Older name for setAddressableSize.
virtual label size() const
Patch size is the number of edge labels, but can be overloaded.
const GeometricField::Patch & patchField(const GeometricField &gf) const
Return the patch field of the GeometricField corresponding to this patch.
const labelUList & edgeFaces() const
Return edge-face addressing.
void patchInternalField(const UList< Type > &internalData, const labelUList &addressing, UList< Type > &pfld) const
Extract internal field next to patch using specified addressing.
label index() const noexcept
The index of this patch in the boundaryMesh.
A class for managing temporary objects.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
UList< label > labelUList
A UList of labels.
constexpr char nl
The newline '\n' character (0x0a).
#define FOAM_UNLIKELY(cond)