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

Writes results to file. 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 createSigmaXResultFile (std::string name, int type)
 Creates a result file for Sigma_x.
 
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 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 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, double scale)
 Scales the result polygons (only visual scaling) based on the highest value.
 
void createTextFile ()
 Creates a .txt file with output values.
 

Public Attributes

double scalingFactor
 Factor that scales the VTK results visually.
 

Detailed Description

Writes results to file.


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