Newton solver.
More...
#include <wNewton.h>
|
| Newton (std::shared_ptr< Problem > _pbl, std::shared_ptr< tbox::LinearSolver > _linsol) |
| Initialize the solver and set default parameters. More...
|
|
virtual bool | run () override |
| Run the Newton solver. More...
|
|
virtual void | write (std::ostream &out) const override |
|
| Solver (std::shared_ptr< Problem > _pbl, std::shared_ptr< tbox::LinearSolver > _linsol) |
|
virtual | ~Solver () |
|
void | save (tbox::MshExport *mshWriter, int n=0) |
|
|
void | buildJac (Eigen::SparseMatrix< double, Eigen::RowMajor > &J) |
| Build the Jacobian (tangent) matrix. More...
|
|
void | buildRes (Eigen::Map< Eigen::VectorXd > &R) |
| Build the residual vector. More...
|
|
void | findUpwd () |
| Find upwind element which is best aligned with current velocity vector. More...
|
|
|
double | mCOv |
| variable cut-off Mach number More...
|
|
double | muCv |
| variable artificial viscosity scaling factor More...
|
|
Newton solver.
- Authors
- Adrien Crovato
◆ Newton()
Newton::Newton |
( |
std::shared_ptr< Problem > |
_pbl, |
|
|
std::shared_ptr< tbox::LinearSolver > |
_linsol |
|
) |
| |
Initialize the solver and set default parameters.
- Authors
- Adrien Crovato
◆ buildJac()
void Newton::buildJac |
( |
Eigen::SparseMatrix< double, Eigen::RowMajor > & |
J | ) |
|
|
private |
Build the Jacobian (tangent) matrix.
- Authors
- Adrien Crovato
◆ buildRes()
void Newton::buildRes |
( |
Eigen::Map< Eigen::VectorXd > & |
R | ) |
|
|
private |
Build the residual vector.
- Authors
- Adrien Crovato
◆ findUpwd()
void Newton::findUpwd |
( |
| ) |
|
|
private |
Find upwind element which is best aligned with current velocity vector.
- Authors
- Adrien Crovato
◆ run()
Run the Newton solver.
Solve the steady transonic Full Potential Equation
- Authors
- Adrien Crovato
Reimplemented from flow::Solver.
◆ write()
void Newton::write |
( |
std::ostream & |
out | ) |
const |
|
overridevirtual |
◆ Adjoint
◆ FpeLSFunction
◆ avThrsh
double flow::Newton::avThrsh |
residual threshold to deacrease artificial viscosity
◆ lsTol
double flow::Newton::lsTol |
tolerance for line search
◆ maxLsIt
int flow::Newton::maxLsIt |
max number of line search
◆ mCOv
double flow::Newton::mCOv |
|
private |
variable cut-off Mach number
◆ muCv
double flow::Newton::muCv |
|
private |
variable artificial viscosity scaling factor
The documentation for this class was generated from the following files: