Go to the documentation of this file.
51 label nLines = controllers_.size();
58 for (
const word& ctrlName : controllers_.sortedToc())
60 lines[nLines] = controllers_[ctrlName]->pointLabels();
77 writeStateVTP(state(), file);
122 const uint64_t payLoad = vtk::sizeofData<float, 3>(
nPoints);
128 format().writeSize(payLoad);
144 const uint64_t payLoad = vtk::sizeofData<label>(
nPoints);
147 format().writeSize(payLoad);
161 const uint64_t payLoad = vtk::sizeofData<label>(
nPoints);
164 format().writeSize(payLoad);
177 format().beginPointData();
182 const uint64_t payLoad = vtk::sizeofData<float, 3>(
nPoints);
184 format().beginDataArray<float, 3>(
"forces");
185 format().writeSize(payLoad);
196 const uint64_t payLoad = vtk::sizeofData<float, 3>(
nPoints);
198 format().beginDataArray<float, 3>(
"moments");
199 format().writeSize(payLoad);
250 writer.writeUniform(
"patchId", patchi);
260 const fileName& file,
261 const polyMesh&
mesh,
294 const pointPatch& ptPatch = ptMesh.boundary()[patchi];
308 writer.writeUniform(
"patchId", patchi);
315 = patchControls_[patchi].interp_;
325 intData[i] = interpList[i].nearest();
327 writer.write(
"nearest", intData);
331 intData[i] = interpList[i].next1();
333 writer.write(
"next1", intData);
338 intData[i] = interpList[i].next2();
340 writer.write(
"next2", intData);
349 floatData[i] = interpList[i].weight0();
351 writer.write(
"weight", floatData);
355 floatData[i] = interpList[i].weight1();
357 writer.write(
"weight1", floatData);
361 floatData[i] = interpList[i].weight2();
363 writer.write(
"weight2", floatData);
vectorField pointField
pointField is a vectorField.
List< scalar > scalarList
A List of scalars.
const pointBoundaryMesh & boundary() const
static const List< T > & null()
A class for handling words, derived from Foam::string.
A class for handling file names.
void resize(const label len)
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
A class for managing temporary objects.
@ INLINE_ASCII
XML inline ASCII, asciiFormatter.
A List obtained as a section of another List.
void writeIdentity(vtk::formatter &fmt, const label len, label start=0)
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const =0
static bool master(const label communicator=worldComm)
const polyBoundaryMesh & boundaryMesh() const
const pointField & points() const
void writeStateVTP(const lumpedPointState &state, const fileName &file) const
Basic pointPatch represents a set of points from the mesh.
Mesh consisting of general polyhedral cells.
The state of lumped points corresponds to positions and rotations.
word format(conversionProperties.get< word >("format"))
Generic templated field type.
A patch is a list of labels that address the faces in the global face list.
@ NUMBER_OF_POINTS
"NumberOfPoints"
void writeZonesVTP(const fileName &file, const polyMesh &mesh, const pointField &points0) const
void writeForcesAndMomentsVTP(const fileName &file, const UList< vector > &forces, const UList< vector > &moments) const
void writeVTP(const fileName &file, const polyMesh &mesh, const pointField &points0) const
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
void writeVTP(const fileName &outputFile, const labelListList &lines=labelListList(), const labelList &pointIds=labelList::null()) const
OBJstream os(runTime.globalPath()/outputName)
Base class for graphics format writing. Entry points are.
const List< face_type > & localFaces() const
Mesh representing a set of points created from polyMesh.
const lumpedPointState & state() const
const Field< point_type > & localPoints() const
Output to file stream, using an OSstream.
virtual std::ostream & stdStream()
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
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
labelList identity(const label len, label start=0)
const polyBoundaryMesh & patches
@ CONNECTIVITY
"connectivity"
@ NUMBER_OF_VERTS
"NumberOfVerts"
autoPtr< vtk::formatter > newFormatter(std::ostream &os, unsigned prec=IOstream::defaultPrecision())
vtk::internalMeshWriter writer(topoMesh, topoCells, vtk::formatType::INLINE_ASCII, runTime.path()/"blockTopology")
A topoSetPointSource to select all points based on usage in given faceSet(s).
static const Field< Type > & null()
A list of faces which address into the list of points.