OpenCAEPoro  0.2.0 Sep/22/2022
A simulator for multicomponent porous media flow
Public Member Functions | Public Attributes | List of all members
FaspSolver Class Reference

Basic FASP solver class. More...

#include <FaspSolver.hpp>

Inheritance diagram for FaspSolver:
LinearSolver ScalarFaspSolver VectorFaspSolver

Public Member Functions

void SetupParam (const string &dir, const string &file) override
 Set FASP parameters.
 
USI GetNumIters () const override
 Get number of iterations used by iterative solver.
 
- Public Member Functions inherited from LinearSolver
virtual void InitParam ()=0
 Initialize the params for linear solvers.
 
virtual void Allocate (const vector< USI > &rowCapacity, const OCP_USI &maxDim, const USI &blockDim)=0
 Allocate maximum memory for linear solvers.
 
virtual void AssembleMat (const vector< vector< USI >> &colId, const vector< vector< OCP_DBL >> &val, const OCP_USI &dim, const USI &blockDim, vector< OCP_DBL > &rhs, vector< OCP_DBL > &u)=0
 Assemble matrix for linear solver from the internal matrix data.
 
virtual OCP_INT Solve ()=0
 Solve the linear system and return the number of iterations.
 

Public Attributes

string solveDir
 Current work dir.
 
string solveFile
 Relative path of fasp file.
 
input_param inParam
 Parameters from input files.
 
ITS_param itParam
 Parameters for iterative method.
 
AMG_param amgParam
 Parameters for AMG method.
 
ILU_param iluParam
 Parameters for ILU method.
 
SWZ_param swzParam
 Parameters for Schwarz method.
 

Detailed Description

Basic FASP solver class.

Definition at line 64 of file FaspSolver.hpp.


The documentation for this class was generated from the following files: