30 template<
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();
76 template<
class PatchType>
87 getFaceField(
field, faceAddr)()
92 template<
class PatchType>
102 field.primitiveField()
Write concrete PrimitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk fil...
void size(const label n)
Older name for setAddressableSize.
errorManipArg< error, int > exit(error &err, const int errNo=1)
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.
A Foam::vtk::GenericPatchWriter with support for geometric fields.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
const Mesh & mesh() const noexcept
Return mesh.
void write(const GeometricField< Type, fvsPatchField, surfaceMesh > &field, const labelUList &faceAddr)
Write volume-mesh surface field (CellData) from specified mesh faces.
const polyBoundaryMesh & patches
const std::string patch
OpenFOAM patch number as a std::string.
A class for managing temporary objects.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.