#include <InteractionVTKWriter.h>
◆ InteractionVTKWriter() [1/2]
Non-default constructor; sets the handler and fileCounter.
BaseVTKWriter(InteractionHandler &handler)
Definition: BaseVTKWriter.h:44
◆ InteractionVTKWriter() [2/2]
Default copy constructor.
◆ getName()
std::string InteractionVTKWriter::getName |
( |
| ) |
const |
|
inline |
the name of the class in the restart file
59 return "InteractionVTKWriter";
◆ writeVTK()
void InteractionVTKWriter::writeVTK |
( |
| ) |
const |
|
overridevirtual |
◆ writeVTKPointData()
void InteractionVTKWriter::writeVTKPointData |
( |
std::fstream & |
file | ) |
const |
|
protected |
writes the point data to the vtu file (i.e. options how to color the interactions displayed in paraview)
54 file <<
" <DataArray type=\"Float32\" Name=\"Normal\" NumberOfComponents=\"3\" format=\"ascii\">\n";
58 file <<
'\t' << p->getNormal() <<
'\n';
60 file <<
" </DataArray>\n";
61 file <<
" <DataArray type=\"Float32\" Name=\"Overlap\" format=\"ascii\">\n";
66 file <<
'\t' << p->getOverlap() <<
'\n';
68 file <<
" </DataArray>\n";
69 file <<
" <DataArray type=\"Float32\" Name=\"ContactRadius\" format=\"ascii\">\n";
74 file <<
'\t' << p->getContactRadius() <<
'\n';
76 file <<
" </DataArray>\n";
77 file <<
" <DataArray type=\"Float32\" Name=\"Force\" NumberOfComponents=\"3\" format=\"ascii\">\n";
82 file <<
'\t' << p->getForce() <<
'\n';
84 file <<
" </DataArray>\n";
85 file <<
" <DataArray type=\"Float32\" Name=\"TangentialOverlap\" format=\"ascii\">\n";
90 file <<
'\t' << p->getTangentialOverlap() <<
'\n';
92 file <<
" </DataArray>\n";
93 file <<
" <DataArray type=\"Float32\" Name=\"Torque\" NumberOfComponents=\"3\" format=\"ascii\">\n";
98 file <<
'\t' << p->getTorque() <<
'\n';
100 file <<
" </DataArray>\n";
112 for (
auto f : p->getFieldVTK(
i))
113 file <<
'\t' << f <<
'\n';
115 file <<
" </DataArray>\n";
unsigned int getSize() const
Gets the size of the particleHandler (including mpi and periodic particles)
Definition: BaseHandler.h:655
T * getLastObject()
Gets a pointer to the last Object in this BaseHandler.
Definition: BaseHandler.h:634
virtual std::string getTypeVTK(unsigned i) const
Definition: BaseInteraction.cc:883
virtual std::string getNameVTK(unsigned i) const
Definition: BaseInteraction.cc:888
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51
References BaseHandler< T >::getLastObject(), BaseInteraction::getNameVTK(), BaseHandler< T >::getSize(), BaseInteraction::getTypeVTK(), BaseVTKWriter< InteractionHandler >::handler_, and constants::i.
Referenced by writeVTK().
◆ writeVTKPoints()
void InteractionVTKWriter::writeVTKPoints |
( |
std::fstream & |
file | ) |
const |
|
protected |
writes the point data to the vtu file (i.e. the vertices of the mesh displayed in paraview)
44 file <<
" <DataArray type=\"Float32\" Name=\"Position\" NumberOfComponents=\"3\" format=\"ascii\">\n";
47 file <<
'\t' << p->getContactPoint() <<
'\n';
49 file <<
" </DataArray>\n";
References BaseVTKWriter< InteractionHandler >::handler_.
Referenced by writeVTK().
The documentation for this class was generated from the following files: