Chaste Release::3.1
BidomainMassMatrixAssembler< DIM > Class Template Reference

#include <BidomainMassMatrixAssembler.hpp>

Inheritance diagram for BidomainMassMatrixAssembler< DIM >:
Collaboration diagram for BidomainMassMatrixAssembler< DIM >:

List of all members.

Public Member Functions

 BidomainMassMatrixAssembler (AbstractTetrahedralMesh< DIM, DIM > *pMesh)
 ~BidomainMassMatrixAssembler ()

Protected Member Functions

c_matrix< double, 2 *(DIM+1),
2 *(DIM+1)> 
ComputeMatrixTerm (c_vector< double, DIM+1 > &rPhi, c_matrix< double, DIM, DIM+1 > &rGradPhi, ChastePoint< DIM > &rX, c_vector< double, 2 > &rU, c_matrix< double, 2, DIM > &rGradU, Element< DIM, DIM > *pElement)

Detailed Description

template<unsigned DIM>
class BidomainMassMatrixAssembler< DIM >

Constructs a matrix with the mass matrix in the voltage-voltage block.

Ie. IF the bidomain unknowns were ordered [V1,..,Vn,phie_1,..,phie_n], the matrix would be, in block form

[ M 0 ] [ 0 0 ]

where M is the standard nxn mass matrix.

Since the bidomain ordering is not [V1,..,Vn,phie_1,..,phie_n] but [V1,phie1,..,Vn,phie_n], the matrix has a different form.

WORKS FOR BATH PROBLEMS AS WELL AS NON-BATH PROBLEMS (sets zeros in the voltage-voltage block for bath nodes, ie [ M 0 0 0 ] [ 0 0 0 0 ] [ 0 0 0 0 ] [ 0 0 0 0 ] where the ordering is Vtissue, Vbath, phi_tissue, phi_bath

Definition at line 66 of file BidomainMassMatrixAssembler.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
BidomainMassMatrixAssembler< DIM >::BidomainMassMatrixAssembler ( AbstractTetrahedralMesh< DIM, DIM > *  pMesh) [inline]

Constructor

Parameters:
pMeshpointer to the mesh

Definition at line 98 of file BidomainMassMatrixAssembler.hpp.

template<unsigned DIM>
BidomainMassMatrixAssembler< DIM >::~BidomainMassMatrixAssembler ( ) [inline]

Destructor.

Definition at line 106 of file BidomainMassMatrixAssembler.hpp.


Member Function Documentation

template<unsigned DIM>
c_matrix< double, 2 *(DIM+1), 2 *(DIM+1)> BidomainMassMatrixAssembler< DIM >::ComputeMatrixTerm ( c_vector< double, DIM+1 > &  rPhi,
c_matrix< double, DIM, DIM+1 > &  rGradPhi,
ChastePoint< DIM > &  rX,
c_vector< double, 2 > &  rU,
c_matrix< double, 2, DIM > &  rGradU,
Element< DIM, DIM > *  pElement 
) [protected]

ComputeMatrixTerm()

This method is called by AssembleOnElement() and tells the assembler the contribution to add to the element stiffness matrix.

Parameters:
rPhiThe basis functions, rPhi(i) = phi_i, i=1..numBases
rGradPhiBasis gradients, rGradPhi(i,j) = d(phi_j)/d(X_i)
rXThe point in space
rUThe unknown as a vector, u(i) = u_i
rGradUThe gradient of the unknown as a matrix, rGradU(i,j) = d(u_i)/d(X_j)
pElementPointer to the element

Definition at line 42 of file BidomainMassMatrixAssembler.cpp.

References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetUnsignedAttribute(), and HeartRegionCode::IsRegionBath().


The documentation for this class was generated from the following files: