#include <RepulsionForce.hpp>
Inherits GeneralisedLinearSpringForce< DIM >.
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 |
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.
RepulsionForce< DIM >::RepulsionForce | ( | ) | [inline] |
Constructor.
Definition at line 32 of file RepulsionForce.cpp.
void RepulsionForce< DIM >::AddForceContribution | ( | std::vector< c_vector< double, DIM > > & | rForces, | |
AbstractCellPopulation< DIM > & | rCellPopulation | |||
) | [inline, virtual] |
Overridden AddForceContribution() method.
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().
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.
rParamsFile | the file stream to which the parameters are output |
Reimplemented from GeneralisedLinearSpringForce< DIM >.
Definition at line 85 of file RepulsionForce.cpp.
void RepulsionForce< DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Archive the object and its member variables.
archive | the archive | |
version | the current version of this class |
Reimplemented from GeneralisedLinearSpringForce< DIM >.
Definition at line 57 of file RepulsionForce.hpp.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from GeneralisedLinearSpringForce< DIM >.
Definition at line 49 of file RepulsionForce.hpp.