AbstractForce< DIM > Class Template Reference

#include <AbstractForce.hpp>

Inherits Identifiable.

Inherited by AbstractTwoBodyInteractionForce< DIM >, BuskeCompressionForce< DIM >, ChemotacticForce< DIM >, NagaiHondaForce< DIM >, VertexCryptBoundaryForce< DIM >, and WelikyOsterForce< DIM >.

Collaboration diagram for AbstractForce< DIM >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AbstractForce ()
virtual ~AbstractForce ()
virtual void AddForceContribution (std::vector< c_vector< double, DIM > > &rForces, AbstractCellPopulation< DIM > &rCellPopulation)=0
void OutputForceInfo (out_stream &rParamsFile)
virtual void OutputForceParameters (out_stream &rParamsFile)=0

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 AbstractForce< DIM >

An abstract force class, for use in cell-based simulations.

Definition at line 42 of file AbstractForce.hpp.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 32 of file AbstractForce.cpp.

template<unsigned DIM>
AbstractForce< DIM >::~AbstractForce (  )  [inline, virtual]

Destructor.

Definition at line 37 of file AbstractForce.cpp.


Member Function Documentation

template<unsigned DIM>
virtual void AbstractForce< DIM >::AddForceContribution ( std::vector< c_vector< double, DIM > > &  rForces,
AbstractCellPopulation< DIM > &  rCellPopulation 
) [pure virtual]

Calculates the force on each node.

This method must be overridden in concrete classes.

Parameters:
rForces reference to vector of forces on nodes
rCellPopulation reference to the cell population

Implemented in AbstractTwoBodyInteractionForce< DIM >, BuskeCompressionForce< DIM >, ChemotacticForce< DIM >, NagaiHondaForce< DIM >, RepulsionForce< DIM >, WelikyOsterForce< DIM >, LinearSpringWithVariableSpringConstantsForce< DIM >, and VertexCryptBoundaryForce< DIM >.

template<unsigned DIM>
void AbstractForce< DIM >::OutputForceInfo ( out_stream &  rParamsFile  )  [inline]

Outputs force used in the simulation to file and then calls OutputForceParameters to output all relevant parameters.

Parameters:
rParamsFile the file stream to which the parameters are output

Definition at line 42 of file AbstractForce.cpp.

References Identifiable::GetIdentifier(), and AbstractForce< DIM >::OutputForceParameters().

template<unsigned DIM>
void AbstractForce< DIM >::OutputForceParameters ( out_stream &  rParamsFile  )  [inline, pure virtual]
template<unsigned DIM>
template<class Archive >
void AbstractForce< DIM >::serialize ( Archive &  archive,
const unsigned int  version 
) [inline, private]

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 Thu Dec 22 13:01:14 2011 for Chaste by  doxygen 1.6.3