NeoPZ
pzbstrmatrix.cpp
Go to the documentation of this file.
1 
6 #include "pzbstrmatrix.h"
7 #include "pzbndmat.h"
8 #include "pzcmesh.h"
9 
11 
13  return new TPZBandStructMatrix(*this);
14 }
15 
17  TPZMatrix<STATE> *stiff = Create();
18  int64_t neq = stiff->Rows();
19  rhs.Redim(neq,1);
20  Assemble(*stiff,rhs,guiInterface);
21  return stiff;
22 }
23 
25  if (fEquationFilter.IsActive()) {
26  DebugStop();
27  }
28  int64_t neq = fEquationFilter.NActiveEquations();
29  int64_t band = fMesh->BandWidth();
30  return new TPZFBMatrix<STATE>(neq,band);
31 }
32 
34 {
35 }
36 
38 {
39 }
virtual TPZStructMatrix * Clone()
TPZEquationFilter fEquationFilter
Object which will determine which equations will be assembled.
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.
int64_t NActiveEquations() const
Retorna o numero de equacoes ativas do sistema.
Contains the TPZBandStructMatrix class which implements Banded Structural Matrices.
#define DebugStop()
Returns a message to user put a breakpoint in.
Definition: pzerror.h:20
int64_t Rows() const
Returns number of rows.
Definition: pzmatrix.h:803
virtual TPZMatrix< STATE > * Create()
Contains declaration of TPZCompMesh class which is a repository for computational elements...
int Redim(const int64_t newRows, const int64_t newCols) override
Redimension a matrix and ZERO your elements.
Definition: pzfmatrix.h:616
virtual void Assemble(TPZMatrix< STATE > &mat, TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface) override
Assemble the global system of equations into the matrix which has already been created.
Definition: pzstrmatrix.cpp:80
int BandWidth()
This method computes the bandwidth of the system of equations.
Definition: pzcmesh.cpp:747
Contains TPZFBMatrix class which defines a non symmetric banded matrix.
virtual TPZMatrix< STATE > * CreateAssemble(TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface)
Defines a non symmetric banded matrix. Matrix.
Definition: pzbndmat.h:25
Implements computational mesh. Computational Mesh.
Definition: pzcmesh.h:47