Smith  0.1
Smith is an implicit thermal structural mechanics simulation code.
Public Member Functions | Protected Attributes | List of all members
smith::NewtonSolver Class Reference

Newton solver with a 2-way line-search. Reverts to regular Newton if max_line_search_iterations is set to 0. More...

Collaboration diagram for smith::NewtonSolver:
Collaboration graph
[legend]

Public Member Functions

 NewtonSolver (const NonlinearSolverOptions &nonlinear_opts)
 constructor
 
double evaluateNorm (const mfem::Vector &x, mfem::Vector &rOut) const
 Evaluate the residual, put in rOut and return its norm.
 
void assembleJacobian (const mfem::Vector &x) const
 assemble the jacobian
 
void setPreconditioner () const
 set the preconditioner for the linear solver
 
void solveLinearSystem (const mfem::Vector &r_, mfem::Vector &c_) const
 solve the linear system
 
void Mult (const mfem::Vector &, mfem::Vector &x) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 

Protected Attributes

mfem::Vector x0
 initial solution vector to do line-search off of
 
NonlinearSolverOptions nonlinear_options
 nonlinear solver options
 
size_t print_level = 0
 reconstructed smith print level
 

Detailed Description

Newton solver with a 2-way line-search. Reverts to regular Newton if max_line_search_iterations is set to 0.

Definition at line 27 of file equation_solver.cpp.


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