Chaste Release::3.1
AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM > Class Template Reference

#include <AbstractPurkinjeCellFactory.hpp>

Inheritance diagram for AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >:
Collaboration diagram for AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >:

List of all members.

Public Member Functions

void SetMesh (AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > *pMesh)
AbstractCardiacCellInterfaceCreatePurkinjeCellForNode (unsigned nodeIndex, AbstractCardiacCellInterface *pCardiacCell)
virtual void FinalisePurkinjeCellCreation (std::vector< AbstractCardiacCellInterface * > *pPurkinjeCellsDistributed, unsigned lo, unsigned hi)
MixedDimensionMesh
< ELEMENT_DIM, SPACE_DIM > * 
GetMixedDimensionMesh ()

Protected Member Functions

virtual
AbstractCardiacCellInterface
CreatePurkinjeCellForTissueNode (unsigned nodeIndex, AbstractCardiacCellInterface *pCardiacCell)=0
void CreateJunction (const Node< SPACE_DIM > *pNode, AbstractCardiacCellInterface *pPurkinjeCell, AbstractCardiacCellInterface *pCardiacCell, double resistance)

Protected Attributes

MixedDimensionMesh
< ELEMENT_DIM, SPACE_DIM > * 
mpMixedDimensionMesh
std::set< unsignedmLocalPurkinjeNodes

Detailed Description

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
class AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >

Subclass for also creating cell models for Purkinje cells. The user has to implement the CreatePurkinjeCellForTissueNode() method.

The dimensions should be 2 or 3.

Definition at line 49 of file AbstractPurkinjeCellFactory.hpp.


Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >::CreateJunction ( const Node< SPACE_DIM > *  pNode,
AbstractCardiacCellInterface pPurkinjeCell,
AbstractCardiacCellInterface pCardiacCell,
double  resistance 
) [protected]

Create a purkinje-ventricular junction between the two cells provided.

Parameters:
pNodethe node in the mesh at which this junction is located
pPurkinjeCellthe Purkinje cell
pCardiacCellthe ventricular cell
resistancethe junction resistance, in kilo-Ohms

Definition at line 53 of file AbstractPurkinjeCellFactory.cpp.

References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetAttribute(), HeartConfig::GetPurkinjeSurfaceAreaToVolumeRatio(), AbstractCardiacCellInterface::GetStimulusFunction(), HeartConfig::Instance(), and AbstractCardiacCellInterface::SetStimulusFunction().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractCardiacCellInterface * AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >::CreatePurkinjeCellForNode ( unsigned  nodeIndex,
AbstractCardiacCellInterface pCardiacCell 
)

Create a cell object for the given node.

The default implementation checks whether the node is in a Purkinje node, in which case it calls CreatePurkinjeCellForTissueNode (which must be defined by subclasses), otherwise it returns a pointer to a (unique) fake cell

Parameters:
nodeIndexglobal node index.
pCardiacCellthe cardiac cell that has already been created at this node

Definition at line 118 of file AbstractPurkinjeCellFactory.cpp.

Referenced by AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::AbstractCardiacTissue().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
virtual AbstractCardiacCellInterface* AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >::CreatePurkinjeCellForTissueNode ( unsigned  nodeIndex,
AbstractCardiacCellInterface pCardiacCell 
) [protected, pure virtual]

Must be overridden by subclasses to return a Purkinje cell object for the given node.

Parameters:
nodeIndexglobal node index.
pCardiacCellthe cardiac cell that has already been created at this node
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
virtual void AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >::FinalisePurkinjeCellCreation ( std::vector< AbstractCardiacCellInterface * > *  pPurkinjeCellsDistributed,
unsigned  lo,
unsigned  hi 
) [inline, virtual]

May be overridden by subclasses to perform any necessary work after all Purkinje cells have been created.

Parameters:
pPurkinjeCellsDistributedPointer to a vector of Purkinje cell pointers.
loLowest index owned by this process.
hiHighest index owned by this process.

Definition at line 110 of file AbstractPurkinjeCellFactory.hpp.

Referenced by AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::AbstractCardiacTissue().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
MixedDimensionMesh< ELEMENT_DIM, SPACE_DIM > * AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >::GetMixedDimensionMesh ( )

Get the mixed dimension mesh (for possible use in CreatePurkinjeCellForTissueNode()). Note: GetMesh() just returns a pointer to an AbstractTetrahedralMesh.

Definition at line 134 of file AbstractPurkinjeCellFactory.cpp.

References EXCEPTION.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >::SetMesh ( AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > *  pMesh) [virtual]

Overridden set mesh which must take a MixedDimensionMesh

Parameters:
pMeshPointer to the mesh.

Reimplemented from AbstractCardiacCellFactory< ELEMENT_DIM, SPACE_DIM >.

Definition at line 98 of file AbstractPurkinjeCellFactory.cpp.

References EXCEPTION, and AbstractCardiacCellFactory< ELEMENT_DIM, SPACE_DIM >::SetMesh().


Member Data Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
std::set<unsigned> AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >::mLocalPurkinjeNodes [protected]

A set of local purkinje node indices

Definition at line 56 of file AbstractPurkinjeCellFactory.hpp.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM = ELEMENT_DIM>
MixedDimensionMesh<ELEMENT_DIM,SPACE_DIM>* AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >::mpMixedDimensionMesh [protected]

Saved pointer to the mixed dimension mesh

Definition at line 53 of file AbstractPurkinjeCellFactory.hpp.


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