AbstractCellCentreBasedTissue< DIM > Class Template Reference

#include <AbstractCellCentreBasedTissue.hpp>

Inheritance diagram for AbstractCellCentreBasedTissue< DIM >:

Inheritance graph
[legend]
Collaboration diagram for AbstractCellCentreBasedTissue< DIM >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AbstractCellCentreBasedTissue (const std::vector< TissueCell > &rCells, const std::vector< unsigned > locationIndices=std::vector< unsigned >())
 AbstractCellCentreBasedTissue ()
c_vector< double, DIM > GetLocationOfCellCentre (TissueCell *pCell)
Node< DIM > * GetNodeCorrespondingToCell (TissueCell *pCell)
TissueCellAddCell (TissueCell &rNewCell, c_vector< double, DIM > newLocation, TissueCell *pParentCell=NULL)
bool IsCellAssociatedWithADeletedNode (TissueCell &rCell)
virtual void UpdateNodeLocations (const std::vector< c_vector< double, DIM > > &rNodeForces, double dt)
virtual double GetDampingConstant (unsigned nodeIndex)

Private Member Functions

template<class Archive>
void serialize (Archive &archive, const unsigned int version)

Friends

class boost::serialization::access


Detailed Description

template<unsigned DIM>
class AbstractCellCentreBasedTissue< DIM >

An abstract facade class encapsulating a cell-centre based tissue, in which each cell corresponds to a Node.

Definition at line 38 of file AbstractCellCentreBasedTissue.hpp.


Constructor & Destructor Documentation

template<unsigned DIM>
AbstractCellCentreBasedTissue< DIM >::AbstractCellCentreBasedTissue ( const std::vector< TissueCell > &  rCells,
const std::vector< unsigned >  locationIndices = std::vector<unsigned>() 
) [inline]

Default constructor.

Parameters:
rCells a vector of cells
locationIndices an optional vector of location indices that correspond to real cells

Definition at line 33 of file AbstractCellCentreBasedTissue.cpp.

template<unsigned DIM>
AbstractCellCentreBasedTissue< DIM >::AbstractCellCentreBasedTissue (  )  [inline]

Constructor for use by archiving - doesn't take in cells, since these are dealt with by the serialize method.

Definition at line 41 of file AbstractCellCentreBasedTissue.cpp.


Member Function Documentation

template<unsigned DIM>
template<class Archive>
void AbstractCellCentreBasedTissue< DIM >::serialize ( Archive &  archive,
const unsigned int  version 
) [inline, private]

Serialize the object and its member variables.

Parameters:
archive the archive
version the current version of this class

Reimplemented from AbstractTissue< DIM >.

Reimplemented in MeshBasedTissue< DIM >, MeshBasedTissueWithGhostNodes< DIM >, NodeBasedTissue< DIM >, MeshBasedTissue< 2 >, and MeshBasedTissueWithGhostNodes< 2 >.

Definition at line 50 of file AbstractCellCentreBasedTissue.hpp.

template<unsigned DIM>
c_vector< double, DIM > AbstractCellCentreBasedTissue< DIM >::GetLocationOfCellCentre ( TissueCell pCell  )  [inline, virtual]

template<unsigned DIM>
Node< DIM > * AbstractCellCentreBasedTissue< DIM >::GetNodeCorrespondingToCell ( TissueCell pCell  )  [inline]

template<unsigned DIM>
TissueCell * AbstractCellCentreBasedTissue< DIM >::AddCell ( TissueCell rNewCell,
c_vector< double, DIM >  newLocation,
TissueCell pParentCell = NULL 
) [inline, virtual]

Add a new cell to the tissue.

Parameters:
rNewCell the cell to add
newLocation the position in space at which to put it
pParentCell pointer to a parent cell (if required)
Returns:
address of cell as it appears in the cell list

Implements AbstractTissue< DIM >.

Reimplemented in MeshBasedTissue< DIM >, MeshBasedTissueWithGhostNodes< DIM >, MeshBasedTissue< 2 >, and MeshBasedTissueWithGhostNodes< 2 >.

Definition at line 62 of file AbstractCellCentreBasedTissue.cpp.

References AbstractTissue< DIM >::AddNode(), AbstractTissue< DIM >::GetNumNodes(), AbstractTissue< DIM >::mCellLocationMap, AbstractTissue< DIM >::mCells, and AbstractTissue< DIM >::mLocationCellMap.

Referenced by MeshBasedTissue< DIM >::AddCell().

template<unsigned DIM>
bool AbstractCellCentreBasedTissue< DIM >::IsCellAssociatedWithADeletedNode ( TissueCell rCell  )  [inline, virtual]

Overridden IsCellAssociatedWithADeletedNode() method.

Parameters:
rCell the cell
Returns:
whether a given cell is associated with a deleted node.

Implements AbstractTissue< DIM >.

Definition at line 81 of file AbstractCellCentreBasedTissue.cpp.

References AbstractTissue< DIM >::GetNode(), and AbstractTissue< DIM >::mCellLocationMap.

template<unsigned DIM>
void AbstractCellCentreBasedTissue< DIM >::UpdateNodeLocations ( const std::vector< c_vector< double, DIM > > &  rNodeForces,
double  dt 
) [inline, virtual]

template<unsigned DIM>
double AbstractCellCentreBasedTissue< DIM >::GetDampingConstant ( unsigned  nodeIndex  )  [inline, virtual]

Overridden GetDampingConstant() method.

Get the damping constant for the cell associated with this node, i.e. d in drdt = F/d. This depends on whether using area-based viscosity has been switched on, and on whether the cell is a mutant or not.

Parameters:
nodeIndex the global index of this node
Returns:
the damping constant at the TissueCell associated with this node

Implements AbstractTissue< DIM >.

Reimplemented in MeshBasedTissue< DIM >, and MeshBasedTissue< 2 >.

Definition at line 114 of file AbstractCellCentreBasedTissue.cpp.

References TissueConfig::GetDampingConstantMutant(), TissueConfig::GetDampingConstantNormal(), TissueConfig::Instance(), and AbstractTissue< DIM >::rGetCellUsingLocationIndex().

Referenced by MeshBasedTissue< DIM >::GetDampingConstant(), and AbstractCellCentreBasedTissue< DIM >::UpdateNodeLocations().


Friends And Related Function Documentation

template<unsigned DIM>
friend class boost::serialization::access [friend]


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

Generated on Tue Aug 4 16:10:34 2009 for Chaste by  doxygen 1.5.5