|
Opm::NewtonSolver< PhysicalModel > Class Template Reference A Newton solver class suitable for general fully-implicit models. More...
Detailed Descriptiontemplate<class PhysicalModel>
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typedef AutoDiffBlock<double> Opm::NewtonSolver< PhysicalModel >::ADB |
| typedef ADB::M Opm::NewtonSolver< PhysicalModel >::M |
| typedef PhysicalModel::ReservoirState Opm::NewtonSolver< PhysicalModel >::ReservoirState |
| typedef ADB::V Opm::NewtonSolver< PhysicalModel >::V |
| typedef PhysicalModel::WellState Opm::NewtonSolver< PhysicalModel >::WellState |
| enum Opm::NewtonSolver::RelaxType |
|
explicit |
Construct solver for a given model.
The model is a std::unique_ptr because the object to which model points to is not allowed to be deleted as long as the NewtonSolver object exists.
| [in] | param | parameters controlling nonlinear Newton process |
| [in,out] | model | physical simulation model. |
| unsigned int Opm::NewtonSolver< PhysicalModel >::linearIterations | ( | ) | const |
Number of linear solver iterations used in all calls to step().
| unsigned int Opm::NewtonSolver< PhysicalModel >::linearIterationsLastStep | ( | ) | const |
Number of linear solver iterations used in the last call to step().
| unsigned int Opm::NewtonSolver< PhysicalModel >::newtonIterations | ( | ) | const |
Number of Newton iterations used in all calls to step().
| unsigned int Opm::NewtonSolver< PhysicalModel >::newtonIterationsLastStep | ( | ) | const |
Number of linear solver iterations used in the last call to step().
| int Opm::NewtonSolver< PhysicalModel >::step | ( | const double | dt, |
| ReservoirState & | reservoir_state, | ||
| WellState & | well_state | ||
| ) |
Take a single forward step, after which the states will be modified according to the physical model.
| [in] | dt | time step size |
| [in] | reservoir_state | reservoir state variables |
| [in] | well_state | well state variables |