KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
This class stores the results of a simulation for a later comparison. More...
#include <result_dabatase.h>
Public Member Functions | |
Life Cycle | |
ResultDatabase () | |
Default constructor. More... | |
virtual | ~ResultDatabase () |
Destructor. More... | |
ResultDatabase (ResultDatabase const &rOther) | |
Copy constructor. More... | |
Operations | |
void | Initialize (const std::vector< IndexType > &rVariablesIndexes, const std::vector< IndexType > &rValuesSizes, const SizeType NumberOfEntites, const SizeType NumberOfGP=1) |
This method initializes the database. More... | |
template<class TVariableType > | |
VariableDatabase & | GetVariableData (const TVariableType &rVariable) |
This method retrieves the variable database. More... | |
template<class TVariableType > | |
const VariableDatabase & | GetVariableData (const TVariableType &rVariable) const |
This method retrieves the variable database. More... | |
template<class TVariableType > | |
void | SetValues (const Vector &rValuesX, const Vector &rValuesY, const TVariableType &rVariable, const IndexType EntityIndex, const SizeType ComponentIndex=0, const SizeType GPIndex=0) |
This method set the values into the tables. More... | |
void | Clear () |
This function is designed for clear all the databases. More... | |
int | Check () |
This function is designed for being called after ExecuteInitialize ONCE to verify that the input is correct. More... | |
Access | |
Vector & | GetCommonColumn () |
This method returns the common column vector. More... | |
void | SetCommonColumn (const Vector &rCommonColumn) |
This method sets the common column. More... | |
Input and output | |
virtual std::string | Info () const |
Turn back information as a string. More... | |
virtual void | PrintInfo (std::ostream &rOStream) const |
Print information about this object. More... | |
virtual void | PrintData (std::ostream &rOStream) const |
Print object's data. More... | |
Protected Attributes | |
Protected member Variables | |
std::unordered_map< IndexType, VariableDatabase > | mData |
Vector | mCommonColumn |
Type Definitions | |
typedef std::size_t | IndexType |
The definition of the index type. More... | |
typedef std::size_t | SizeType |
The definition of the sizetype. More... | |
KRATOS_CLASS_POINTER_DEFINITION (ResultDatabase) | |
Pointer definition of ResultDatabase. More... | |
This class stores the results of a simulation for a later comparison.
The results are stored in a map which stores the results in tables. The following structure is followed:
typedef std::size_t Kratos::ResultDatabase::IndexType |
The definition of the index type.
typedef std::size_t Kratos::ResultDatabase::SizeType |
The definition of the sizetype.
|
inline |
Default constructor.
|
inlinevirtual |
Destructor.
|
inline |
Copy constructor.
int Kratos::ResultDatabase::Check | ( | ) |
This function is designed for being called after ExecuteInitialize ONCE to verify that the input is correct.
void Kratos::ResultDatabase::Clear | ( | ) |
This function is designed for clear all the databases.
|
inline |
This method returns the common column vector.
|
inline |
This method retrieves the variable database.
rVariable | The variable to be retrieved |
TVariableType | The variable type considered |
|
inline |
This method retrieves the variable database.
rVariable | The variable to be retrieved |
TVariableType | The variable type considered |
|
inlinevirtual |
Turn back information as a string.
void Kratos::ResultDatabase::Initialize | ( | const std::vector< IndexType > & | rVariablesIndexes, |
const std::vector< IndexType > & | rValuesSizes, | ||
const SizeType | NumberOfEntites, | ||
const SizeType | NumberOfGP = 1 |
||
) |
This method initializes the database.
rVariablesIndexes | The list of indexes of the variables |
NumberOfEntites | The number of entities considered |
Kratos::ResultDatabase::KRATOS_CLASS_POINTER_DEFINITION | ( | ResultDatabase | ) |
Pointer definition of ResultDatabase.
|
inlinevirtual |
Print object's data.
|
inlinevirtual |
Print information about this object.
|
inline |
This method sets the common column.
rCommonColumn | The common column (time) vector |
|
inline |
This method set the values into the tables.
rValuesX | The values of the X axis |
rValuesY | The values of the Y axis |
rVariable | The variable to be retrieved |
EntityIndex | The index of the entity (not the entity Id, the index in the database) |
ComponentIndex | The component index of the vector/array |
GPIndex | The GP index |
TVariableType | The variable type considered |
|
protected |
|
protected |