![]() |
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 variable. More...
#include <result_dabatase.h>
Public Member Functions | |
Life Cycle | |
| VariableDatabase (const SizeType SizeVector, const EntityDatabase &rBaseData) | |
| Default constructor. More... | |
| virtual | ~VariableDatabase () |
| Destructor. More... | |
| VariableDatabase (VariableDatabase const &rOther) | |
| Copy constructor. More... | |
Operators | |
| EntityDatabase & | 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 EntityDatabase & | GetEntityData (const IndexType EntityIndex) const |
| This method retrieves the entity database. More... | |
| double | GetValue (const IndexType EntityIndex, 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 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... | |
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< EntityDatabase > | 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 (VariableDatabase) | |
| Pointer definition of ResultDatabase. More... | |
This class stores the results of a variable.
| typedef std::vector<EntityDatabase> Kratos::VariableDatabase::DataType |
Base type definition.
| typedef std::size_t Kratos::VariableDatabase::IndexType |
The definition of the index type.
| typedef std::size_t Kratos::VariableDatabase::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::VariableDatabase::Clear | ( | ) |
This function is designed for clear all the databases.
|
inline |
The end iterator.
|
inline |
The const end iterator.
| const EntityDatabase & Kratos::VariableDatabase::GetEntityData | ( | const IndexType | EntityIndex | ) | const |
This method retrieves the entity database.
| EntityIndex | The index of the entity (not the entity Id, the index in the database) |
| double Kratos::VariableDatabase::GetValue | ( | const IndexType | EntityIndex, |
| const double | Time, | ||
| const SizeType | ComponentIndex = 0, |
||
| const SizeType | GPIndex = 0 |
||
| ) | const |
This method retrieves the interpolated value from the database.
| EntityIndex | The index of the entity (not the entity Id, the index in 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::VariableDatabase::KRATOS_CLASS_POINTER_DEFINITION | ( | VariableDatabase | ) |
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::VariableDatabase::SetValues | ( | const Vector & | rValuesX, |
| const Vector & | rValuesY, | ||
| const IndexType | EntityIndex, | ||
| 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 |
| 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 |
|
protected |