Rev | Line | |
---|
[5772] | 1 | /*!\file: ElementMatrix.h
|
---|
| 2 | * \brief container for information needed to plug element matrix generated by elements
|
---|
| 3 | * into the Kff and Kfs global matrices.
|
---|
[5827] | 4 | * This object will hold the element matrix on the g-set, the local as well as global
|
---|
[5772] | 5 | * dof lists in the f and s sets.
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #ifndef _ELEMENT_MATRIX_H_
|
---|
| 9 | #define _ELEMENT_MATRIX_H_
|
---|
| 10 |
|
---|
| 11 | /*Headers:*/
|
---|
| 12 | /*{{{1*/
|
---|
| 13 | #include "../Object.h"
|
---|
| 14 | #include "../../toolkits/toolkits.h"
|
---|
[5989] | 15 | #include "../../EnumDefinitions/EnumDefinitions.h"
|
---|
| 16 | class Node;
|
---|
[5772] | 17 | /*}}}*/
|
---|
| 18 |
|
---|
| 19 | class ElementMatrix{
|
---|
| 20 |
|
---|
| 21 | public:
|
---|
| 22 |
|
---|
| 23 | int nrows;
|
---|
| 24 | int ncols;
|
---|
[5821] | 25 | bool square;
|
---|
[5772] | 26 | bool kff;
|
---|
[5831] | 27 | double* values;
|
---|
[5772] | 28 |
|
---|
| 29 | //gset
|
---|
[5827] | 30 | int* gglobaldoflist;
|
---|
[5772] | 31 |
|
---|
| 32 | /*row wise: */
|
---|
| 33 | //fset
|
---|
| 34 | int row_fsize;
|
---|
[5827] | 35 | int* row_flocaldoflist;
|
---|
| 36 | int* row_fglobaldoflist;
|
---|
[5772] | 37 | //sset
|
---|
| 38 | int row_ssize;
|
---|
[5827] | 39 | int* row_slocaldoflist;
|
---|
| 40 | int* row_sglobaldoflist;
|
---|
[5772] | 41 |
|
---|
| 42 | /*column wise: */
|
---|
| 43 | //fset
|
---|
| 44 | int col_fsize;
|
---|
[5827] | 45 | int* col_flocaldoflist;
|
---|
| 46 | int* col_fglobaldoflist;
|
---|
[5772] | 47 | //sset
|
---|
| 48 | int col_ssize;
|
---|
[5827] | 49 | int* col_slocaldoflist;
|
---|
| 50 | int* col_sglobaldoflist;
|
---|
[5772] | 51 |
|
---|
| 52 | /*ElementMatrix constructors, destructors {{{1*/
|
---|
| 53 | ElementMatrix();
|
---|
[5831] | 54 | ElementMatrix(ElementMatrix* Ke1,ElementMatrix* Ke2);
|
---|
[5873] | 55 | ElementMatrix(ElementMatrix* Ke1,ElementMatrix* Ke2,ElementMatrix* Ke3);
|
---|
[5989] | 56 | ElementMatrix(Node** nodes,int numnodes,Parameters* parameters,int approximation=NoneApproximationEnum);
|
---|
[5772] | 57 | ~ElementMatrix();
|
---|
| 58 | /*}}}*/
|
---|
| 59 | /*ElementMatrix specific routines {{{1*/
|
---|
| 60 | void AddValues(double* Ke_gg);
|
---|
| 61 | void AddToGlobal(Mat Kgg, Mat Kff, Mat Kfs);
|
---|
| 62 | void Echo(void);
|
---|
[5885] | 63 | void CheckConsistency(void);
|
---|
[5831] | 64 | void Init(ElementMatrix* Ke);
|
---|
[5772] | 65 | /*}}}*/
|
---|
| 66 | };
|
---|
| 67 | #endif //#ifndef _ELEMENT_MATRIX_H_
|
---|
Note:
See
TracBrowser
for help on using the repository browser.