svZeroDSolver
Loading...
Searching...
No Matches
ConvergenceHistory Struct Reference

Convergence history of the non-linear iterations. More...

#include <Integrator.h>

Public Member Functions

void push_back (double step_time, int step_iterations, double step_residual, int step_residual_dof)
 Record one time step.
void append (const ConvergenceHistory &other)
 Append another history at the end of this one.
void clear ()
 Discard all recorded time steps.
size_t size () const
 Number of recorded time steps.

Public Attributes

std::vector< double > time
 Time at the start of the step.
std::vector< int > iterations
 Newton iterations of the step.
std::vector< double > residual
 Largest absolute residual left.
std::vector< int > residual_dof
 DOF index holding that residual.

Detailed Description

Convergence history of the non-linear iterations.

Holds one entry per time step: the time at the start of the step, the number of Newton updates it took, the largest absolute residual left in the solution of that step and the degree of freedom that holds it.

Member Function Documentation

◆ append()

void ConvergenceHistory::append ( const ConvergenceHistory & other)
inline

Append another history at the end of this one.

Parameters
otherHistory to append

◆ clear()

void ConvergenceHistory::clear ( )
inline

Discard all recorded time steps.

◆ push_back()

void ConvergenceHistory::push_back ( double step_time,
int step_iterations,
double step_residual,
int step_residual_dof )
inline

Record one time step.

Parameters
step_timeTime at the start of the step
step_iterationsNumber of Newton updates performed
step_residualLargest absolute residual left
step_residual_dofDOF index holding that residual

◆ size()

size_t ConvergenceHistory::size ( ) const
inline

Number of recorded time steps.

Returns
Number of recorded time steps

Member Data Documentation

◆ iterations

std::vector<int> ConvergenceHistory::iterations

Newton iterations of the step.

◆ residual

std::vector<double> ConvergenceHistory::residual

Largest absolute residual left.

◆ residual_dof

std::vector<int> ConvergenceHistory::residual_dof

DOF index holding that residual.

◆ time

std::vector<double> ConvergenceHistory::time

Time at the start of the step.


The documentation for this struct was generated from the following file: