30template<
class PatchType>
39 if (this->patch().size() != faceAddr.
size())
42 <<
"Inconsistent sizing: patch has "
43 << this->patch().size() <<
" faces, addressing has "
44 << faceAddr.
size() <<
" faces!" <<
nl
51 auto iter = tfld.ref().begin();
53 for (
const label facei : faceAddr)
55 const label patchi =
patches.whichPatch(facei);
63 const label localFacei = facei -
patches[patchi].start();
76template<
class PatchType>
87 getFaceField(
field, faceAddr)()
92template<
class PatchType>
102 field.primitiveField()
const Mesh & mesh() const
Return mesh.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
void size(const label n)
Older name for setAddressableSize.
virtual bool write()
Write the output fields.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
A class for managing temporary objects.
A Foam::vtk::GenericPatchWriter with support for geometric fields.
Write concrete PrimitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk fil...
const polyBoundaryMesh & patches
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)