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->
faceCells(), pfld);
90 patchInternalField(internalData, this->
faceCells(), tpfld.ref());
95 template<
class GeometricField,
class AnyType>
void patchInternalField(const UList< Type > &internalData, const labelUList &addressing, UList< Type > &pfld) const
Extract internal field next to patch using specified addressing.
const GeometricField::Patch & patchField(const GeometricField &gf) const
Return the patch field of the GeometricField corresponding to this patch.
void size(const label n)
Older name for setAddressableSize.
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.
Generic GeometricField class.
Smooth ATC in cells next to a set of patches supplied by type.
#define FOAM_UNLIKELY(cond)
errorManip< error > abort(error &err)
virtual label size() const
Patch size is the number of faces, but can be overloaded.
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.