-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTPZElastoPlasticIntPointsStructMatrix.h
76 lines (47 loc) · 1.8 KB
/
TPZElastoPlasticIntPointsStructMatrix.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/**
* @file
* @brief Contains the TPZSolveMatrix class which implements a solution based on a matrix procedure.
*/
#ifndef TPZIntPointsFEM_h
#define TPZIntPointsFEM_h
//#include <StrMatrix/TPZSSpStructMatrix.h>
#include <TPZSSpStructMatrix.h>
#include "pzsysmp.h"
#include "tpzverysparsematrix.h"
#include "TPZIrregularBlocksMatrix.h"
#include "TPZNumericalIntegrator.h"
#include <map>
class TPZElastoPlasticIntPointsStructMatrix : public TPZSymetricSpStructMatrix {
public:
/** @brief Default constructor */
TPZElastoPlasticIntPointsStructMatrix();
/** @brief Creates the object based on a Compmesh
* @param Compmesh : Computational mesh */
TPZElastoPlasticIntPointsStructMatrix(TPZCompMesh *cmesh);
/** @brief Default destructor */
~TPZElastoPlasticIntPointsStructMatrix();
/** @brief Clone */
TPZStructMatrix *Clone();
TPZMatrix<STATE> * Create();
TPZMatrix<STATE> *CreateAssemble(TPZFMatrix<STATE> &rhs, TPZAutoPointer<TPZGuiInterface> guiInterface);
void Assemble(TPZMatrix<STATE> & mat, TPZFMatrix<STATE> & rhs, TPZAutoPointer<TPZGuiInterface> guiInterface);
void Assemble(TPZFMatrix<STATE> & rhs, TPZAutoPointer<TPZGuiInterface> guiInterface);
private:
#ifdef USING_CUDA
void TransferDataToGPU();
#endif
void SetUpDataStructure();
void ComputeDomainElementIndexes(TPZVec<int> &element_indexes);
void ClassifyMaterialsByDimension();
void AssembleBoundaryData();
int fDimension;
TPZNumericalIntegrator fIntegrator;
TPZVerySparseMatrix<STATE> fSparseMatrixLinear; //-> BC data
TPZFMatrix<STATE> fRhsLinear; //-> BC data
std::set<int> fBCMaterialIds;
#ifdef USING_CUDA
TPZCudaCalls fCudaCalls;
TPZVecGPU<REAL> dRhsLinear;
#endif
};
#endif /* TPZIntPointsFEM_h */