Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

csfl::ISolverIteract Class Reference

#include <itsolver.h>

Inheritance diagram for csfl::ISolverIteract::

csfl::ISolver csfl::ISFLObject csfl::ISolverConjugateGradient csfl::ISolverIterGauss csfl::ISolverIterJacobi csfl::ISolverIterMultiGrid csfl::ISolverIterTdma List of all members.

Public Methods

 ISolverIteract (ILinearSystem *_lsys=NULL, double _tolerance=0.00001, int _iterMax=10000, IContainerParameter *_cont=NULL)
 ISolverIteract (ISolverIteract *)
 ~ISolverIteract ()
double Tolerance ()
void SetTolerance (double _v)
int IterMax ()
void SetIterMax (int _v)
int Iteract ()
void SetContainerParameter (IContainerParameter *_cont)
IContainerParameterContainerParameter ()
virtual void Solve ()
virtual void Solve (ILinearSystem *)
virtual double SolverError ()

Public Attributes

IAction ActionConverge

Protected Attributes

IContainerParametercont
int iterMax
int iter
double tolerance

Detailed Description

Classe base para os diferentes tipos de solvers iterativos implementados na biblioteca.


Constructor & Destructor Documentation

csfl::ISolverIteract::ISolverIteract ( ILinearSystem * _lsys = NULL,
double _tolerance = 0.00001,
int _iterMax = 10000,
IContainerParameter * _cont = NULL )
 

O argumento “_lsys“ define o sistema linear implementado no problema, “_cont“ define a região do sistema onde será feita a verificção de erros (ver tutorial), “_tolerance“ representa o valor da tolerância utilizada como critério de convergência e “_iterMax“ representa o número máximo de iterações que serão executadas pelo solver.

csfl::ISolverIteract::ISolverIteract ( ISolverIteract * )
 

csfl::ISolverIteract::~ISolverIteract ( )
 


Member Function Documentation

IContainerParameter * csfl::ISolverIteract::ContainerParameter ( ) [inline]
 

int csfl::ISolverIteract::IterMax ( ) [inline, virtual]
 

Retorna o número máximo de iterações que serão executadas pelo solver na resolução do sistema linear.

Reimplemented from csfl::ISolver.

int csfl::ISolverIteract::Iteract ( ) [inline, virtual]
 

Retorna o número de iterações executadas pelo solver na resolução do sistema linear.

Reimplemented from csfl::ISolver.

void csfl::ISolverIteract::SetContainerParameter ( IContainerParameter * _cont )
 

Define uma região do domínio em que os erros serão verificados (ver tutoriais).

void csfl::ISolverIteract::SetIterMax ( int _v ) [inline, virtual]
 

Define o número máximo de iterações que serão executadas pelo solver na resolução do sistema linear. O parâmetro “_v“ define o novo número máximo de iterações.

Reimplemented from csfl::ISolver.

void csfl::ISolverIteract::SetTolerance ( double _v ) [inline, virtual]
 

Modifica o valor da tolerância utilizada como critério de convergência na solução do sistema linear.

Reimplemented from csfl::ISolver.

void csfl::ISolverIteract::Solve ( ILinearSystem * _lsys ) [inline, virtual]
 

Reimplemented from csfl::ISolver.

Reimplemented in csfl::ISolverConjugateGradient, csfl::ISolverIterGauss, csfl::ISolverIterJacobi, csfl::ISolverIterTdma, and csfl::ISolverIterMultiGrid.

void csfl::ISolverIteract::Solve ( ) [inline, virtual]
 

Resolve o sistema linear de equações até que um dos critérios de convergência seja atingido: i) Erro menor do que a tolerância especificada, ii) Número de iterações igual ao máximo especificado.

Reimplemented from csfl::ISolver.

Reimplemented in csfl::ISolverConjugateGradient, csfl::ISolverIterGauss, csfl::ISolverIterJacobi, csfl::ISolverIterTdma, and csfl::ISolverIterMultiGrid.

double csfl::ISolverIteract::SolverError ( ) [virtual]
 

Retorna o valor do erro encontrado na resolução do sistema linear.

Reimplemented in csfl::ISolverConjugateGradient.

double csfl::ISolverIteract::Tolerance ( ) [inline, virtual]
 

Retorna o valor da tolerância utilizada como critério de convergência na solução do sistema linear.

Reimplemented from csfl::ISolver.


Member Data Documentation

IAction csfl::ISolverIteract::ActionConverge
 

Objeto IAction chamado quando o solver converge.

IContainerParameter * csfl::ISolverIteract::cont [protected]
 

int csfl::ISolverIteract::iter [protected]
 

int csfl::ISolverIteract::iterMax [protected]
 

double csfl::ISolverIteract::tolerance [protected]
 


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

 

CFD Project | Documents | Downloads | Contact us | Use Terms

 

© SINMEC/EMC/UFSC, 2001.

All rights reserved.

Last Update: Jan. 18, 2002

 Webmaster