Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
InexactNewtonNonLinearSolverStrategy< VectorType > Class Template Reference

#include <inexact_newton_non_linear_solver_strategy.h>

Inheritance diagram for InexactNewtonNonLinearSolverStrategy< VectorType >:
[legend]

Public Member Functions

 InexactNewtonNonLinearSolverStrategy (PhysicsSolver< VectorType > *physics_solver, const Parameters::NonLinearSolver &param)
void solve () override
Public Member Functions inherited from PhysicsSolverStrategy< VectorType >
 PhysicsSolverStrategy (PhysicsSolver< VectorType > *physics_solver, const Parameters::NonLinearSolver &params)
 PhysicsSolverStrategy (PhysicsSolver< VectorType > *physics_solver)
virtual ~PhysicsSolverStrategy ()=default
unsigned int get_current_newton_iteration () const

Private Attributes

bool matrix_requires_assembly

Additional Inherited Members

Protected Member Functions inherited from PhysicsSolverStrategy< VectorType >
bool skip_linear_solve_if_fresh_rhs_is_already_converged (const bool rhs_was_assembled_this_iteration, const double rescale_metric, double &current_res, double &last_res, double &global_res)
Protected Attributes inherited from PhysicsSolverStrategy< VectorType >
PhysicsSolver< VectorType > * physics_solver
Parameters::NonLinearSolver params
unsigned int outer_iteration

Detailed Description

template<typename VectorType>
class InexactNewtonNonLinearSolverStrategy< VectorType >

Non-linear solver for non-linear systems of equations which uses an inexact Newton method with \(\alpha\) relaxation to ensure that the residual is monotonically decreasing. It allows to reuse the matrix and avoid its reassembly for every Newton step.

Definition at line 19 of file inexact_newton_non_linear_solver_strategy.h.

Constructor & Destructor Documentation

◆ InexactNewtonNonLinearSolverStrategy()

template<typename VectorType>
InexactNewtonNonLinearSolverStrategy< VectorType >::InexactNewtonNonLinearSolverStrategy ( PhysicsSolver< VectorType > * physics_solver,
const Parameters::NonLinearSolver & param )

Constructor.

Parameters
[in]physics_solverA pointer to the physics solver to which the non-linear solver is attached.
[in]paramNon-linear solver parameters as specified in the simulation parameter file.

Definition at line 50 of file inexact_newton_non_linear_solver_strategy.h.

References matrix_requires_assembly, PhysicsSolverStrategy< VectorType >::params, PhysicsSolverStrategy< VectorType >::physics_solver, and PhysicsSolverStrategy< VectorType >::PhysicsSolverStrategy().

Member Function Documentation

◆ solve()

Member Data Documentation

◆ matrix_requires_assembly

template<typename VectorType>
bool InexactNewtonNonLinearSolverStrategy< VectorType >::matrix_requires_assembly
private

Definition at line 46 of file inexact_newton_non_linear_solver_strategy.h.


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