ESTER
Evolution STEllaire en Rotation
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | Friends | List of all members
solver::solver_block Class Reference

Stores all the equations for a given block (a block can either be a domain or a set of boundary condition). More...

Collaboration diagram for solver::solver_block:
Collaboration graph
[legend]

Public Member Functions

 solver_block ()
 
 ~solver_block ()
 
void init (int nvar)
 Initializes the object with nvar variables. More...
 
void destroy ()
 Destroys the object and frees memory. More...
 
void reset ()
 Resets all equations of the block. More...
 
void reset (int ieq)
 Resets the ieq-th equation of the block. More...
 
void add (int ieq, int ivar, char type, const matrix *d, const matrix *l, const matrix *r, const matrix *i)
 Introduces a term in an equation of the block. More...
 
void add_d (int ieq, int ivar, const matrix &d)
 Introduces a term of type 'd' for the ivar-th variable in the ieq-th equation. More...
 
void add_l (int ieq, int ivar, const matrix &d, const matrix &l)
 Introduces a term of type 'l'. More...
 
void add_r (int ieq, int ivar, const matrix &d, const matrix &r)
 Introduces a term of type 'r'. More...
 
void add_lr (int ieq, int ivar, const matrix &d, const matrix &l, const matrix &r)
 Introduces a term of type 'f'. More...
 
void add_li (int ieq, int ivar, const matrix &d, const matrix &l, const matrix &i)
 Introduces a term of type 'm'. More...
 
void add_ri (int ieq, int ivar, const matrix &d, const matrix &r, const matrix &i)
 Introduces a term of type 's'. More...
 
void add_lri (int ieq, int ivar, const matrix &d, const matrix &l, const matrix &r, const matrix &i)
 Introduces a term of type 'g'. More...
 

Private Attributes

int nv
 The number of variables (and equation) of the problem. More...
 
int * nr
 nr[i] is the radial resolution of the i-th variable More...
 
int * nth
 nth[i] is the azimuthal resolution of the i-th variable. More...
 
solver_elem *** eq
 Pointers to all the terms of all the equations of the block. More...
 
matrix eq_set
 eq_set(i) is 1 if the i-th equation is defined in this block. More...
 

Friends

class solver
 

Detailed Description

Stores all the equations for a given block (a block can either be a domain or a set of boundary condition).

The equations are represented as an array of linked list of solver_elem objects eq.

Constructor & Destructor Documentation

solver::solver_block::solver_block ( )
inline
solver::solver_block::~solver_block ( )
inline

Member Function Documentation

void solver::solver_block::add ( int  ieq,
int  ivar,
char  type,
const matrix d,
const matrix l,
const matrix r,
const matrix i 
)

Introduces a term in an equation of the block.

Parameters
ieqindex of the equation where the term is to be added
ivarindex the variable of the term
typethe type of term to be added
dthe D matrix of the term
lthe L matrix of the term
rthe R matrix of the term
ithe I matrix of the term
See Also
- Term representation in the equations

Here is the call graph for this function:

void solver::solver_block::add_d ( int  ieq,
int  ivar,
const matrix d 
)
inline

Introduces a term of type 'd' for the ivar-th variable in the ieq-th equation.

Here is the call graph for this function:

void solver::solver_block::add_l ( int  ieq,
int  ivar,
const matrix d,
const matrix l 
)
inline

Introduces a term of type 'l'.

Here is the call graph for this function:

void solver::solver_block::add_li ( int  ieq,
int  ivar,
const matrix d,
const matrix l,
const matrix i 
)
inline

Introduces a term of type 'm'.

Here is the call graph for this function:

void solver::solver_block::add_lr ( int  ieq,
int  ivar,
const matrix d,
const matrix l,
const matrix r 
)
inline

Introduces a term of type 'f'.

Here is the call graph for this function:

void solver::solver_block::add_lri ( int  ieq,
int  ivar,
const matrix d,
const matrix l,
const matrix r,
const matrix i 
)
inline

Introduces a term of type 'g'.

Here is the call graph for this function:

void solver::solver_block::add_r ( int  ieq,
int  ivar,
const matrix d,
const matrix r 
)
inline

Introduces a term of type 'r'.

Here is the call graph for this function:

void solver::solver_block::add_ri ( int  ieq,
int  ivar,
const matrix d,
const matrix r,
const matrix i 
)
inline

Introduces a term of type 's'.

Here is the call graph for this function:

void solver::solver_block::destroy ( )

Destroys the object and frees memory.

Here is the call graph for this function:

void solver::solver_block::init ( int  nvar)

Initializes the object with nvar variables.

Here is the call graph for this function:

void solver::solver_block::reset ( )

Resets all equations of the block.

Here is the call graph for this function:

void solver::solver_block::reset ( int  ieq)

Resets the ieq-th equation of the block.

Friends And Related Function Documentation

friend class solver
friend

Member Data Documentation

solver_elem*** solver::solver_block::eq
private

Pointers to all the terms of all the equations of the block.

eq[i][j] points to the first solver_elem object of the list representing the terms of the i-th equation associated with the j-th variable.

matrix solver::solver_block::eq_set
private

eq_set(i) is 1 if the i-th equation is defined in this block.

int* solver::solver_block::nr
private

nr[i] is the radial resolution of the i-th variable

int* solver::solver_block::nth
private

nth[i] is the azimuthal resolution of the i-th variable.

int solver::solver_block::nv
private

The number of variables (and equation) of the problem.


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