|
ESTER
Evolution STEllaire en Rotation
|
Stores all the equations for a given block (a block can either be a domain or a set of boundary condition). More...

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 |
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.
|
inline |
|
inline |
| 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.
| ieq | index of the equation where the term is to be added |
| ivar | index the variable of the term |
| type | the type of term to be added |
| d | the D matrix of the term |
| l | the L matrix of the term |
| r | the R matrix of the term |
| i | the I matrix of the term |

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

Introduces a term of type 'l'.

|
inline |
Introduces a term of type 'm'.

|
inline |
Introduces a term of type 'f'.

|
inline |
Introduces a term of type 'g'.

Introduces a term of type 'r'.

|
inline |
Introduces a term of type 's'.

| void solver::solver_block::destroy | ( | ) |
Destroys the object and frees memory.

| void solver::solver_block::init | ( | int | nvar | ) |
Initializes the object with nvar variables.

| void solver::solver_block::reset | ( | ) |
Resets all equations of the block.

| void solver::solver_block::reset | ( | int | ieq | ) |
Resets the ieq-th equation of the block.
|
friend |
|
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.
|
private |
eq_set(i) is 1 if the i-th equation is defined in this block.
|
private |
nr[i] is the radial resolution of the i-th variable
|
private |
nth[i] is the azimuthal resolution of the i-th variable.
|
private |
The number of variables (and equation) of the problem.
1.8.6