Mother abstract class to describe equation. More...
#include <Equa.h>
Public Member Functions | |
| Equa () | |
| Default constructor. | |
| virtual | ~Equa () |
| Destructor. | |
| void | setMesh (Mesh &m) |
| Define mesh and renumber DOFs after removing imposed ones. | |
| Mesh & | getMesh () const |
| Return reference to Mesh instance. | |
| LinearSolver & | getLinearSolver () |
| Return reference to linear solver instance. | |
| Matrix< real_t > * | getMatrix () const |
| Return pointer to matrix. | |
| void | setSolver (Iteration ls, Preconditioner pc=IDENT_PREC) |
| Choose solver for the linear system. | |
| void | setMatrixType (int t) |
| Choose type of matrix. | |
| int | solveLinearSystem (Matrix< real_t > *A, Vect< real_t > &b, Vect< real_t > &x) |
| Solve the linear system with given matrix and right-hand side. | |
| int | solveLinearSystem (Vect< real_t > &b, Vect< real_t > &x) |
| Solve the linear system with given right-hand side. | |
| void | LinearSystemInfo () |
| Print info on linear system solver. | |
Mother abstract class to describe equation.
| void setMatrixType | ( | int | t | ) |
Choose type of matrix.
| [in] | t | Type of the used matrix. To choose among the enumerated values: SKYLINE, SPARSE, DIAGONAL TRIDIAGONAL, SYMMETRIC, UNSYMMETRIC, IDENTITY |
| void setSolver | ( | Iteration | ls, |
| Preconditioner | pc = IDENT_PREC ) |
Choose solver for the linear system.
| [in] | ls | Solver of the linear system. To choose among the enumerated values: DIRECT_SOLVER, CG_SOLVER, GMRES_SOLVER
|
| [in] | pc | Preconditioner to associate to the iterative solver. If the direct solver was chosen for the first argument this argument is not used. Otherwise choose among the enumerated values:
|
Solve the linear system with given matrix and right-hand side.
| [in] | A | Pointer to matrix of the system |
| [in] | b | Vector containing right-hand side |
| [in,out] | x | Vector containing initial guess of solution on input, actual solution on output |