Go to the documentation of this file.
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()
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
A class for managing temporary objects.
Write concrete PrimitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk fil...
A Foam::vtk::GenericPatchWriter with support for geometric fields.
void write(const GeometricField< Type, fvsPatchField, surfaceMesh > &field, const labelUList &faceAddr)
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
const polyBoundaryMesh & patches
void size(const label n)
Older name for setAddressableSize.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.