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 entity. More...
#include <result_dabatase.h>
Public Member Functions | |
Life Cycle | |
EntityDatabase (const SizeType SizeVector, const GPDatabaseType &rBaseData) | |
Default constructor. More... | |
virtual | ~EntityDatabase () |
Destructor. More... | |
EntityDatabase (EntityDatabase const &rOther) | |
Copy constructor. More... | |
Operators | |
GPDatabaseType & | operator[] (const std::size_t i) |
The [] operator. More... | |
Operations | |
DataType::iterator | begin () |
The begin iterator. More... | |
DataType::const_iterator | begin () const |
The const begin iterator. More... | |
DataType::iterator | end () |
The end iterator. More... | |
DataType::const_iterator | end () const |
The const end iterator. More... | |
const GPDatabaseType & | GetResultaData (const SizeType GPIndex=0) const |
This method retrieves the entity database. More... | |
double | GetValue (const double Time, const SizeType ComponentIndex=0, const SizeType GPIndex=0) const |
This method retrieves the interpolated value from the database. More... | |
void | SetValues (const Vector &rValuesX, const Vector &rValuesY, 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... | |
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 | |
DataType | mData |
Type Definitions | |
typedef std::vector< Table< double, double > * > | GPDatabaseType |
GP database definition. More... | |
typedef std::vector< GPDatabaseType > | DataType |
Base type definition. More... | |
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 (EntityDatabase) | |
Pointer definition of ResultDatabase. More... | |
This class stores the results of a entity.
typedef std::vector<GPDatabaseType> Kratos::EntityDatabase::DataType |
Base type definition.
typedef std::vector<Table<double, double>*> Kratos::EntityDatabase::GPDatabaseType |
GP database definition.
typedef std::size_t Kratos::EntityDatabase::IndexType |
The definition of the index type.
typedef std::size_t Kratos::EntityDatabase::SizeType |
The definition of the sizetype.
|
inline |
Default constructor.
|
inlinevirtual |
Destructor.
|
inline |
Copy constructor.
|
inline |
The begin iterator.
|
inline |
The const begin iterator.
void Kratos::EntityDatabase::Clear | ( | ) |
This function is designed for clear all the databases.
|
inline |
The end iterator.
|
inline |
The const end iterator.
const EntityDatabase::GPDatabaseType & Kratos::EntityDatabase::GetResultaData | ( | const SizeType | GPIndex = 0 | ) | const |
This method retrieves the entity database.
EntityIndex | The index of the entity (not the entity Id, the index in the database) |
double Kratos::EntityDatabase::GetValue | ( | const double | Time, |
const SizeType | ComponentIndex = 0 , |
||
const SizeType | GPIndex = 0 |
||
) | const |
This method retrieves the interpolated value from the database.
Time | The time value to be retrieved |
ComponentIndex | The component index of the vector/array |
GPIndex | The Gauss point index |
|
inlinevirtual |
Turn back information as a string.
Kratos::EntityDatabase::KRATOS_CLASS_POINTER_DEFINITION | ( | EntityDatabase | ) |
Pointer definition of ResultDatabase.
|
inline |
The [] operator.
i | The index of the value to access |
|
inlinevirtual |
Print object's data.
|
inlinevirtual |
Print information about this object.
void Kratos::EntityDatabase::SetValues | ( | const Vector & | rValuesX, |
const Vector & | rValuesY, | ||
const SizeType | ComponentIndex = 0 , |
||
const SizeType | GPIndex = 0 |
||
) |
This method set the values into the tables.
rValuesX | The values of the X axis |
rValuesY | The values of the Y axis |
ComponentIndex | The component index of the vector/array |
GPIndex | The GP index |
|
protected |