#include <BuskeCompressionForce.hpp>
Inherits AbstractForce< DIM >.
Public Member Functions | |
BuskeCompressionForce () | |
double | GetCompressionEnergyParameter () |
void | SetCompressionEnergyParameter (double compressionEnergyParameter) |
void | AddForceContribution (std::vector< c_vector< double, DIM > > &rForces, AbstractCellPopulation< DIM > &rCellPopulation) |
void | OutputForceParameters (out_stream &rParamsFile) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
double | mCompressionEnergyParameter |
Friends | |
class | TestForcesNotForRelease |
class | boost::serialization::access |
A force law employed by Buske et al (2011) in their overlapping spheres model of the intestinal crypt (doi:10.1371/journal.pcbi.1001045).
Length is scaled by natural length.
This class specifically calculates the compression force which forms part of equation (A6) in the Buske paper.
Definition at line 48 of file BuskeCompressionForce.hpp.
BuskeCompressionForce< DIM >::BuskeCompressionForce | ( | ) | [inline] |
Constructor.
Definition at line 33 of file BuskeCompressionForce.cpp.
void BuskeCompressionForce< DIM >::AddForceContribution | ( | std::vector< c_vector< double, DIM > > & | rForces, | |
AbstractCellPopulation< DIM > & | rCellPopulation | |||
) | [inline, virtual] |
Overridden AddForceContribution() method.
rForces | a vector of forces on notes | |
rCellPopulation | a cell population object |
Target volume of the cell
Implements AbstractForce< DIM >.
Definition at line 52 of file BuskeCompressionForce.cpp.
References AbstractCellPopulation< DIM >::Begin(), AbstractCellPopulation< DIM >::End(), AbstractCellPopulation< DIM >::GetLocationIndexUsingCell(), NodeBasedCellPopulation< DIM >::GetNeighbouringNodeIndices(), AbstractCellPopulation< DIM >::GetNode(), and BuskeCompressionForce< DIM >::mCompressionEnergyParameter.
double BuskeCompressionForce< DIM >::GetCompressionEnergyParameter | ( | ) | [inline] |
Get mCompressionEnergyParameter.
Definition at line 40 of file BuskeCompressionForce.cpp.
References BuskeCompressionForce< DIM >::mCompressionEnergyParameter.
void BuskeCompressionForce< DIM >::OutputForceParameters | ( | out_stream & | rParamsFile | ) | [inline, virtual] |
Overridden OutputForceParameters() method.
rParamsFile | the file stream to which the parameters are output |
Implements AbstractForce< DIM >.
Definition at line 132 of file BuskeCompressionForce.cpp.
References BuskeCompressionForce< DIM >::mCompressionEnergyParameter.
void BuskeCompressionForce< DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Serialize the object.
archive | the archive | |
version | the current version of this class |
Reimplemented from AbstractForce< DIM >.
Definition at line 55 of file BuskeCompressionForce.hpp.
References BuskeCompressionForce< DIM >::mCompressionEnergyParameter.
void BuskeCompressionForce< DIM >::SetCompressionEnergyParameter | ( | double | compressionEnergyParameter | ) | [inline] |
Set mCompressionEnergyParameter.
compressionEnergyParameter | the new value of mCompressionEnergyParameter |
Definition at line 46 of file BuskeCompressionForce.cpp.
References BuskeCompressionForce< DIM >::mCompressionEnergyParameter.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractForce< DIM >.
Definition at line 53 of file BuskeCompressionForce.hpp.
double BuskeCompressionForce< DIM >::mCompressionEnergyParameter [private] |
Compression energy parameter.
Represented by the parameter K in the model by Buske et al (2011) in their off-lattice model of the intestinal crypt (doi:10.1371/journal.pcbi.1001045).
Note: K is the bulk modulus of the spheres.
Definition at line 70 of file BuskeCompressionForce.hpp.
Referenced by BuskeCompressionForce< DIM >::AddForceContribution(), BuskeCompressionForce< DIM >::GetCompressionEnergyParameter(), BuskeCompressionForce< DIM >::OutputForceParameters(), BuskeCompressionForce< DIM >::serialize(), and BuskeCompressionForce< DIM >::SetCompressionEnergyParameter().