![]() |
OpenCAEPoro
0.2.0 Sep/22/2022
A simulator for multicomponent porous media flow
|
Linear solvers for discrete systems. More...
#include <LinearSystem.hpp>
Public Member Functions | |
| void | AllocateRowMem (const OCP_USI &dimMax, const USI &nb) |
| Allocate memory for linear system with max possible number of rows. | |
| void | AllocateColMem () |
| Allocate memory for each matrix row with max possible number of columns. | |
| void | AllocateColMem (const OCP_USI &colnum) |
| Allocate memory for each matrix row with a constant columns. | |
| void | EnlargeRowCap (const OCP_USI &row, const USI &n) |
| Enlarge row capacity. | |
| void | AssembleRhs (const vector< OCP_DBL > &rhs) |
| Assign Rhs — used for FIM now. | |
| void | ClearData () |
| Clear the internal matrix data for scalar-value problems. | |
| vector< OCP_DBL > & | GetSolution () |
| Return the solution. | |
| void | CheckEquation () const |
| Check whether NAN or INF occurs in equations, used in debug mode. | |
| void | CheckSolution () const |
| Check whether NAN or INF occurs in solutions, used in debug mode. | |
| void | OutputLinearSystem (const string &fileA, const string &fileb) const |
| Output the mat and rhs to fileA and fileb. // TODO: output to some obj? | |
| void | OutputSolution (const string &filename) const |
| Output the solution to a disk file name. | |
| void | SetupLinearSolver (const USI &i, const string &dir, const string &file) |
| Setup LinearSolver. | |
| void | AssembleMatLinearSolver () |
| Assemble Mat for Linear Solver. | |
| OCP_INT | Solve () |
| Solve the Linear System. | |
| USI | GetNumIters () |
| Return the Max Iters. | |
Friends | |
| class | OpenCAEPoro |
| class | BulkConn |
| class | Well |
Linear solvers for discrete systems.
Definition at line 30 of file LinearSystem.hpp.