Class that stores the node, element, and section responses for a given analysis.
More...
#include <Recorder.hpp>
|
| | 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. More...
|
| |
| | Recorder (std::string file, std::string name, std::string type, std::vector< unsigned int > index, unsigned int nsample=1, unsigned int precision=10) |
| | Creates a Recorder object to store Node / Element solutions. More...
|
| |
| | 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) |
| | Creates a Recorder object to store Section solutions. More...
|
| |
| | ~Recorder () |
| | Destroys this Recorder object. More...
|
| |
| std::unique_ptr< Recorder > | CopyRecorder () |
| | Clone the 'Recorder' object. More...
|
| |
| std::string | GetName () |
| | Return the recorder name. More...
|
| |
| void | Initialize (std::shared_ptr< Mesh > &mesh, unsigned int nsteps) |
| | Initialize the recorder. More...
|
| |
| void | WriteResponse (std::shared_ptr< Mesh > &mesh, unsigned int step) |
| | Write information in the recorder. More...
|
| |
| void | Finalize () |
| | Finalize the recorder. More...
|
| |
| void | SetComboName (std::string name) |
| | Sets the combination's name. More...
|
| |
| void | SetDRMParaviewInterface (std::map< unsigned int, bool > &DRMElems) |
| | Sets the possible DRM Element indexes. More...
|
| |
Class that stores the node, element, and section responses for a given analysis.
- See also
- Node.hpp Element.hpp Section.hpp
◆ Recorder() [1/3]
| Recorder::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.
- Parameters
-
| file | The file name where the results are going to be stored. |
| name | The object name where the response is computed. |
| nparaview | The number of features (for elements) to be written in Paraview. |
| nsample | The number of sampling points to record the solution. |
| precision | The precision number to store the results. |
- Note
- More details can be found at Recorder.
- See also
- Recorder::Path, Recorder::Name, Recorder::Response, Recorder::IDs.
◆ Recorder() [2/3]
| Recorder::Recorder |
( |
std::string |
file, |
|
|
std::string |
name, |
|
|
std::string |
type, |
|
|
std::vector< unsigned int > |
index, |
|
|
unsigned int |
nsample = 1, |
|
|
unsigned int |
precision = 10 |
|
) |
| |
Creates a Recorder object to store Node / Element solutions.
- Parameters
-
| file | The file name where the results are going to be stored. |
| name | The object name where the response is computed. |
| type | The response to be stored. |
| index | The object identifiers that are going to be stored. |
| nsample | The number of sampling points to record the solution. |
| precision | The precision number to store the results. |
- Note
- More details can be found at Recorder.
- See also
- Recorder::Path, Recorder::Name, Recorder::Response, Recorder::IDs.
◆ Recorder() [3/3]
| Recorder::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 |
|
) |
| |
Creates a Recorder object to store Section solutions.
- Parameters
-
| file | The file name where the results are going to be stored. |
| name | The object name where the response is computed. |
| type | The response to be stored. |
| coordinates | The position where the section response will be computed. |
| index | The object identifiers that are going to be stored. |
| nsample | The number of sampling points to record the solution. |
| precision | The precision number to store the results. |
- Note
- More details can be found at Recorder.
- See also
- Recorder::Path, Recorder::Name, Recorder::Response, Recorder::IDs.
◆ ~Recorder()
◆ CopyRecorder()
| std::unique_ptr<Recorder> Recorder::CopyRecorder |
( |
| ) |
|
◆ Finalize()
| void Recorder::Finalize |
( |
| ) |
|
◆ GetName()
| std::string Recorder::GetName |
( |
| ) |
|
Return the recorder name.
- Returns
- Provide a string with the name.
◆ GetSpacedName()
| std::string Recorder::GetSpacedName |
( |
std::string |
theFile, |
|
|
std::string |
toReplace |
|
) |
| |
|
private |
Fix blank spaces provided by user in path.
- Parameters
-
| theFile | String with full path. |
| toReplace | The string pattern to be replaced with. |
- Returns
- String with the replaced pattern.
◆ Initialize()
| void Recorder::Initialize |
( |
std::shared_ptr< Mesh > & |
mesh, |
|
|
unsigned int |
nsteps |
|
) |
| |
Initialize the recorder.
- Parameters
-
| mesh | The finite element Mesh object. |
| nsteps | The number of time step of this simulation. |
◆ SetComboName()
| void Recorder::SetComboName |
( |
std::string |
name | ) |
|
Sets the combination's name.
- Parameters
-
◆ SetDRMParaviewInterface()
| void Recorder::SetDRMParaviewInterface |
( |
std::map< unsigned int, bool > & |
DRMElems | ) |
|
Sets the possible DRM Element indexes.
- Parameters
-
| DRMElems | Maps that specify if the Element is DRM. |
◆ SetThreshold()
| void Recorder::SetThreshold |
( |
Eigen::VectorXd & |
U, |
|
|
double |
WinTol = 1E-33 |
|
) |
| |
|
private |
Windows patch for small values.
- Parameters
-
| U | The vector to set threshold |
| WinTol | The threshold value for windows machines |
◆ WriteElementResponse()
| void Recorder::WriteElementResponse |
( |
std::shared_ptr< Mesh > & |
mesh | ) |
|
|
private |
Writes element data to the file.
- Parameters
-
| mesh | The finite element Mesh object. |
◆ WriteNodalResponse()
| void Recorder::WriteNodalResponse |
( |
std::shared_ptr< Mesh > & |
mesh | ) |
|
|
private |
Writes state variable data to the file.
- Parameters
-
| mesh | The finite element Mesh object. |
◆ WriteResponse()
| void Recorder::WriteResponse |
( |
std::shared_ptr< Mesh > & |
mesh, |
|
|
unsigned int |
step |
|
) |
| |
Write information in the recorder.
- Parameters
-
| mesh | The finite element Mesh object. |
- Note
- More details can be found at Recorder.
◆ WriteSectionResponse()
| void Recorder::WriteSectionResponse |
( |
std::shared_ptr< Mesh > & |
mesh | ) |
|
|
private |
Writes section element data to the file.
- Parameters
-
| mesh | The finite element Mesh object. |
◆ WriteVTKFiles()
| void Recorder::WriteVTKFiles |
( |
std::shared_ptr< Mesh > & |
mesh, |
|
|
unsigned int |
step |
|
) |
| |
|
private |
Writes output data in VTK format to the file.
- Parameters
-
| mesh | The finite element Mesh object. |
| step | The time step to be stored. |
◆ Combo
| std::string Recorder::Combo |
|
private |
◆ Counter
| unsigned int Recorder::Counter |
|
private |
The sampling rate counter.
◆ File
| std::string Recorder::File |
|
private |
The name of the file to record.
◆ IDs
| std::vector<unsigned int> Recorder::IDs |
|
private |
Nodal/Element indexes to be recorded.
◆ IsDRMElem
| std::map<unsigned int, bool> Recorder::IsDRMElem |
|
private |
Nodal Local indexes for this partition.
◆ Name
| std::string Recorder::Name |
|
private |
The object name to record solution.
◆ nParaview
| unsigned int Recorder::nParaview |
|
private |
The number of features to be written in paraview.
◆ nSample
| unsigned int Recorder::nSample |
|
private |
The number of sampling points to record the solution.
◆ OutputFile
| std::ofstream Recorder::OutputFile |
|
private |
Name of the recorder handler.
◆ Position
| std::vector<double> Recorder::Position |
|
private |
Section position at strain/stress is computed.
◆ Precision
| unsigned int Recorder::Precision |
|
private |
The precision for results.
◆ Response
| std::string Recorder::Response |
|
private |
The object response to be stored.
◆ Tag
| std::map<unsigned int, unsigned int> Recorder::Tag |
|
private |
Nodal Local indexes for this partition.