chrono::fsi::ChFsiLinearSolverBiCGStab Class Reference

Description

BiCG-Stab iterative linear solver.

#include <ChFsiLinearSolverBiCGStab.h>

Inheritance diagram for chrono::fsi::ChFsiLinearSolverBiCGStab:
Collaboration diagram for chrono::fsi::ChFsiLinearSolverBiCGStab:

Public Member Functions

 ChFsiLinearSolverBiCGStab (Real mrel_res=1e-8, Real mabs_res=1e-4, int mmax_iter=1000, bool mverbose=false)
 Constructor of the ChFsiLinearSolverBiCGStab class.
 
 ~ChFsiLinearSolverBiCGStab ()
 Destructor of the ChFsiLinearSolverBiCGStab class.
 
virtual void Solve (int SIZE, int NNZ, Real *A, unsigned int *ArowIdx, unsigned int *AcolIdx, Real *x, Real *b) override
 Solves the linear system on the device.
 
- Public Member Functions inherited from chrono::fsi::ChFsiLinearSolver
 ChFsiLinearSolver (SolverType msolver, Real mrel_res=1e-8, Real mabs_res=1e-4, int mmax_iter=1000, bool mverbose=false)
 Constructor of the ChFsiLinearSolver class.
 
virtual ~ChFsiLinearSolver ()
 Destructor of the ChFsiLinearSolver class.
 
SolverType GetType ()
 Return the solver type.
 
void SetVerbose (bool mv)
 Set verbose output from solver.
 
bool GetVerbose () const
 Return whether or not verbose output is enabled.
 
Real GetResidual ()
 Return the current residual.
 
int GetNumIterations ()
 Return the number of current Iterations.
 
void SetIterationLimit (int numIter)
 Set the maximum number of iterations.
 
int GetIterationLimit ()
 Set the maximum number of iterations.
 
void SetAbsRes (Real mabs_res)
 Set the absolute residual.
 
Real GetAbsRes ()
 Get the absolute residual.
 
void SetRelRes (Real mrel_res)
 Get the relative residual.
 
Real GetRelRes ()
 Get the relative residual.
 
int GetSolverStatus ()
 Return the solver status. More...
 

Additional Inherited Members

- Public Types inherited from chrono::fsi::ChFsiLinearSolver
enum  SolverType {
  BICGSTAB, GMRES, CR, CG,
  SAP
}
 Solver type supported in ISPH.
 
- Protected Attributes inherited from chrono::fsi::ChFsiLinearSolver
Real rel_res = 1e-3
 
Real abs_res = 1e-6
 
int max_iter = 500
 
bool verbose = false
 
int Iterations = 0
 
Real residual = 1e5
 
int solver_status = 0
 

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_fsi/math/ChFsiLinearSolverBiCGStab.h
  • /builds/uwsbel/chrono/src/chrono_fsi/math/ChFsiLinearSolverBiCGStab.cpp