An implementation of a linear PDE solver. More...
#include <dumux/linear/pdesolver.hh>
An implementation of a linear PDE solver.
Assembler | the assembler |
LinearSolver | the linear solver |
Comm | the communication object used to communicate with all processes |
Public Types | |
using | Assembler = Assembler |
export the assembler and linear solver types More... | |
using | LinearSolver = LinearSolver |
using | Variables = Detail::AssemblerVariables< Assembler > |
export the type of variables that represent a numerical solution More... | |
Public Member Functions | |
LinearPDESolver (std::shared_ptr< Assembler > assembler, std::shared_ptr< LinearSolver > linearSolver, const std::string ¶mGroup="") | |
The Constructor. More... | |
void | solve (SolutionVector &uCurrentIter) override |
Solve a linear PDE system. More... | |
void | report (std::ostream &sout=std::cout) const |
output statistics / report More... | |
Scalar | suggestTimeStepSize (Scalar oldTimeStep) const |
Suggest a new time-step size based on the old time-step size. More... | |
void | setVerbose (bool val) |
Specifies if the solver ought to be chatty. More... | |
bool | verbose () const |
Returns true if the solver ought to be chatty. More... | |
const std::string & | paramGroup () const |
Returns the parameter group. More... | |
void | reuseMatrix (bool reuse=true) |
Set whether the matrix should be reused. More... | |
virtual void | solve (Variables &vars)=0 |
Solve the given PDE system (usually assemble + solve linear system + update) More... | |
virtual void | solve (Variables &vars, TimeLoop &timeLoop) |
Solve the given PDE system with time step control. More... | |
const Assembler & | assembler () const |
Access the assembler. More... | |
Assembler & | assembler () |
Access the assembler. More... | |
const LinearSolver & | linearSolver () const |
Access the linear solver. More... | |
Protected Member Functions | |
LinearSolver & | linearSolver () |
Access the linear solver. More... | |
bool | checkSizesOfSubMatrices (const Dune::MultiTypeBlockMatrix< FirstRow, Args... > &matrix) const |
Helper function to assure the MultiTypeBlockMatrix's sub-blocks have the correct sizes. More... | |
|
inherited |
export the assembler and linear solver types
|
inherited |
|
inherited |
export the type of variables that represent a numerical solution
|
inline |
The Constructor.
|
inlineinherited |
Access the assembler.
|
inlineinherited |
Access the assembler.
|
inlineprotectedinherited |
Helper function to assure the MultiTypeBlockMatrix's sub-blocks have the correct sizes.
|
inlineprotectedinherited |
Access the linear solver.
|
inlineinherited |
Access the linear solver.
|
inline |
Returns the parameter group.
|
inline |
output statistics / report
|
inline |
Set whether the matrix should be reused.
|
inline |
Specifies if the solver ought to be chatty.
|
inlineoverride |
Solve a linear PDE system.
|
pure virtualinherited |
Solve the given PDE system (usually assemble + solve linear system + update)
vars | instance of the Variables class representing a numerical solution, defining primary and possibly secondary variables and information on the time level. |
Implemented in Dumux::NewtonSolver< Assembler, LinearSolver, Reassembler, Comm >, and Dumux::NewtonSolver< Assembler, LinearSolver, DefaultPartialReassembler, Dune::CollectiveCommunication< Dune::MPIHelper::MPICommunicator > >.
|
inlinevirtualinherited |
Solve the given PDE system with time step control.
vars | instance of the Variables class representing a numerical solution |
timeLoop | a reference to the current time loop |
Reimplemented in Dumux::NewtonSolver< Assembler, LinearSolver, Reassembler, Comm >, and Dumux::NewtonSolver< Assembler, LinearSolver, DefaultPartialReassembler, Dune::CollectiveCommunication< Dune::MPIHelper::MPICommunicator > >.
|
inline |
Suggest a new time-step size based on the old time-step size.
|
inline |
Returns true if the solver ought to be chatty.