Go to the documentation of this file.
78 const uint64_t payLoad = vtk::sizeofData<float, 3>(
nPoints);
84 format().writeSize(payLoad);
100 const uint64_t payLoad = vtk::sizeofData<label>(
nPoints);
103 format().writeSize(payLoad);
117 const uint64_t payLoad = vtk::sizeofData<label>(
nPoints);
120 format().writeSize(payLoad);
133 format().beginPointData();
138 const uint64_t payLoad = vtk::sizeofData<float, 3>(
nPoints);
140 format().beginDataArray<float, 3>(
"forces");
141 format().writeSize(payLoad);
152 const uint64_t payLoad = vtk::sizeofData<float, 3>(
nPoints);
154 format().beginDataArray<float, 3>(
"moments");
155 format().writeSize(payLoad);
209 const uint64_t payLoad = vtk::sizeofData<float, 3>(pp.
nPoints());
215 format().writeSize(payLoad);
232 for (
const face&
f : pp)
237 const uint64_t payLoad = vtk::sizeofData<label>(nVerts);
240 format().writeSize(payLoad);
242 for (
const face&
f : pp.localFaces())
255 const uint64_t payLoad = vtk::sizeofData<label>(pp.size());
258 format().writeSize(payLoad);
263 const face&
f = pp[facei];
280 const uint64_t payLoad = vtk::sizeofData<label>(pp.size());
283 format().writeSize(payLoad);
351 const uint64_t payLoad = vtk::sizeofData<float, 3>(pp.
nPoints());
367 format().writeSize(payLoad);
385 for (
const face&
f : pp)
390 const uint64_t payLoad = vtk::sizeofData<label>(nVerts);
393 format().writeSize(payLoad);
395 for (
const face&
f : pp.localFaces())
408 const uint64_t payLoad = vtk::sizeofData<label>(pp.size());
411 format().writeSize(payLoad);
414 for (
const face&
f : pp)
vectorField pointField
pointField is a vectorField.
A class for handling file names.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
A class for managing temporary objects.
XML inline ASCII, asciiFormatter.
const Field< PointType > & localPoints() const
Return pointField of points in patch.
void writeIdentity(vtk::formatter &fmt, const label len, label start=0)
Write an identity list of labels.
void writeVTP(const fileName &file, const polyMesh &mesh, const labelUList &patchIds, const pointField &points0) const
Write displaced geometry according to the current state,.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
const pointField & points() const
The points corresponding to mass centres.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
The state of lumped points corresponds to positions and rotations.
word format(conversionProperties.get< word >("format"))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const vector & axis() const
The normalized reference axis.
A patch is a list of labels that address the faces in the global face list.
void writeZonesVTP(const fileName &file, const polyMesh &mesh, const pointField &points0) const
Write pressure-zones geometry, write as VTK PolyData format.
void writeForcesAndMomentsVTP(const fileName &file, const UList< vector > &forces, const UList< vector > &moments) const
Write forces on points as VTK PolyData format.
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
label nPoints() const
Return number of points supporting patch faces.
const lumpedPointState & state() const
The current state (positions/rotations)
Output to file stream, using an OSstream.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
pointField points0(pointIOField(IOobject("points", mesh.time().constant(), polyMesh::meshSubDir, mesh, IOobject::MUST_READ, IOobject::NO_WRITE, false)))
virtual const faceList & faces() const
Return raw faces.
virtual std::ostream & stdStream()
Access to underlying std::ostream.
void writeStateVTP(const fileName &file) const
Write state as VTK PolyData format.
void writeVTP(const fileName &outputFile, const vector &axis) const
Output as VTK file for debugging/visualization.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
A List with indirect addressing.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
autoPtr< vtk::formatter > newFormatter(std::ostream &os, unsigned prec=IOstream::defaultPrecision())
Return a default asciiFormatter.
A face is a list of labels corresponding to mesh vertices.
const labelList & meshPoints() const
Return labelList of mesh points in patch.
A list of faces which address into the list of points.