50 if (label nLines = controllers_.size(); nLines > 0)
55 for (
const word& ctrlName : controllers_.sortedToc())
57 lines[nLines] = controllers_[ctrlName]->pointLabels();
74 writeStateVTP(state(), file);
138 const fileName& file,
139 const polyMesh&
mesh,
156 const labelList& faceToPoint = patchControls_[patchi].faceToPoint_;
176 const fileName& file,
177 const polyMesh&
mesh,
210 const pointPatch& ptPatch = ptMesh.boundary()[patchi];
231 = patchControls_[patchi].interp_;
241 intData[i] = interpList[i].nearest();
247 intData[i] = interpList[i].next1();
254 intData[i] = interpList[i].next2();
265 floatData[i] = interpList[i].weight0();
271 floatData[i] = interpList[i].weight1();
277 floatData[i] = interpList[i].weight2();
List< scalar > scalarList
List of scalar.
const List< face_type > & localFaces() const
Return patch faces addressing into local point list.
void size(const label n)
Older name for setAddressableSize.
const pointField & points() const noexcept
The points corresponding to mass centres.
A class for handling file names.
virtual bool writeGeometry()
Write vertex topology.
const Field< point_type > & localPoints() const
Return pointField of points in patch.
void resize(const label len)
Adjust allocated size of list.
void writeStateVTP(const lumpedPointState &state, const fileName &file) const
Write state as VTK PolyData format.
void writePointData(const word &fieldName, const UList< Type > &field)
Write primitive field of PointData.
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
static const Field< vector > & null() noexcept
Return a null Field (reference to a nullObject). Behaves like an empty Field.
T & first()
Access first element of the list, position [0].
void writeZonesVTP(const fileName &file, const polyMesh &mesh, const pointField &points0) const
Write pressure-zones geometry, write as VTK PolyData format.
void write(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData or PointData values (size depending on the current context)...
XML inline ASCII, asciiFormatter.
Mesh representing a set of points created from polyMesh.
#define forAll(list, i)
Loop across all elements in list.
void writeCellData(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData.
vectorField pointField
pointField is a vectorField.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
A class for handling words, derived from Foam::string.
virtual bool beginCellData(label nFields=0)
Begin CellData output section for specified number of fields.
bool endCellData()
Explicitly end CellData output and switch to PIECE state.
bool endPointData()
Explicitly end PointData output and switch to PIECE state.
void writeVTP(const fileName &file, const polyMesh &mesh, const pointField &points0) const
Write displaced geometry according to the current state,.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A polyBoundaryMesh is a polyPatch list with registered IO, a reference to the associated polyMesh...
void writeUniform(const word &fieldName, const Type &val)
Write a uniform field of CellData or PointData (depending on the current context).
PrimitivePatch< SubList< face >, const pointField & > primitivePatch
A PrimitivePatch with a SubList addressing for the faces, const reference for the point field...
void writeForcesAndMomentsVTP(const fileName &file, const UList< vector > &forces, const UList< vector > &moments) const
Write forces on points as VTK PolyData format.
pointField points0(pointIOField(IOobject("points", mesh.time().constant(), polyMesh::meshSubDir, mesh, IOobject::MUST_READ, IOobject::NO_WRITE, IOobject::NO_REGISTER)))
void piece(const pointField &points)
Reset point references to begin a new piece.
const lumpedPointState & state() const
The current state (positions/rotations)
Basic pointPatch represents a set of points from the mesh.
const polyBoundaryMesh & patches
static bool master(label communicator=worldComm)
True if process corresponds to the master rank in the communicator.
Mesh consisting of general polyhedral cells.
vtk::vertexWriter writer(edgeCentres, outputOpts,(aMesh.time().globalPath()/outputName), UPstream::parRun())
List< label > labelList
A List of labels.
A class for managing temporary objects.
A patch is a list of labels that address the faces in the global face list.
label size() const noexcept
The number of points.
static const List< face > & null() noexcept
Return a null List (reference to a nullObject). Behaves like an empty List.
virtual bool beginPointData(label nFields=0)
Begin PointData for specified number of fields.
void writeVTP(const fileName &outputFile, const labelListList &lines=labelListList(), const labelList &pointIds=labelList::null()) const
Output points/rotations as VTK file for debugging/visualization.
The state of lumped points corresponds to positions and rotations.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i), works like std::iota() but returning a...
A topoSetPointSource to select all points based on usage in given faceSet(s).