31 #ifndef _RECORDER_HPP_ 32 #define _RECORDER_HPP_ 39 #include <Eigen/Dense> 61 Recorder(std::string file, std::string name,
unsigned int nparaview,
unsigned int nsample = 1,
unsigned int precision = 10);
72 Recorder(std::string file, std::string name, std::string type, std::vector<unsigned int> index,
unsigned int nsample = 1,
unsigned int precision = 10);
84 Recorder(std::string file, std::string name, std::string type, std::vector<double> coordinates, std::vector<unsigned int> index,
unsigned int nsample = 1,
unsigned int precision = 10);
100 void Initialize(std::shared_ptr<Mesh> &mesh,
unsigned int nsteps);
105 void WriteResponse(std::shared_ptr<Mesh> &mesh,
unsigned int step);
147 std::vector<unsigned int>
IDs;
150 std::map<unsigned int, unsigned int>
Tag;
173 void WriteVTKFiles(std::shared_ptr<Mesh> &mesh,
unsigned int step);
179 std::string
GetSpacedName(std::string theFile, std::string toReplace);
184 void SetThreshold(Eigen::VectorXd &U,
double WinTol=1E-33);
std::map< unsigned int, bool > IsDRMElem
Nodal Local indexes for this partition.
Definition: Recorder.hpp:153
void SetComboName(std::string name)
Sets the combination's name.
unsigned int nSample
The number of sampling points to record the solution.
Definition: Recorder.hpp:132
Class that stores the node, element, and section responses for a given analysis.
Definition: Recorder.hpp:50
unsigned int Counter
The sampling rate counter.
Definition: Recorder.hpp:135
std::string Name
The object name to record solution.
Definition: Recorder.hpp:123
std::string File
The name of the file to record.
Definition: Recorder.hpp:120
std::ofstream OutputFile
Name of the recorder handler.
Definition: Recorder.hpp:156
std::string GetName()
Return the recorder name.
void SetDRMParaviewInterface(std::map< unsigned int, bool > &DRMElems)
Sets the possible DRM Element indexes.
std::string GetSpacedName(std::string theFile, std::string toReplace)
Fix blank spaces provided by user in path.
std::vector< double > Position
Section position at strain/stress is computed.
Definition: Recorder.hpp:144
void WriteSectionResponse(std::shared_ptr< Mesh > &mesh)
Writes section element data to the file.
void WriteResponse(std::shared_ptr< Mesh > &mesh, unsigned int step)
Write information in the recorder.
~Recorder()
Destroys this Recorder object.
unsigned int nParaview
The number of features to be written in paraview.
Definition: Recorder.hpp:138
void WriteVTKFiles(std::shared_ptr< Mesh > &mesh, unsigned int step)
Writes output data in VTK format to the file.
void Finalize()
Finalize the recorder.
This file contains the "Mesh object" declarations, which stores nodes, materials, elements...
unsigned int Precision
The precision for results.
Definition: Recorder.hpp:141
std::vector< unsigned int > IDs
Nodal/Element indexes to be recorded.
Definition: Recorder.hpp:147
std::map< unsigned int, unsigned int > Tag
Nodal Local indexes for this partition.
Definition: Recorder.hpp:150
Recorder(std::string file, std::string name, unsigned int nparaview, unsigned int nsample=1, unsigned int precision=10)
Creates a Recorder object to store Paraview solutions.
void Initialize(std::shared_ptr< Mesh > &mesh, unsigned int nsteps)
Initialize the recorder.
std::string Combo
The name of the LoadCombo.
Definition: Recorder.hpp:126
std::unique_ptr< Recorder > CopyRecorder()
Clone the 'Recorder' object.
std::string Response
The object response to be stored.
Definition: Recorder.hpp:129
void SetThreshold(Eigen::VectorXd &U, double WinTol=1E-33)
Windows patch for small values.
void WriteElementResponse(std::shared_ptr< Mesh > &mesh)
Writes element data to the file.
void WriteNodalResponse(std::shared_ptr< Mesh > &mesh)
Writes state variable data to the file.