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

Contains the main function and initializes MSHParser (LineParser), Mesh (LineMesh), and lastly ResultWriter (LineResultWriter). More...

#include <Solver.h>

Public Member Functions

 Solver (std::string fileName, Material mat, bool massive, int extraLineSegments)
 Constructor. More...
 

Private Member Functions

void saveResults (Mesh)
 Saves result files The results are written to file by using the ResultWriter. More...
 
void createResultVectors (Mesh mesh, ResultWriter VTK)
 Creates result vectors, to comply with paraview. More...
 
void removeFolderDesignation ()
 Removes the folder designation from the fileName.
 

Private Attributes

std::string fileNameNoExt
 
bool massive
 < Filename excluding file ending. More...
 

Detailed Description

Contains the main function and initializes MSHParser (LineParser), Mesh (LineMesh), and lastly ResultWriter (LineResultWriter).

Constructor & Destructor Documentation

Solver::Solver ( std::string  fileName,
Material  mat,
bool  massive,
int  extraLineSegments 
)

Constructor.

Parameters
fileNameis the file name of the .msh file
matis the material used for the mesh
massivemassive boolean to determine if massive or thin-wall cross-section is inputted
extraLineSegmentsint to define the number of extra line segments per line element for thin-wall analysis. Quadratic stress distributions adepends on this value.

Member Function Documentation

void Solver::createResultVectors ( Mesh  mesh,
ResultWriter  VTK 
)
private

Creates result vectors, to comply with paraview.

Parameters
meshcontains the stored results
VTKthe resultwriter that will output the results
void Solver::saveResults ( Mesh  mesh)
private

Saves result files The results are written to file by using the ResultWriter.

Parameters
meshcontains the stored results

Member Data Documentation

bool Solver::massive
private

< Filename excluding file ending.

Boolean for running either massive or thin-walled cross-section analysis


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