preCICE v3.2.0
|
Interface for storing the time grids in the Quasi-Newton and Aitken methods. A time grid is a ordered vector containing the time stamps from the samples in the waveform of the coupled data. More...
#include <TimeGrids.hpp>
Public Types | |
using | DataMap = std::map<int, cplscheme::PtrCouplingData> |
Map from data ID to data values. | |
Public Member Functions | |
TimeGrids (const DataMap &cplData, std::vector< int > dataIDs, bool reduced) | |
saves the current time grid of the couplig data | |
Eigen::VectorXd | getTimeGridAfter (int dataID, double time) const |
void | moveTimeGridToNewWindow (const DataMap &cplData) |
Private Attributes | |
logging::Logger | _log {"acceleration::WaveformTimeGrids"} |
std::map< int, Eigen::VectorXd > | _timeGrids |
List of the time grid to which all the data will be interpolated to Stored in a map, since each data entry has its own time grid. | |
Interface for storing the time grids in the Quasi-Newton and Aitken methods. A time grid is a ordered vector containing the time stamps from the samples in the waveform of the coupled data.
Definition at line 21 of file TimeGrids.hpp.
Map from data ID to data values.
Definition at line 24 of file TimeGrids.hpp.
precice::time::TimeGrids::TimeGrids | ( | const DataMap & | cplData, |
std::vector< int > | dataIDs, | ||
bool | reduced ) |
saves the current time grid of the couplig data
cplData | |
dataIDs | of which time grids we want to save |
reduced | if true then only the last timestep is saved in the timeGrid otherwise all timesteps are saved in the time grid This is used in the Quasi-Newton method to toggle between the full and reduced variant detailed here |
Definition at line 11 of file TimeGrids.cpp.
Eigen::VectorXd precice::time::TimeGrids::getTimeGridAfter | ( | int | dataID, |
double | time ) const |
void precice::time::TimeGrids::moveTimeGridToNewWindow | ( | const DataMap & | cplData | ) |
|
private |
Definition at line 42 of file TimeGrids.hpp.
|
private |
List of the time grid to which all the data will be interpolated to Stored in a map, since each data entry has its own time grid.
Definition at line 46 of file TimeGrids.hpp.