SolverPerformance is the class returned by the LduMatrix solver containing performance statistics. More...
Public Member Functions | |
ClassName ("SolverPerformance") | |
SolverPerformance () | |
SolverPerformance (const word &solverName, const word &fieldName, const Type &iRes=pTraits< Type >::zero, const Type &fRes=pTraits< Type >::zero, const labelType &nIter=pTraits< labelType >::zero, const bool converged=false, const bool singular=false) | |
const word & | solverName () const noexcept |
word & | solverName () noexcept |
const word & | fieldName () const noexcept |
const Type & | initialResidual () const noexcept |
Type & | initialResidual () noexcept |
const Type & | finalResidual () const noexcept |
Type & | finalResidual () noexcept |
const labelType & | nIterations () const noexcept |
labelType & | nIterations () noexcept |
bool | converged () const noexcept |
bool | singular () const |
bool | checkConvergence (const Type &tolerance, const Type &relTolerance, const int logLevel=0) |
bool | checkSingularity (const Type &residual) |
void | print (Ostream &os) const |
void | replace (const label cmpt, const SolverPerformance< typename pTraits< Type >::cmptType > &sp) |
SolverPerformance< typename pTraits< Type >::cmptType > | max () |
bool | operator!= (const SolverPerformance< Type > &) const |
Foam::SolverPerformance< Foam::scalar > | max () |
SolverPerformance< scalar > | max () |
Static Public Attributes | |
static const scalar | great_ |
static const scalar | small_ |
static const scalar | vsmall_ |
Friends | |
SolverPerformance< Type > | Foam::max (const SolverPerformance< Type > &, const SolverPerformance< Type > &) |
Istream & | operator>> (Istream &, SolverPerformance< Type > &) |
Ostream & | operator (Ostream &, const SolverPerformance< Type > &) |
SolverPerformance is the class returned by the LduMatrix solver containing performance statistics.
Definition at line 48 of file SolverPerformance.H.
|
inline |
Definition at line 112 of file SolverPerformance.H.
|
inline |
Definition at line 123 of file SolverPerformance.H.
ClassName | ( | "SolverPerformance" | ) |
|
inlinenoexcept |
Definition at line 146 of file SolverPerformance.H.
Referenced by fvMatrix< Type >::solveSegregated(), and solverInfo::updateSolverInfo().
|
inlinenoexcept |
Definition at line 152 of file SolverPerformance.H.
|
inlinenoexcept |
Definition at line 159 of file SolverPerformance.H.
Referenced by data::setSolverPerformance().
|
inlinenoexcept |
Definition at line 166 of file SolverPerformance.H.
Referenced by radiativeIntensityRay::correct(), PCG::scalarSolve(), PBiCGStab::scalarSolve(), PPCG::scalarSolveCG(), SmoothSolver< Type, DType, LUType >::solve(), PCICG< Type, DType, LUType >::solve(), PBiCCCG< Type, DType, LUType >::solve(), PBiCICG< Type, DType, LUType >::solve(), PBiCG::solve(), smoothSolver::solve(), GAMGSolver::solve(), and solverInfo::updateSolverInfo().
|
inlinenoexcept |
Definition at line 172 of file SolverPerformance.H.
|
inlinenoexcept |
Definition at line 179 of file SolverPerformance.H.
Referenced by PCG::scalarSolve(), PBiCGStab::scalarSolve(), PPCG::scalarSolveCG(), SmoothSolver< Type, DType, LUType >::solve(), PCICG< Type, DType, LUType >::solve(), PBiCCCG< Type, DType, LUType >::solve(), PBiCICG< Type, DType, LUType >::solve(), PBiCG::solve(), smoothSolver::solve(), GAMGSolver::solve(), and solverInfo::updateSolverInfo().
|
inlinenoexcept |
Definition at line 185 of file SolverPerformance.H.
|
inlinenoexcept |
Definition at line 192 of file SolverPerformance.H.
Referenced by PCG::scalarSolve(), PBiCGStab::scalarSolve(), PPCG::scalarSolveCG(), SmoothSolver< Type, DType, LUType >::solve(), PCICG< Type, DType, LUType >::solve(), PBiCCCG< Type, DType, LUType >::solve(), PBiCICG< Type, DType, LUType >::solve(), PBiCG::solve(), smoothSolver::solve(), GAMGSolver::solve(), and solverInfo::updateSolverInfo().
|
inlinenoexcept |
Definition at line 198 of file SolverPerformance.H.
|
inlinenoexcept |
Definition at line 205 of file SolverPerformance.H.
Referenced by solverInfo::updateSolverInfo().
bool singular | ( | ) | const |
Definition at line 44 of file SolverPerformance.C.
bool checkConvergence | ( | const Type & | tolerance, |
const Type & | relTolerance, | ||
const int | logLevel = 0 |
||
) |
Definition at line 57 of file SolverPerformance.C.
References Foam::cmptMultiply(), Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Info.
Referenced by PCG::scalarSolve(), PBiCGStab::scalarSolve(), PPCG::scalarSolveCG(), SmoothSolver< Type, DType, LUType >::solve(), PCICG< Type, DType, LUType >::solve(), PBiCCCG< Type, DType, LUType >::solve(), PBiCICG< Type, DType, LUType >::solve(), PBiCG::solve(), smoothSolver::solve(), and GAMGSolver::solve().
bool checkSingularity | ( | const Type & | residual | ) |
Definition at line 29 of file SolverPerformance.C.
References Foam::component().
Referenced by PCG::scalarSolve(), PBiCGStab::scalarSolve(), PBiCICG< Type, DType, LUType >::solve(), PCICG< Type, DType, LUType >::solve(), PBiCCCG< Type, DType, LUType >::solve(), and PBiCG::solve().
void print | ( | Ostream & | os | ) | const |
Definition at line 86 of file SolverPerformance.C.
References Foam::component(), Foam::endl(), and os().
Referenced by faMatrix< Type >::solve(), fvMatrix::fvSolver::solve(), GAMGSolver::solve(), fvMatrix< Type >::solveCoupled(), and fvMatrix< Type >::solveSegregated().
void replace | ( | const label | cmpt, |
const SolverPerformance< typename pTraits< Type >::cmptType > & | sp | ||
) |
Definition at line 119 of file SolverPerformance.C.
SolverPerformance<typename pTraits<Type>::cmptType> max | ( | ) |
bool operator!= | ( | const SolverPerformance< Type > & | sp | ) | const |
Definition at line 150 of file SolverPerformance.C.
Foam::SolverPerformance< typename Foam::pTraits< Type >::cmptType > max | ( | ) |
Definition at line 36 of file solverPerformance.C.
SolverPerformance< scalar > max | ( | ) |
|
friend |
|
friend |
|
friend |
|
static |
Definition at line 101 of file SolverPerformance.H.
Referenced by PCG::scalarSolve(), PCICG< Type, DType, LUType >::solve(), and PBiCICG< Type, DType, LUType >::solve().
|
static |
Definition at line 104 of file SolverPerformance.H.
Referenced by lduMatrix::solver::normFactor().
|
static |
Definition at line 107 of file SolverPerformance.H.
Referenced by PBiCICG< Type, DType, LUType >::solve(), and PCICG< Type, DType, LUType >::solve().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.