#include <AlgebraicDofBase.h>
Inheritance diagram for AlgebraicDofBase::

Public Methods | |
| AlgebraicDofBase () | |
| AlgebraicDofBase (const AlgebraicDofBase &alg_dof) | |
| AlgebraicDofBase (int glob_idx_) | |
| AlgebraicDofBase (int glob_idx_, const VecSimple(NUMT) &coeffs_, const VecSimple(int) &pos_idx_) | |
| virtual | ~AlgebraicDofBase () |
| AlgebraicDofBase& | operator= (const AlgebraicDofBase &alg_dof) |
| bool | redim (int glob_idx_, const VecSimple(NUMT) &coeffs_, const VecSimple(int) &pos_idx_) |
| void | update (int old_base, int new_base) |
| int | getIndexNo () const |
| void | setIndexNo (int glob_idx_) |
| int | getNoEntries () const |
| NUMT& | coeff (int i) |
| const NUMT& | coeff (int i) const |
| int& | position (int i) |
| const int& | position (int i) const |
| void | setCoeff (int i, NUMT coeff, int pos) |
| void | getCoeff (int i, NUMT &coeff, int &pos) const |
| void | insert (NUMT coeff, int pos) |
| void | fill (int glob_idx_, const VecSimple(NUMT) &coeffs_, const VecSimple(int) &pos_idx_) |
| int | find (int pos) |
| virtual void | print (Os os) const=0 |
| virtual void | scan (Is is)=0 |
Protected Attributes | |
| int | glob_idx |
| SetOfNo(NUMT) | coeffs |
| SetDistinct(int) | pos_idx |
NAME: AlgebraicDofBase - algebraic degree of freedom base class
DESCRIPTION:
This class serves as the base of for algebraic entities extending the the algebraic problem posed by the discretization of a PDE-based model.
|
|
The constructor with integer arguments allocates the indicated number of coefficients and sets all these coefficents to be zero. It also initializes the global size of the matrix row or column corresponding to the new equation or coupling (i.e., the sum of the number of affected PDE unknowns and the number of extra algebraic unknowns), and sets the global equation number. There is also a "redim" function doing the same type of initialization. |
|
|
See documentation of one of the overloaded constructor. |
|
|
See documentation of one of the overloaded constructor. |
|
|
See documentation of one of the overloaded constructor. |
|
|
|
|
|
See documentation of one of the overloaded functions. |
|
|
Provides access (read or write) to the "i"-th coefficient. The index "i" refers to the local numbering, not the global matrix numbering. |
|
|
Sets the global index number and adds coefficient and position values from the argument arrays. |
|
|
Searches through the stored data looking for a coefficient in global position "pos". The function returns the local index for this entry, which can then be input to "coeff" or similar functions. If there is no coefficient associated with "pos", the local index zero is returned. |
|
|
Provides read access to the "i"-th coefficient and its position index. The index "i" refers to the local numbering, not the global matrix numbering. This is a combination of "coeff" and "position". |
|
|
Returns the global index (row or column number) for this contribution. |
|
|
Returns the number of algebraic coefficients in the current contribution. |
|
|
Adds a new coefficient in a new position "pos" to the contribution. An error message is issued when trying to insert a coefficient in an already occupied position. |
|
|
|
|
|
See documentation of one of the overloaded functions. |
|
|
Provides access (read or write) to the "i"-th global position index.The index "i" refers to the local numbering, not the global matrix numbering. |
|
|
Reimplemented in AlgebraicCoupling, and AlgebraicEquation. |
|
|
Redimensions the current algebraic contribution (equation or coupling), i.e., sets the total number of rows or columns for this equation or coupling (including PDE and algebraic unknowns), the global index for this contribution (usually in the range n+1,...,n+q where n is the number of PDE unknowns and q is the number of algebraic contributions), and the number of nonzero coefficients in this contribution. An overloaded version of this function also accepts pre-filled coefficient and index arrays, copying these data into the object. |
|
|
Reimplemented in AlgebraicCoupling, and AlgebraicEquation. |
|
|
Provides write access to the "i"-th coefficient and its position index. The index "i" refers to the local numbering, not the global matrix numbering. This is a combination of "coeff" and "position". |
|
|
Sets the global index (row or column number) for this contribution. |
|
|
Updates the global index and position indices due to a change of basis (i.e., the number of rows or columns in the original algebraic problem arising from the PDE part). The local numbering is unchanged. |
|
|
|
|
|
|
|
|
|