#include <MonodomainMatrixBasedAssembler.hpp>
Public Member Functions | |
virtual c_matrix< double, 1 *(DIM+1), 1 *(DIM+1)> | ComputeMatrixTerm (c_vector< double, DIM+1 > &rPhi, c_matrix< double, DIM, DIM+1 > &rGradPhi, ChastePoint< DIM > &rX, c_vector< double, 1 > &u, c_matrix< double, 1, DIM > &rGradU, Element< DIM, DIM > *pElement) |
virtual c_vector< double, 1 *(DIM+1)> | ComputeVectorTerm (c_vector< double, DIM+1 > &rPhi, c_matrix< double, DIM, DIM+1 > &rGradPhi, ChastePoint< DIM > &rX, c_vector< double, 1 > &u, c_matrix< double, 1, DIM > &rGradU, Element< DIM, DIM > *pElement) |
virtual c_vector< double, DIM > | ComputeVectorSurfaceTerm (const BoundaryElement< DIM-1, DIM > &rSurfaceElement, c_vector< double, DIM > &rPhi, ChastePoint< DIM > &rX) |
MonodomainRhsMatrixAssembler (AbstractMesh< DIM, DIM > *pMesh) | |
Mat * | GetMatrix () |
Static Public Attributes | |
static const unsigned | E_DIM = DIM |
static const unsigned | S_DIM = DIM |
static const unsigned | P_DIM = 1u |
This class only exists to construct a matrix, the matrix which is used to assemble the RHS in monodomain problems. Therefore, although it inherits from the assembler hierachy, it is not an assembler for any particular PDE problem, it is just used to assemble one matrix. Therefore only ConstructMatrixTerm is properly implemented.
The matrix that is constructed is in fact the mass matrix: A_ij = integral phi_i phi_j dV, where phi_k is the k-th basis function
Definition at line 53 of file MonodomainMatrixBasedAssembler.hpp.
MonodomainRhsMatrixAssembler< DIM >::MonodomainRhsMatrixAssembler | ( | AbstractMesh< DIM, DIM > * | pMesh | ) | [inline] |
Constructor takes in a mesh and calls AssembleSystem to construct the matrix
Definition at line 80 of file MonodomainMatrixBasedAssembler.cpp.
References AbstractStaticAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, NON_HEART, MonodomainRhsMatrixAssembler< DIM > >::AssembleSystem(), DistributedVector::CreateVec(), BoundaryConditionsContainer< ELEM_DIM, SPACE_DIM, PROBLEM_DIM >::DefineZeroNeumannOnMeshBoundary(), AbstractAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::mpBoundaryConditions, AbstractStaticAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, NON_HEART, MonodomainRhsMatrixAssembler< DIM > >::mpLinearSystem, and AbstractStaticAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, NON_HEART, MonodomainRhsMatrixAssembler< DIM > >::mpMesh.
c_matrix< double, 1 *(DIM+1), 1 *(DIM+1)> MonodomainRhsMatrixAssembler< DIM >::ComputeMatrixTerm | ( | c_vector< double, DIM+1 > & | rPhi, | |
c_matrix< double, DIM, DIM+1 > & | rGradPhi, | |||
ChastePoint< DIM > & | rX, | |||
c_vector< double, 1 > & | u, | |||
c_matrix< double, 1, DIM > & | rGradU, | |||
Element< DIM, DIM > * | pElement | |||
) | [inline, virtual] |
Integrand in matrix definition integral (see class documentation)
Definition at line 39 of file MonodomainMatrixBasedAssembler.cpp.
c_vector< double, 1 *(DIM+1)> MonodomainRhsMatrixAssembler< DIM >::ComputeVectorTerm | ( | c_vector< double, DIM+1 > & | rPhi, | |
c_matrix< double, DIM, DIM+1 > & | rGradPhi, | |||
ChastePoint< DIM > & | rX, | |||
c_vector< double, 1 > & | u, | |||
c_matrix< double, 1, DIM > & | rGradU, | |||
Element< DIM, DIM > * | pElement | |||
) | [inline, virtual] |
The term to be added to the element stiffness vector - except this class is only used for constructing a matrix so this is never called.
Definition at line 51 of file MonodomainMatrixBasedAssembler.cpp.
c_vector< double, DIM > MonodomainRhsMatrixAssembler< DIM >::ComputeVectorSurfaceTerm | ( | const BoundaryElement< DIM-1, DIM > & | rSurfaceElement, | |
c_vector< double, DIM > & | rPhi, | |||
ChastePoint< DIM > & | rX | |||
) | [inline, virtual] |
The term arising from boundary conditions to be added to the element stiffness vector - except this class is only used for constructing a matrix so this is never called.
Definition at line 67 of file MonodomainMatrixBasedAssembler.cpp.
Mat * MonodomainRhsMatrixAssembler< DIM >::GetMatrix | ( | ) | [inline] |
Get a pointer to the matrix
Definition at line 103 of file MonodomainMatrixBasedAssembler.cpp.
References AbstractStaticAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, NON_HEART, MonodomainRhsMatrixAssembler< DIM > >::mpLinearSystem, and LinearSystem::rGetLhsMatrix().
Referenced by MonodomainMatrixBasedAssembler< ELEMENT_DIM, SPACE_DIM >::MonodomainMatrixBasedAssembler().