template<class Matrix, class Vector, class VelocityGG, class PressureGG>
class Dumux::StokesSolver< Matrix, Vector, VelocityGG, PressureGG >
- Note
- Uses StokesPreconditioner as preconditioner (tailored to the incompressible Stokes problem)
-
Sequential and MPI-parallel (non-overlapping or overlapping decomposition)
|
| | StokesSolver (std::shared_ptr< const VelocityGG > vGridGeometry, std::shared_ptr< const PressureGG > pGridGeometry, const Vector &dirichletDofs, const std::string ¶mGroup="") |
| | Constructor.
|
| bool | solve (const Matrix &A, Vector &x, const Vector &b) |
| void | setMatrix (const Matrix &A) |
| | Keep a copy of the matrix, and the operator and preconditioner built on it, for solve(x, b).
|
| void | setMatrix (std::shared_ptr< Matrix > A) |
| | Keep a copy of the matrix, and the operator and preconditioner built on it, for solve(x, b).
|
| bool | solve (Vector &x, const Vector &b) |
| | Solve with the matrix kept by setMatrix.
|
| void | setPressureMatrix (std::shared_ptr< const PressureMatrix > matrix) |
| | Use the given matrix in place of the pressure mass matrix in the preconditioner.
|
| void | setPressureDiagonal (std::shared_ptr< const PressureVector > diagonal) |
| | Set the diagonal added to the inverse of the pressure block (see StokesPreconditioner::setPressureDiagonal).
|
| void | makeConsistent (Vector &v) const |
| | Give the copies of shared degrees of freedom the values of their owners.
|
| void | makeUnique (Vector &v) const |
| | Set the entries of shared degrees of freedom this process does not own to zero.
|
| Scalar | norm (const Vector &b) const |
| std::string | name () const |
| const Dune::InverseOperatorResult & | result () const |
| const std::string & | paramGroup () const |
| | the parameter group for getting parameter from the parameter tree
|
| int | verbosity () const |
| | the verbosity level
|
| void | setVerbosity (int v) |
| | set the verbosity level
|
| int | maxIter () const |
| | the maximum number of linear solver iterations
|
| void | setMaxIter (int i) |
| | set the maximum number of linear solver iterations
|
| Scalar | residReduction () const |
| | the linear solver residual reduction
|
| void | setResidualReduction (Scalar r) |
| | set the linear solver residual reduction
|
| Scalar | relaxation () const |
| | the linear solver relaxation factor
|
| void | setRelaxation (Scalar r) |
| | set the linear solver relaxation factor
|
| int | precondIter () const |
| | the number of preconditioner iterations
|
| void | setPrecondIter (int i) |
| | set the number of preconditioner iterations
|
| int | precondVerbosity () const |
| | the preconditioner verbosity
|
| void | setPrecondVerbosity (int verbosityLevel) |
| | set the preconditioner verbosity
|