![]() |
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 represents the value of its variable depending to other variable. More...
#include <piecewize_linear_table.h>
Public Member Functions | |
Life Cycle | |
Table () | |
Default constructor. More... | |
Table (XVariableType const &XVariable, YVariableType const &YVariable) | |
Default constructor. More... | |
virtual | ~Table () |
Destructor. More... | |
Table & | operator= (Table const &rOther) |
Assignment operator. More... | |
virtual | ~Table ()=default |
Operators | |
TResultType | operator() (TArgumentType const &X) const |
TResultType const & | operator[] (TArgumentType const &X) const |
TResultType & | operator[] (TArgumentType &X) |
TResultType const & | operator() (TArgumentType const &X) const |
TResultType & | operator() (TArgumentType const &X) |
TResultType const & | operator() (TArgumentType const &X, std::size_t J) const |
TResultType & | operator() (TArgumentType const &X, std::size_t J) |
result_row_type const & | operator[] (TArgumentType const &X) const |
result_row_type & | operator[] (TArgumentType &X) |
Operations | |
TResultType | GetValue (TArgumentType const &X) const |
result_array_type & | GetNearestRow (TArgumentType const &X) |
TResultType const & | GetNearestValue (TArgumentType const &X) const |
TResultType & | Interpolate (TArgumentType const &X, TArgumentType const &X1, TResultType const &Y1, TArgumentType const &X2, TResultType const &Y2, TResultType &Result) |
void | PushBack (TArgumentType const &X, TResultType const &Y) |
TResultType & | GetNearestRow (TArgumentType const &X) |
TResultType const & | GetNearestRow (TArgumentType const &X) const |
void | insert (TArgumentType const &X, TResultType const &Y) |
template<class TArrayType > | |
void | insert (TArgumentType const &X, TArrayType const &Y) |
void | insert (TArgumentType const &X, result_row_type const &Y) |
void | PushBack (TArgumentType const &X, TResultType const &Y) |
template<class TArrayType > | |
void | PushBack (TArgumentType const &X, TArrayType const &Y) |
template<class TArrayType > | |
void | PushBack (TArgumentType const &X, result_row_type const &Y) |
void | Clear () |
This method clears database. More... | |
Access | |
TableContainerType & | Data () |
TableContainerType const & | Data () const |
XVariableType & | GetXVariable () |
YVariableType & | GetYVariable () |
TableContainerType & | Data () |
TableContainerType const & | Data () const |
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... | |
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... | |
const std::string & | NameOfX () const |
const std::string & | NameOfY () const |
void | SetNameOfX (const std::string &name) |
void | SetNameOfY (const std::string &name) |
Type Definitions | |
typedef std::array< TResultType, TResultsColumns > | result_array_type |
typedef std::pair< TArgumentType, result_array_type > | RecordType |
typedef std::vector< RecordType > | TableContainerType |
typedef Variable< TArgumentType > | XVariableType |
typedef Variable< TResultType > | YVariableType |
typedef std::array< TResultType, TResultsColumns > | result_row_type |
typedef std::pair< TArgumentType, result_row_type > | RecordType |
typedef std::vector< RecordType > | TableContainerType |
KRATOS_CLASS_POINTER_DEFINITION (Table) | |
Pointer definition of Table. More... | |
KRATOS_CLASS_POINTER_DEFINITION (Table) | |
Pointer definition of Table. More... | |
Serialization | |
class | Serializer |
This class represents the value of its variable depending to other variable.
Table class stores the value of its second variable respect to the value of its first variable. It also provides a piecewise linear interpolator/extrapolator for getting intermediate values.
Table class stores the value of its second variable respect to the value of its first variable. It also provides a double to double table with piecewise linear interpolator/extrapolator for getting intermediate values.
TArgumentType | The type of argument considered |
TResultType | The type of result obtained |
TResultsColumns | The number of columns considered |
typedef std::pair<TArgumentType, result_array_type> Kratos::Table< TArgumentType, TResultType, TResultsColumns >::RecordType |
typedef std::pair<TArgumentType, result_row_type> Kratos::Table< TArgumentType, TResultType, TResultsColumns >::RecordType |
typedef std::array<TResultType, TResultsColumns> Kratos::Table< TArgumentType, TResultType, TResultsColumns >::result_array_type |
typedef std::array<TResultType, TResultsColumns> Kratos::Table< TArgumentType, TResultType, TResultsColumns >::result_row_type |
typedef std::vector<RecordType> Kratos::Table< TArgumentType, TResultType, TResultsColumns >::TableContainerType |
typedef std::vector<RecordType> Kratos::Table< TArgumentType, TResultType, TResultsColumns >::TableContainerType |
typedef Variable<TArgumentType> Kratos::Table< TArgumentType, TResultType, TResultsColumns >::XVariableType |
typedef Variable<TResultType> Kratos::Table< TArgumentType, TResultType, TResultsColumns >::YVariableType |
|
inline |
Default constructor.
|
inline |
Default constructor.
|
inlinevirtual |
Destructor.
|
virtualdefault |
|
inline |
This method clears database.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Turn back information as a string.
|
inlinevirtual |
Turn back information as a string.
|
inline |
|
inline |
|
inline |
|
inline |
Kratos::Table< TArgumentType, TResultType, TResultsColumns >::KRATOS_CLASS_POINTER_DEFINITION | ( | Table< TArgumentType, TResultType, TResultsColumns > | ) |
Pointer definition of Table.
Kratos::Table< TArgumentType, TResultType, TResultsColumns >::KRATOS_CLASS_POINTER_DEFINITION | ( | Table< TArgumentType, TResultType, TResultsColumns > | ) |
Pointer definition of Table.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Assignment operator.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Print object's data.
|
inlinevirtual |
Print object's data.
|
inlinevirtual |
Print information about this object.
|
inlinevirtual |
Print information about this object.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |