NeoPZ
tpzmatredstructmatrix.cpp
Go to the documentation of this file.
1 
8 #include "pzskylstrmatrix.h"
9 #include "tpzverysparsematrix.h"
10 #include "pzsubcmesh.h"
11 #include "pzmatred.h"
12 
13 template< class TStructMatrix, class TSparseMatrix>
15 {
16 }
17 
18 template< class TStructMatrix, class TSparseMatrix>
21  if (cmesh){
22  TPZSubCompMesh *subCMesh = dynamic_cast<TPZSubCompMesh *>(cmesh);
23  if (!subCMesh){
24  DebugStop();
25  }
26  fInternalEqs = subCMesh->NumInternalEquations();
27  } else {
28  DebugStop();
29  }
30 }
31 
32 
33 template< class TStructMatrix, class TSparseMatrix>
35 {
37 }
38 
39 template< class TStructMatrix, class TSparseMatrix>
41 {
42 }
43 
44 template< class TStructMatrix, class TSparseMatrix>
46 {
48 }
49 
50 template< class TStructMatrix, class TSparseMatrix>
52 {
53  return new TPZMatRedStructMatrix(*this);
54 }
55 
56 template< class TStructMatrix, class TSparseMatrix>
58 {
59  int neq = fMesh->NEquations();
60  TStructMatrix strmat(fMesh);
61  strmat.SetEquationRange(0,fInternalEqs);
62  TPZMatrix<STATE> *InternalStiff = strmat.Create();
64  matred->SetK00(InternalStiff);
65  return matred;
66 }
67 
virtual void SetMesh(TPZCompMesh *)
virtual TPZMatrix< STATE > * Create()
int64_t NEquations()
This computes the number of equations associated with non-restrained nodes.
Definition: pzcmesh.cpp:721
Contains TPZMatRed class which implements a simple substructuring of a linear system of equations...
void SetK00(TPZAutoPointer< TPZMatrix< TVar > > K00)
Sets the matrix pointer of the upper left matrix to K00.
Definition: pzmatred.cpp:134
virtual TPZStructMatrix * Clone()
Refines geometrical mesh (all the elements) num times.
Definition: pzstrmatrix.h:35
TPZCompMesh * fMesh
Pointer to the computational mesh from which the matrix will be generated.
Implements a group of computational elements as a mesh and an element. Computational Mesh...
Definition: pzsubcmesh.h:36
#define DebugStop()
Returns a message to user put a breakpoint in.
Definition: pzerror.h:20
Contains the TPZSkylineStructMatrix class which implements SkyLine Structural Matrices.
void SetMesh(TPZCompMesh *cmesh)
Contains declaration of TPZSubCompMesh class which implements a group of computational elements as a ...
Implements a simple substructuring of a linear system of equations, composed of 4 submatrices...
Definition: pzmatred.h:34
virtual ~TPZMatRedStructMatrix()
Destructor.
Contains the TPZMatRedStructMatrix class.
Implements computational mesh. Computational Mesh.
Definition: pzcmesh.h:47
int64_t NumInternalEquations()
Computes the number of internal equations.
Contains TPZVerySparseMatrix class which implements a matrix whose nonzero elements are stored in bin...