8 #include <Eigen/StdVector> 62 void writeMeshTopology(std::vector<Node>& nodes, std::vector<Element*>& elements);
Mesh mesh
Reference to Mesh object containg mesh data.
Definition: ResultWriter.h:151
Contains mesh data for massive analysis. Performs stress analysis on this mesh.
Definition: Mesh.h:21
Writes results to file for massive analysis.
Definition: ResultWriter.h:19
void writePointVectorData(std::string name, MatrixXd data)
Writes vector data to the result VTK file.
Definition: ResultWriter.cpp:170
bool openTXT()
Opens a .txt file.
Definition: ResultWriter.cpp:312
bool writeSTL
Boolean that decides wether to write regular VTK format or STL format.
Definition: ResultWriter.h:30
static const int extraVTKNodes
Number of extra nodes used for displaying VTK glyphs.
Definition: ResultWriter.h:153
void writePointScalarData(std::string name, MatrixXd data)
Writes scalar data to the result VTK file.
Definition: ResultWriter.cpp:155
void writeMeshTopology(std::vector< Node > &nodes, std::vector< Element * > &elements)
Writes the mesh topology to the result file (all points and polygons needed to represent the cross-se...
Definition: ResultWriter.cpp:45
void writeMeshSTLTopology(std::vector< Node > &nodes, std::vector< Element * > &elements)
Writes the mesh stl topology to the result file (all points and polygons needed to represent the cros...
Definition: ResultWriter.cpp:90
void writeCoordinateSystem(std::string name, int size)
Applies a coordinate system made of VTK glyphs over the result file.
Definition: ResultWriter.cpp:191
void createTextFile(std::string fileNameNoExt)
Creates a .txt file.
Definition: ResultWriter.cpp:226
std::string fileName
File name of file to write results with folder extension.
Definition: ResultWriter.h:152
void save()
Closes the file.
Definition: ResultWriter.cpp:33
bool open()
Opens the file given by the filename.
Definition: ResultWriter.cpp:23
void writeVtkHeader()
writes the header for the .vtk file
Definition: ResultWriter.cpp:38
ResultWriter(std::string fileName, Mesh mesh)
Constructor taking the filename and mesh as parameters.
Definition: ResultWriter.cpp:12
void writeShearCenter(std::string name, int size)
Applies a VTK box glyph at the shear center.
Definition: ResultWriter.cpp:209