OGS
|
Definition at line 49 of file LookupTable.h.
#include <LookupTable.h>
Public Member Functions | |
LookupTable (std::vector< Field > input_fields_, std::map< std::string, std::vector< double > > tabular_data_) | |
void | lookup (std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, std::size_t const n_nodes) const |
std::size_t | getTableEntryID (std::vector< double > const &entry_input) const |
Public Attributes | |
std::vector< Field > const | input_fields |
std::map< std::string, std::vector< double > > const | tabular_data |
|
inline |
Definition at line 51 of file LookupTable.h.
std::size_t ProcessLib::ComponentTransport::LookupTable::getTableEntryID | ( | std::vector< double > const & | entry_input | ) | const |
point_id_groups stores indices where the elements equal to the given value.
need to intersect point_id_groups with respect to different input fields to find out an entry id where all the field data align with the entry inputs.
Definition at line 139 of file LookupTable.cpp.
References BaseLib::findIndex(), input_fields, and ProcessLib::ComponentTransport::intersection().
Referenced by lookup().
void ProcessLib::ComponentTransport::LookupTable::lookup | ( | std::vector< GlobalVector * > const & | x, |
std::vector< GlobalVector * > const & | x_prev, | ||
std::size_t const | n_nodes ) const |
Definition at line 61 of file LookupTable.cpp.
References getTableEntryID(), input_fields, and tabular_data.
std::vector<Field> const ProcessLib::ComponentTransport::LookupTable::input_fields |
Definition at line 65 of file LookupTable.h.
Referenced by getTableEntryID(), and lookup().
std::map<std::string, std::vector<double> > const ProcessLib::ComponentTransport::LookupTable::tabular_data |
Definition at line 66 of file LookupTable.h.
Referenced by lookup().