SuperDex Physics C++ API
Loading...
Searching...
No Matches
superdex::SolverStats Struct Reference

Solver convergence metrics from the last simulation step. More...

#include <mochi_structs.h>

Public Member Functions

bool operator== (SolverStats const &) const =default

Public Attributes

ConvergenceStatus convergenceStatus = ConvergenceStatus::None
 Aggregate convergence status of the scene in the last call to Scene::Step.
int maxLineSearchIters = 0
 Maximum number of line-search iterations per Newton solve across all awake islands and integration stages in the last call to Scene::Step.
int maxNonLinearIters = 0
 Maximum number of non-linear solver iterations across all awake islands and integration stages in the last call to Scene::Step.
double residualNorm = 0.0
 Aggregate residual norm across all awake islands and integration stages in the last call to Scene::Step.

Detailed Description

Solver convergence metrics from the last simulation step.

See also
Scene::GetSolverStats

Definition at line 678 of file mochi_structs.h.

Member Function Documentation

◆ operator==()

bool superdex::SolverStats::operator== ( SolverStats const & ) const
default

Member Data Documentation

◆ convergenceStatus

ConvergenceStatus superdex::SolverStats::convergenceStatus = ConvergenceStatus::None

Aggregate convergence status of the scene in the last call to Scene::Step.

Returns the worst convergence status across all dynamic actors in awake islands: ConvergenceStatus::Diverged if any actor diverged, ConvergenceStatus::Stopped if any actor's solver was stopped, ConvergenceStatus::Converged if all dynamic actors in awake islands converged, ConvergenceStatus::None if no dynamic actors exist, all islands are asleep, Scene::Step has not been called yet or the last call to Scene::Step was with zero time step.

Note
Unlike ConvergenceStatus::Diverged, ConvergenceStatus::Stopped does not indicate that the step failed. It means that the nonlinear solve reached a stopping criterion, such as the maximum number of iterations, before meeting its residual tolerances, which may be stricter than the scene requires.
See also
ConvergenceStatus, Actor::GetConvergenceStatus

Definition at line 685 of file mochi_structs.h.

◆ maxLineSearchIters

int superdex::SolverStats::maxLineSearchIters = 0

Maximum number of line-search iterations per Newton solve across all awake islands and integration stages in the last call to Scene::Step.

Definition at line 683 of file mochi_structs.h.

◆ maxNonLinearIters

int superdex::SolverStats::maxNonLinearIters = 0

Maximum number of non-linear solver iterations across all awake islands and integration stages in the last call to Scene::Step.

Definition at line 679 of file mochi_structs.h.

◆ residualNorm

double superdex::SolverStats::residualNorm = 0.0

Aggregate residual norm across all awake islands and integration stages in the last call to Scene::Step.

Computed as the root mean square across integration stages of the L2 norm of per-island residual norms.

Definition at line 681 of file mochi_structs.h.


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