preCICE v3.1.2
|
Interface for measures checking the convergence of a series of datasets. More...
#include <ConvergenceMeasure.hpp>
Public Member Functions | |
virtual | ~ConvergenceMeasure () |
Destructor, empty. | |
virtual void | newMeasurementSeries ()=0 |
To be called when a new meas. series (iteration process) starts. | |
virtual void | measure (const Eigen::VectorXd &oldValues, const Eigen::VectorXd &newValues)=0 |
Performs convergence measurement. | |
virtual bool | isConvergence () const =0 |
Returns true, if the last measurement indicates convergence. | |
virtual std::string | printState (const std::string &dataName)=0 |
Adds current convergence information to output stream. | |
virtual double | getNormResidual () |
Returns the l2-norm of the coupling residuum. | |
virtual std::string | getAbbreviation () const |
Returns an abbreviation of the name of the measure for the log file headers. | |
Interface for measures checking the convergence of a series of datasets.
A measurement involves two states of the data set: an old state and a new state. Typically, the states corresponds to timestep $t$ and $t+1$. The subclasses of ConvergenceMeasure define how exactly convergence is measured.
A measure has to be used in the following way:
Definition at line 22 of file ConvergenceMeasure.hpp.
|
inlinevirtual |
Destructor, empty.
Definition at line 25 of file ConvergenceMeasure.hpp.
|
inlinevirtual |
Returns an abbreviation of the name of the measure for the log file headers.
Reimplemented in precice::cplscheme::impl::AbsoluteConvergenceMeasure, precice::cplscheme::impl::AbsoluteOrRelativeConvergenceMeasure, precice::cplscheme::impl::RelativeConvergenceMeasure, and precice::cplscheme::impl::ResidualRelativeConvergenceMeasure.
Definition at line 53 of file ConvergenceMeasure.hpp.
|
inlinevirtual |
Returns the l2-norm of the coupling residuum.
Reimplemented in precice::cplscheme::impl::AbsoluteConvergenceMeasure, precice::cplscheme::impl::RelativeConvergenceMeasure, and precice::cplscheme::impl::ResidualRelativeConvergenceMeasure.
Definition at line 47 of file ConvergenceMeasure.hpp.
|
pure virtual |
Returns true, if the last measurement indicates convergence.
Implemented in precice::cplscheme::impl::AbsoluteConvergenceMeasure, precice::cplscheme::impl::AbsoluteOrRelativeConvergenceMeasure, precice::cplscheme::impl::RelativeConvergenceMeasure, and precice::cplscheme::impl::ResidualRelativeConvergenceMeasure.
|
pure virtual |
Performs convergence measurement.
[in] | oldValues | Old iterate values. |
[in] | newValues | New iterate values. |
Implemented in precice::cplscheme::impl::AbsoluteConvergenceMeasure, precice::cplscheme::impl::AbsoluteOrRelativeConvergenceMeasure, precice::cplscheme::impl::RelativeConvergenceMeasure, and precice::cplscheme::impl::ResidualRelativeConvergenceMeasure.
|
pure virtual |
To be called when a new meas. series (iteration process) starts.
Implemented in precice::cplscheme::impl::AbsoluteConvergenceMeasure, precice::cplscheme::impl::AbsoluteOrRelativeConvergenceMeasure, precice::cplscheme::impl::RelativeConvergenceMeasure, and precice::cplscheme::impl::ResidualRelativeConvergenceMeasure.
|
pure virtual |
Adds current convergence information to output stream.
Implemented in precice::cplscheme::impl::AbsoluteConvergenceMeasure, precice::cplscheme::impl::AbsoluteOrRelativeConvergenceMeasure, precice::cplscheme::impl::RelativeConvergenceMeasure, and precice::cplscheme::impl::ResidualRelativeConvergenceMeasure.