#include <smaggreg.h>
Public Member Functions | |
void | decompose_aggreg_matrix (gmatrix &sm) |
void | local_aggregated_matrices (gmatrix &sm) |
void | localization_matrices (gtopology >) |
smaggreg () | |
void | smoothed_prolong () |
~smaggreg () | |
Public Attributes | |
aggregator | aggreg |
aggregator | |
long | dimker |
kernel dimension for each aggregate | |
gmatrix * | gm |
local aggregated matrices | |
locmatrix * | lm |
localization matrices | |
long | na |
number of aggregates | |
long | nu |
number of unknowns | |
long * | nuagr |
locmatrix | sp |
long ** | uagr |
k is number if global ordering |
class contains solver of system of linear algebraic equations based on smoothed aggregation concept
JK, 23.12.2006
Definition at line 15 of file smaggreg.h.
smaggreg | ( | ) |
~smaggreg | ( | ) |
Definition at line 26 of file smaggreg.cpp.
void decompose_aggreg_matrix | ( | gmatrix & | sm | ) |
function decomposes (factorizes) matrix of one aggregate
sm | - matrix of one aggregate JK, 6.1.2007 |
Definition at line 222 of file smaggreg.cpp.
References gmatrix::decompose_matrix().
void local_aggregated_matrices | ( | gmatrix & | sm | ) |
function assembles local aggregated matrices
sm | - stiffness matrix of the whole system |
JK, 23.12.2006
Definition at line 204 of file smaggreg.cpp.
References gm, lm, locmatrix::lmxmxlmt01(), and na.
void localization_matrices | ( | gtopology & | gt | ) |
function creates aggregates
function assmebles list of nodes for each aggregates (lnnagr) function computes the numbers of nodes in each aggregate
JK, 23.12.2006 function assembles tentative prolongator
in Brezina thesis, page 68, tentative prolongator is assemled from vectors located in columns in the matrix {P} GEFEL contains class locmatrix which is based on rows Therefore, transposed prolongator is constructed here and algorithm is modified with respect to this fact
JK, 23.12.2006 function assembles localization matrices
JK, 23.12.2006
Definition at line 97 of file smaggreg.cpp.
References locmatrix::addresses(), aggreg, aggregator::assemble_lnagr(), aggregator::assemble_lnnagr(), gtopology::give_dof(), gtopology::give_ndofn(), locmatrix::initiate_ci(), locmatrix::initiate_nncr(), locmatrix::initiate_var(), lm, aggregator::lnagr, aggregator::lnnagr, na, nu, nuagr, and uagr.
void smoothed_prolong | ( | ) |
function assembles smoothed prolongator
JK, 6.1.2007
Definition at line 232 of file smaggreg.cpp.
References aggreg, aggregator::assemble_lnuagr_sp(), dimker, locmatrix::initiate_ci(), locmatrix::initiate_lm(), locmatrix::initiate_var(), na, nu, and sp.
aggregator
Definition at line 73 of file smaggreg.h.
Referenced by localization_matrices(), and smoothed_prolong().
long dimker |
kernel dimension for each aggregate
Definition at line 34 of file smaggreg.h.
Referenced by smaggreg(), and smoothed_prolong().
local aggregated matrices
Definition at line 70 of file smaggreg.h.
Referenced by local_aggregated_matrices().
localization matrices
Definition at line 66 of file smaggreg.h.
Referenced by local_aggregated_matrices(), localization_matrices(), and smaggreg().
long na |
number of aggregates
Definition at line 32 of file smaggreg.h.
Referenced by local_aggregated_matrices(), localization_matrices(), smaggreg(), and smoothed_prolong().
long nu |
number of unknowns
Definition at line 30 of file smaggreg.h.
Referenced by localization_matrices(), smaggreg(), and smoothed_prolong().
long* nuagr |
list of numbers of nodes in aggregates nnagr[i]=j - the i-th aggregate contains j nodes list of nodes in aggregates lnnagr[i][j]=k - the j-th node in the i-th aggregate has number k list of number of unknowns on aggregates nuagr[i]=j - the i-th aggregate contains j unknowns
Definition at line 46 of file smaggreg.h.
Referenced by localization_matrices(), and smaggreg().
tentative prolongator (Brezina, page 68, plongator is defined columnwise there) this formulation assembles transposed prolongator because of structure of class localization matrix (locmatrix.h) smoothed prolongator (Brezina, page 69, plongator is defined columnwise there) this formulation assembles transposed prolongator because of structure of class localization matrix (locmatrix.h)
Definition at line 63 of file smaggreg.h.
Referenced by smoothed_prolong().
long** uagr |
k is number if global ordering
list of unknown id's on aggregates uagr[i][j]=k - the j-th unknown on the i-th aggregate has number k
Definition at line 51 of file smaggreg.h.
Referenced by localization_matrices(), and smaggreg().