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

csfl::ILinearSystem Class Reference

#include <linearsys.h>

Inheritance diagram for csfl::ILinearSystem::

csfl::ISFLObject csfl::ILinearSystem9D List of all members.

Public Methods

 ILinearSystem (int _variables)
 ILinearSystem (int _row, int _col)
 ILinearSystem (const ISize &_size)
 ILinearSystem (ILinearSystem *_lsys)
 ~ILinearSystem ()
VectorVectorB ()
VectorVectorX ()
void SetVectorB (Vector *_vecB)
void SetVectorX (Vector *_vecX)
virtual double MatrixA (int _i, int _j)
double VectorX (int _i)
double VectorB (int _i)
virtual void MatrixA (int _i, int _j, double _val)
void VectorX (int _i, double _val)
void VectorB (int _i, double _val)
ISize GridSize ()
ISize Size ()
int Variables ()

Protected Attributes

ISize gsize
ISize lsize
MatrixmatA
VectorvecB
VectorvecX

Detailed Description

Classe que representa um sistema linear de equações na forma matricial A.X = B


Constructor & Destructor Documentation

csfl::ILinearSystem::ILinearSystem ( int _variables )
 

O argumento “_variables” representa o número de variáveis do sistema linear, e define o tamanho da matriz "_variables x _variables" do sistema linear.

csfl::ILinearSystem::ILinearSystem ( int _row,
int _col )
 

Os argumentos “_row” e ”_col” definem o número de linhas e colunas da matriz do sistema linear, respectivamente.

csfl::ILinearSystem::ILinearSystem ( const ISize & _size )
 

O argumento “_size” define o tamanho da matriz do sistema linear.

csfl::ILinearSystem::ILinearSystem ( ILinearSystem * _lsys )
 

csfl::ILinearSystem::~ILinearSystem ( )
 


Member Function Documentation

ISize csfl::ILinearSystem::GridSize ( ) [inline]
 

Retorna o tamanho da malha do problema. GridSize().width representa o numero de volumes de controle na direção “i” e GridSized().height representa o numero de volumes de controle na direção “j”.

void csfl::ILinearSystem::MatrixA ( int _i,
int _j,
double _val ) [inline, virtual]
 

Atribui o valor de “_val” ao elemento da matriz A localizado na “i-ésima” linha e na “j-ésima” coluna.

Reimplemented in csfl::ILinearSystem9D.

double csfl::ILinearSystem::MatrixA ( int _i,
int _j ) [inline, virtual]
 

Retorna o valor do elemento da matriz A localizado na “_i-ésima” linha e na “j-ésima” coluna.

Reimplemented in csfl::ILinearSystem9D.

void csfl::ILinearSystem::SetVectorB ( Vector * _vecB ) [inline]
 

Atribui “_vecB“ ao vetor B do sistema linear.

void csfl::ILinearSystem::SetVectorX ( Vector * _vecX ) [inline]
 

Atribui “_vecX“ ao vetor X do sistema linear.

ISize csfl::ILinearSystem::Size ( ) [inline]
 

Retorna o tamanho do sistema linear.

int csfl::ILinearSystem::Variables ( ) [inline]
 

Retorna o número de variáveis do sistema linear.

void csfl::ILinearSystem::VectorB ( int _i,
double _val ) [inline]
 

Atribui o valor de “_val” ao “i-ésimo” componente do vetor B.

double csfl::ILinearSystem::VectorB ( int _i ) [inline]
 

Retorna o valor do “i-ésimo” componente do vetor B.

Vector * csfl::ILinearSystem::VectorB ( ) [inline]
 

Retorna um ponteiro ao local da memória onde os componentes do vetor B estão alocados.

void csfl::ILinearSystem::VectorX ( int _i,
double _val ) [inline]
 

Atribui o valor de “_val” ao “i-ésimo” componente do vetor X.

double csfl::ILinearSystem::VectorX ( int _i ) [inline]
 

Retorna o valor do “i-ésimo” componente do vetor X.

Vector * csfl::ILinearSystem::VectorX ( ) [inline]
 

Retorna um ponteiro ao local da memória onde os componentes do vetor X estão alocados.


Member Data Documentation

ISize csfl::ILinearSystem::gsize [protected]
 

ISize csfl::ILinearSystem::lsize [protected]
 

Matrix * csfl::ILinearSystem::matA [protected]
 

Vector * csfl::ILinearSystem::vecB [protected]
 

Vector * csfl::ILinearSystem::vecX [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