#include <AbstractForce.hpp>


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 |
Definition at line 41 of file AbstractForce.hpp.
| AbstractForce< DIM >::AbstractForce | ( | ) | [inline] |
Default constructor.
Definition at line 32 of file AbstractForce.cpp.
| AbstractForce< DIM >::~AbstractForce | ( | ) | [inline, virtual] |
Destructor.
Definition at line 37 of file AbstractForce.cpp.
| void AbstractForce< DIM >::serialize | ( | Archive & | archive, | |
| const unsigned int | version | |||
| ) | [inline, private] |
Serialize the object and its member variables.
Serialization of singleton objects must be done with care. Before the object is serialized via a pointer, it *MUST* be serialized directly, or an assertion will trip when a second instance of the class is created on de-serialization.
| archive | the archive | |
| version | the current version of this class |
Reimplemented in AbstractTwoBodyInteractionForce< DIM >, ChemotacticForce< DIM >, GeneralisedLinearSpringForce< DIM >, NagaiHondaForce< DIM >, WelikyOsterForce< DIM >, CryptProjectionForce, LinearSpringWithVariableSpringConstantsForce< DIM >, VertexCryptBoundaryForce< DIM >, and GeneralisedLinearSpringForce< 2 >.
Definition at line 57 of file AbstractForce.hpp.
| 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.
| rForces | reference to vector of forces on nodes | |
| rCellPopulation | reference to the cell population |
Implemented in AbstractTwoBodyInteractionForce< DIM >, ChemotacticForce< DIM >, NagaiHondaForce< DIM >, WelikyOsterForce< DIM >, LinearSpringWithVariableSpringConstantsForce< DIM >, and VertexCryptBoundaryForce< 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.
| 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().
| void AbstractForce< DIM >::OutputForceParameters | ( | out_stream & | rParamsFile | ) | [inline, pure 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 |
Implemented in AbstractTwoBodyInteractionForce< DIM >, ChemotacticForce< DIM >, GeneralisedLinearSpringForce< DIM >, NagaiHondaForce< DIM >, WelikyOsterForce< DIM >, CryptProjectionForce, LinearSpringWithVariableSpringConstantsForce< DIM >, VertexCryptBoundaryForce< DIM >, and GeneralisedLinearSpringForce< 2 >.
Definition at line 52 of file AbstractForce.cpp.
Referenced by AbstractForce< DIM >::OutputForceInfo(), VertexCryptBoundaryForce< DIM >::OutputForceParameters(), WelikyOsterForce< DIM >::OutputForceParameters(), NagaiHondaForce< DIM >::OutputForceParameters(), ChemotacticForce< DIM >::OutputForceParameters(), and AbstractTwoBodyInteractionForce< DIM >::OutputForceParameters().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented in AbstractTwoBodyInteractionForce< DIM >, ChemotacticForce< DIM >, GeneralisedLinearSpringForce< DIM >, NagaiHondaForce< DIM >, WelikyOsterForce< DIM >, CryptProjectionForce, LinearSpringWithVariableSpringConstantsForce< DIM >, VertexCryptBoundaryForce< DIM >, and GeneralisedLinearSpringForce< 2 >.
Definition at line 44 of file AbstractForce.hpp.
1.5.5