Chaste
Release::2017.1
|
#include <DifferentialAdhesionGeneralisedLinearSpringForce.hpp>
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
double | mHomotypicLabelledSpringConstantMultiplier |
double | mHeterotypicSpringConstantMultiplier |
Friends | |
class | boost::serialization::access |
Additional Inherited Members | |
Protected Attributes inherited from GeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM > | |
double | mMeinekeSpringStiffness |
double | mMeinekeDivisionRestingSpringLength |
double | mMeinekeSpringGrowthDuration |
Protected Attributes inherited from AbstractTwoBodyInteractionForce< ELEMENT_DIM, SPACE_DIM > | |
bool | mUseCutOffLength |
double | mMechanicsCutOffLength |
A class for a simple two-body differential adhesion force law between labelled and unlabelled cells (as defined by the CellLabel cell property).
Designed for use in node and mesh-based simulations.
#2266 - throw exceptions if using other cell population objects?
#2266 - override CalculateForceBetweenNodes() to use a default rest length of 1.0 for all springs?
Definition at line 52 of file DifferentialAdhesionGeneralisedLinearSpringForce.hpp.
DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::DifferentialAdhesionGeneralisedLinearSpringForce | ( | ) |
Constructor.
Definition at line 40 of file DifferentialAdhesionGeneralisedLinearSpringForce.cpp.
Referenced by DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::serialize().
double DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::GetHeterotypicSpringConstantMultiplier | ( | ) |
Definition at line 103 of file DifferentialAdhesionGeneralisedLinearSpringForce.cpp.
Referenced by DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::serialize().
double DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::GetHomotypicLabelledSpringConstantMultiplier | ( | ) |
Definition at line 90 of file DifferentialAdhesionGeneralisedLinearSpringForce.cpp.
Referenced by DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::serialize().
|
virtual |
Overridden OutputForceParameters() method.
rParamsFile | the file stream to which the parameters are output |
Reimplemented from GeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >.
Definition at line 116 of file DifferentialAdhesionGeneralisedLinearSpringForce.cpp.
References EXPORT_TEMPLATE_CLASS_ALL_DIMS, DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::mHeterotypicSpringConstantMultiplier, DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::mHomotypicLabelledSpringConstantMultiplier, and GeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::OutputForceParameters().
Referenced by DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::serialize().
|
inlineprivate |
Archive the object and its member variables.
archive | the archive |
version | the current version of this class |
Definition at line 88 of file DifferentialAdhesionGeneralisedLinearSpringForce.hpp.
References DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::DifferentialAdhesionGeneralisedLinearSpringForce(), EXPORT_TEMPLATE_CLASS_ALL_DIMS, DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::GetHeterotypicSpringConstantMultiplier(), DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::GetHomotypicLabelledSpringConstantMultiplier(), DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::mHeterotypicSpringConstantMultiplier, DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::mHomotypicLabelledSpringConstantMultiplier, DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::OutputForceParameters(), DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::SetHeterotypicSpringConstantMultiplier(), DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::SetHomotypicLabelledSpringConstantMultiplier(), and DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::VariableSpringConstantMultiplicationFactor().
void DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::SetHeterotypicSpringConstantMultiplier | ( | double | heterotypicSpringConstantMultiplier | ) |
Set mHeterotypicSpringConstantMultiplier.
heterotypicSpringConstantMultiplier | the new value of mHeterotypicSpringConstantMultiplier |
Definition at line 109 of file DifferentialAdhesionGeneralisedLinearSpringForce.cpp.
Referenced by DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::serialize().
void DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::SetHomotypicLabelledSpringConstantMultiplier | ( | double | labelledSpringConstantMultiplier | ) |
Set mHomotypicLabelledSpringConstantMultiplier.
labelledSpringConstantMultiplier | the new value of mHomotypicLabelledSpringConstantMultiplier |
Definition at line 96 of file DifferentialAdhesionGeneralisedLinearSpringForce.cpp.
Referenced by DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::serialize().
|
virtual |
Overridden VariableSpringConstantMultiplicationFactor() method.
This method takes account of the distinct spring constants present for homotypic (labelled-labelled and unlabelled-unlabelled) and heterotypic (labelled-unlabelled) interactions between neighbouring cells.
nodeAGlobalIndex | index of one neighbouring node |
nodeBGlobalIndex | index of the other neighbouring node |
rCellPopulation | the cell population |
isCloserThanRestLength | whether the neighbouring nodes lie closer than the rest length of their connecting spring |
Reimplemented from GeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >.
Definition at line 48 of file DifferentialAdhesionGeneralisedLinearSpringForce.cpp.
References AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetCellUsingLocationIndex(), DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::mHeterotypicSpringConstantMultiplier, and DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::mHomotypicLabelledSpringConstantMultiplier.
Referenced by DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::serialize().
|
friend |
Needed for serialization.
Definition at line 80 of file DifferentialAdhesionGeneralisedLinearSpringForce.hpp.
|
private |
A scalar determining the relative spring constant for heterotypic (labelled-unlabelled) interactions between neighbouring cells, used in the overridden method VariableSpringConstantMultiplicationFactor().
Defaults to 1.0 in the constructor.
Definition at line 77 of file DifferentialAdhesionGeneralisedLinearSpringForce.hpp.
Referenced by DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::GetHeterotypicSpringConstantMultiplier(), DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::OutputForceParameters(), DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::serialize(), DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::SetHeterotypicSpringConstantMultiplier(), and DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::VariableSpringConstantMultiplicationFactor().
|
private |
A scalar determining the relative spring constant for homotypic interactions between neighbouring labelled cells, used in the overridden method VariableSpringConstantMultiplicationFactor().
Defaults to 1.0 in the constructor.
Note that for homotypic interactions between neighbouring unlabelled cells, we use the multiplier value 1.0 that is returned by the method VariableSpringConstantMultiplicationFactor() in the parent class GeneralisedLinearSpringForce.
Definition at line 68 of file DifferentialAdhesionGeneralisedLinearSpringForce.hpp.
Referenced by DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::GetHomotypicLabelledSpringConstantMultiplier(), DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::OutputForceParameters(), DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::serialize(), DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::SetHomotypicLabelledSpringConstantMultiplier(), and DifferentialAdhesionGeneralisedLinearSpringForce< ELEMENT_DIM, SPACE_DIM >::VariableSpringConstantMultiplicationFactor().