Public Member Functions | Public Attributes | Private Attributes | List of all members
LineResultWriter Class Reference

Writes results to file for thin-wall analysis. More...

#include <LineResultWriter.h>

Public Member Functions

 LineResultWriter (std::string, LineMesh mesh)
 Constructor taking the filename and mesh as parameters.
 
void createOmegaResultFile ()
 Creates a result file for \(\omega\) - diagram.
 
void createSigmaZResultFile (std::string name, int type)
 Creates a result file for \(\sigma_z\).
 
void createTauResultFile (std::string tag, int type)
 Creates a result file for \(\tau\).
 
bool openTXT ()
 Opens the file given by the filename.
 
bool openVTK ()
 Opens the file given by the filename.
 
void save ()
 Closes the file.
 
void writeNormalStress ()
 Writes the normal stresses to the result VTK file.
 
void writeScalarData (std::string, std::vector< double >)
 Writes scalar data.
 
void writeSingleValue (std::string, double)
 Writes single value.
 
void writeBoundaryNodes (int, std::vector< int >)
 Writes the boundary nodes to the VTK result file.
 
void writeVtkHeader ()
 Writes header for VTK result file, with version information.
 
void writeLinearMeshTopology (std::vector< Node > &nodes, std::vector< LineElement * > &elements, std::vector< double > data, std::vector< std::vector< double >> intersectionPoints, std::vector< bool > intersection)
 Writes the mesh topology for linear variation over the element.
 
void writeQuadraticMeshTopology (std::vector< Node > &nodes, std::vector< LineElement * > &elements, std::vector< double > data, std::vector< double > tauData, std::vector< std::vector< double >> intersectionPoints, int type)
 Writes the mesh topology for quadratic variation over the element.
 
void writePointScalarData (std::string name, std::vector< double > data, std::vector< std::vector< double >> intersectionPoints, std::vector< std::vector< double >> midPoints)
 Writes scalar values to result VTK file.
 
void writeQuadraticPointScalarData (std::string name, std::vector< double > data, std::vector< double > extraData, std::vector< std::vector< double >> midPoints)
 Writes quadratic scalar values to result VTK file.
 
void writeQuadraticPointVectorData (std::string name, std::vector< double > data, std::vector< double > extraData, std::vector< std::vector< double >> midPoints)
 Writes quadratic point vector data to result VTK file.
 
void writeLinearPointVectorData (std::string name, std::vector< double > data, std::vector< std::vector< double >> intersectionPoints, std::vector< std::vector< double >> midPoints)
 Writes point vector data to result VTK file.
 
double findScalingFactor (std::vector< double > data)
 Scales the result polygons (only visual scaling) based on the highest numerical value and the area of the mesh.
 
void createTextFile (std::string fileNameNoExt)
 Creates a .txt file with output values.
 

Public Attributes

double scalingFactor
 Factor that scales the VTK results visually.
 

Private Attributes

LineMesh mesh
 Reference to Mesh object containg mesh data.
 
std::string fileName
 File name of file to write results.
 

Detailed Description

Writes results to file for thin-wall analysis.

LineResultwriter is responsible for writing data to file (similar to ResultWriter). It also contains definitions and the structure of results.


The documentation for this class was generated from the following files: