preCICE v3.1.2
|
#include <ConstantRelaxationAcceleration.hpp>
Public Member Functions | |
ConstantRelaxationAcceleration (double relaxation, std::vector< int > dataIDs) | |
virtual std::vector< int > | getDataIDs () const override |
virtual void | initialize (const DataMap &cplData) override |
virtual void | performAcceleration (DataMap &cplData) override |
virtual void | iterationsConverged (const DataMap &cplData) override |
Public Member Functions inherited from precice::acceleration::Acceleration | |
virtual | ~Acceleration ()=default |
virtual void | exportState (io::TXTWriter &writer) |
virtual void | importState (io::TXTReader &reader) |
virtual int | getDeletedColumns () const |
Gives the number of QN columns that where filtered out (i.e. deleted) in this time window. | |
virtual int | getDroppedColumns () const |
Gives the number of QN columns that went out of scope in this time window. | |
virtual int | getLSSystemCols () const |
Gives the number of current QN columns (LS = least squares) | |
Private Attributes | |
logging::Logger | _log {"acceleration::ConstantRelaxationAcceleration"} |
double | _relaxation |
std::vector< int > | _dataIDs |
Additional Inherited Members | |
Public Types inherited from precice::acceleration::Acceleration | |
using | DataMap = std::map<int, cplscheme::PtrCouplingData> |
Map from data ID to data values. | |
Static Public Attributes inherited from precice::acceleration::Acceleration | |
static const int | NOFILTER = 0 |
static const int | QR1FILTER = 1 |
static const int | QR1FILTER_ABS = 2 |
static const int | QR2FILTER = 3 |
static const int | PODFILTER = 4 |
Protected Member Functions inherited from precice::acceleration::Acceleration | |
void | checkDataIDs (const DataMap &cplData) const |
Checks if all dataIDs are contained in cplData. | |
void | concatenateCouplingData (const DataMap &cplData, const std::vector< DataID > &dataIDs, Eigen::VectorXd &targetValues, Eigen::VectorXd &targetOldValues) const |
Concatenates all coupling data involved into a single vector. | |
Static Protected Member Functions inherited from precice::acceleration::Acceleration | |
static void | applyRelaxation (double omega, DataMap &cplData) |
performs a relaxation given a relaxation factor omega | |
Definition at line 13 of file ConstantRelaxationAcceleration.hpp.
precice::acceleration::ConstantRelaxationAcceleration::ConstantRelaxationAcceleration | ( | double | relaxation, |
std::vector< int > | dataIDs ) |
Definition at line 15 of file ConstantRelaxationAcceleration.cpp.
|
inlineoverridevirtual |
Implements precice::acceleration::Acceleration.
Definition at line 19 of file ConstantRelaxationAcceleration.hpp.
|
overridevirtual |
Implements precice::acceleration::Acceleration.
Definition at line 27 of file ConstantRelaxationAcceleration.cpp.
|
inlineoverridevirtual |
Implements precice::acceleration::Acceleration.
Definition at line 28 of file ConstantRelaxationAcceleration.hpp.
|
overridevirtual |
Implements precice::acceleration::Acceleration.
Definition at line 32 of file ConstantRelaxationAcceleration.cpp.
|
private |
Definition at line 37 of file ConstantRelaxationAcceleration.hpp.
|
private |
Definition at line 33 of file ConstantRelaxationAcceleration.hpp.
|
private |
Definition at line 35 of file ConstantRelaxationAcceleration.hpp.