RepulsionForce< DIM > Class Template Reference

#include <RepulsionForce.hpp>

Inherits GeneralisedLinearSpringForce< DIM >.

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

List of all members.

Public Member Functions

 RepulsionForce ()
void AddForceContribution (std::vector< c_vector< double, DIM > > &rForces, AbstractCellPopulation< DIM > &rCellPopulation)
virtual void OutputForceParameters (out_stream &rParamsFile)

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

A class for a simple two-body repulsion force law. Designed for use in node-based simulations

The force just creates a linear repulsive force between cells with a nonlinear separation less than 2. This force does not take a cell's age or cell cycle phase into account.

Definition at line 44 of file RepulsionForce.hpp.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 32 of file RepulsionForce.cpp.


Member Function Documentation

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

Overridden AddForceContribution() method.

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

Reimplemented from AbstractTwoBodyInteractionForce< DIM >.

Definition at line 38 of file RepulsionForce.cpp.

References GeneralisedLinearSpringForce< DIM >::CalculateForceBetweenNodes(), EXCEPTION, and AbstractCellPopulation< DIM >::GetNode().

template<unsigned DIM>
void RepulsionForce< DIM >::OutputForceParameters ( out_stream &  rParamsFile  )  [inline, virtual]

Outputs force Parameters to file

As this method is pure virtual, it must be overridden in subclasses.

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

Reimplemented from GeneralisedLinearSpringForce< DIM >.

Definition at line 85 of file RepulsionForce.cpp.

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

Archive the object and its member variables.

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

Reimplemented from GeneralisedLinearSpringForce< DIM >.

Definition at line 57 of file RepulsionForce.hpp.


Friends And Related Function Documentation

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

Needed for serialization.

Reimplemented from GeneralisedLinearSpringForce< DIM >.

Definition at line 49 of file RepulsionForce.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Dec 22 13:07:32 2011 for Chaste by  doxygen 1.6.3