#include <LinearSpringWithVariableSpringConstantsForce.hpp>
Public Member Functions | |
LinearSpringWithVariableSpringConstantsForce () | |
~LinearSpringWithVariableSpringConstantsForce () | |
void | SetEdgeBasedSpringConstant (bool useEdgeBasedSpringConstant) |
void | SetMutantSprings (bool useMutantSprings, double mutantMutantMultiplier=2, double normalMutantMultiplier=1.5) |
void | SetBetaCateninSprings (bool useBCatSprings) |
void | SetApoptoticSprings (bool useApoptoticSprings) |
double | VariableSpringConstantMultiplicationFactor (unsigned nodeAGlobalIndex, unsigned nodeBGlobalIndex, AbstractCellPopulation< DIM > &rCellPopulation, bool isCloserThanRestLength) |
void | AddForceContribution (std::vector< c_vector< double, DIM > > &rForces, AbstractCellPopulation< DIM > &rCellPopulation) |
double | GetBetaCatSpringScaler () |
void | SetBetaCatSpringScaler (double betaCatSpringScaler) |
double | GetApoptoticSpringTensionStiffness () |
void | SetApoptoticSpringTensionStiffness (double apoptoticSpringTensionStiffness) |
double | GetApoptoticSpringCompressionStiffness () |
void | SetApoptoticSpringCompressionStiffness (double apoptoticSpringCompressionStiffness) |
virtual void | OutputForceParameters (out_stream &rParamsFile) |
Protected Attributes | |
bool | mUseEdgeBasedSpringConstant |
bool | mUseMutantSprings |
double | mMutantMutantMultiplier |
double | mNormalMutantMultiplier |
bool | mUseBCatSprings |
bool | mUseApoptoticSprings |
double | mBetaCatSpringScaler |
double | mApoptoticSpringTensionStiffness |
double | mApoptoticSpringCompressionStiffness |
Private Member Functions | |
template<class Archive> | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | TestLinearSpringWithVariableSpringConstantsForce |
class | boost::serialization::access |
Definition at line 44 of file LinearSpringWithVariableSpringConstantsForce.hpp.
LinearSpringWithVariableSpringConstantsForce< DIM >::LinearSpringWithVariableSpringConstantsForce | ( | ) | [inline] |
Constructor.
Definition at line 36 of file LinearSpringWithVariableSpringConstantsForce.cpp.
LinearSpringWithVariableSpringConstantsForce< DIM >::~LinearSpringWithVariableSpringConstantsForce | ( | ) | [inline] |
Destructor.
Definition at line 51 of file LinearSpringWithVariableSpringConstantsForce.cpp.
void LinearSpringWithVariableSpringConstantsForce< 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 59 of file LinearSpringWithVariableSpringConstantsForce.hpp.
References LinearSpringWithVariableSpringConstantsForce< DIM >::mApoptoticSpringCompressionStiffness, LinearSpringWithVariableSpringConstantsForce< DIM >::mApoptoticSpringTensionStiffness, LinearSpringWithVariableSpringConstantsForce< DIM >::mBetaCatSpringScaler, LinearSpringWithVariableSpringConstantsForce< DIM >::mMutantMutantMultiplier, LinearSpringWithVariableSpringConstantsForce< DIM >::mNormalMutantMultiplier, LinearSpringWithVariableSpringConstantsForce< DIM >::mUseApoptoticSprings, LinearSpringWithVariableSpringConstantsForce< DIM >::mUseBCatSprings, LinearSpringWithVariableSpringConstantsForce< DIM >::mUseEdgeBasedSpringConstant, and LinearSpringWithVariableSpringConstantsForce< DIM >::mUseMutantSprings.
void LinearSpringWithVariableSpringConstantsForce< DIM >::SetEdgeBasedSpringConstant | ( | bool | useEdgeBasedSpringConstant | ) | [inline] |
Set whether to use an edge-based spring constant.
useEdgeBasedSpringConstant | whether to use an edge-based spring constant |
Definition at line 56 of file LinearSpringWithVariableSpringConstantsForce.cpp.
References LinearSpringWithVariableSpringConstantsForce< DIM >::mUseEdgeBasedSpringConstant.
void LinearSpringWithVariableSpringConstantsForce< DIM >::SetMutantSprings | ( | bool | useMutantSprings, | |
double | mutantMutantMultiplier = 2 , |
|||
double | normalMutantMultiplier = 1.5 | |||
) | [inline] |
Use different spring strengths depending on two cells: Normal-normal, Normal-mutant, mutant-mutant
useMutantSprings | whether to use mutant springs | |
mutantMutantMultiplier | the multiplier for springs connecting two mutant cells | |
normalMutantMultiplier | the multiplier for springs connecting a mutant cell with a normal cell |
Definition at line 63 of file LinearSpringWithVariableSpringConstantsForce.cpp.
References LinearSpringWithVariableSpringConstantsForce< DIM >::mMutantMutantMultiplier, LinearSpringWithVariableSpringConstantsForce< DIM >::mNormalMutantMultiplier, and LinearSpringWithVariableSpringConstantsForce< DIM >::mUseMutantSprings.
void LinearSpringWithVariableSpringConstantsForce< DIM >::SetBetaCateninSprings | ( | bool | useBCatSprings | ) | [inline] |
Use the amount of beta-catenin on an edge to find spring constant.
useBCatSprings | whether to use beta-catenin-dependent spring stiffness |
Definition at line 71 of file LinearSpringWithVariableSpringConstantsForce.cpp.
References LinearSpringWithVariableSpringConstantsForce< DIM >::mUseBCatSprings.
void LinearSpringWithVariableSpringConstantsForce< DIM >::SetApoptoticSprings | ( | bool | useApoptoticSprings | ) | [inline] |
Set spring stiffness to be dependent on whether cells are apoptotic
useApoptoticSprings | whether to have apoptosis-dependent spring stiffness |
Definition at line 77 of file LinearSpringWithVariableSpringConstantsForce.cpp.
References LinearSpringWithVariableSpringConstantsForce< DIM >::mUseApoptoticSprings.
double LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor | ( | unsigned | nodeAGlobalIndex, | |
unsigned | nodeBGlobalIndex, | |||
AbstractCellPopulation< DIM > & | rCellPopulation, | |||
bool | isCloserThanRestLength | |||
) | [inline, virtual] |
Return a multiplication factor for the spring constant, which may depend on whether the given pair of neighbouring cells are e.g. undergoing apoptosis, have mutations, or experience variable levels of beta catenin.
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< DIM >.
Definition at line 83 of file LinearSpringWithVariableSpringConstantsForce.cpp.
References AbstractCellPopulation< DIM >::GetCellUsingLocationIndex(), GeneralisedLinearSpringForce< DIM >::GetMeinekeSpringStiffness(), AbstractVanLeeuwen2009WntSwatCellCycleModel::GetMembraneBoundBetaCateninLevel(), MeshBasedCellPopulation< DIM >::GetSurfaceAreaOfVoronoiElement(), MeshBasedCellPopulation< DIM >::GetVoronoiEdgeLength(), AbstractCellPopulation< DIM >::IsMeshBasedCellPopulation(), LinearSpringWithVariableSpringConstantsForce< DIM >::mApoptoticSpringCompressionStiffness, LinearSpringWithVariableSpringConstantsForce< DIM >::mApoptoticSpringTensionStiffness, LinearSpringWithVariableSpringConstantsForce< DIM >::mBetaCatSpringScaler, LinearSpringWithVariableSpringConstantsForce< DIM >::mMutantMutantMultiplier, LinearSpringWithVariableSpringConstantsForce< DIM >::mNormalMutantMultiplier, LinearSpringWithVariableSpringConstantsForce< DIM >::mUseApoptoticSprings, LinearSpringWithVariableSpringConstantsForce< DIM >::mUseBCatSprings, LinearSpringWithVariableSpringConstantsForce< DIM >::mUseEdgeBasedSpringConstant, LinearSpringWithVariableSpringConstantsForce< DIM >::mUseMutantSprings, and GeneralisedLinearSpringForce< DIM >::VariableSpringConstantMultiplicationFactor().
void LinearSpringWithVariableSpringConstantsForce< 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 cell population |
Reimplemented from AbstractTwoBodyInteractionForce< DIM >.
Definition at line 203 of file LinearSpringWithVariableSpringConstantsForce.cpp.
References GeneralisedLinearSpringForce< DIM >::CalculateForceBetweenNodes(), MeshBasedCellPopulation< DIM >::SpringsBegin(), and MeshBasedCellPopulation< DIM >::SpringsEnd().
double LinearSpringWithVariableSpringConstantsForce< DIM >::GetBetaCatSpringScaler | ( | ) | [inline] |
Definition at line 223 of file LinearSpringWithVariableSpringConstantsForce.cpp.
References LinearSpringWithVariableSpringConstantsForce< DIM >::mBetaCatSpringScaler.
void LinearSpringWithVariableSpringConstantsForce< DIM >::SetBetaCatSpringScaler | ( | double | betaCatSpringScaler | ) | [inline] |
Set mBetaCatSpringScaler.
betaCatSpringScaler | the new value of mBetaCatSpringScaler |
Definition at line 229 of file LinearSpringWithVariableSpringConstantsForce.cpp.
References LinearSpringWithVariableSpringConstantsForce< DIM >::mBetaCatSpringScaler.
double LinearSpringWithVariableSpringConstantsForce< DIM >::GetApoptoticSpringTensionStiffness | ( | ) | [inline] |
Definition at line 236 of file LinearSpringWithVariableSpringConstantsForce.cpp.
References LinearSpringWithVariableSpringConstantsForce< DIM >::mApoptoticSpringTensionStiffness.
void LinearSpringWithVariableSpringConstantsForce< DIM >::SetApoptoticSpringTensionStiffness | ( | double | apoptoticSpringTensionStiffness | ) | [inline] |
Set mApoptoticSpringTensionStiffness.
apoptoticSpringTensionStiffness | the new value of mApoptoticSpringTensionStiffness |
Definition at line 242 of file LinearSpringWithVariableSpringConstantsForce.cpp.
References LinearSpringWithVariableSpringConstantsForce< DIM >::mApoptoticSpringTensionStiffness.
double LinearSpringWithVariableSpringConstantsForce< DIM >::GetApoptoticSpringCompressionStiffness | ( | ) | [inline] |
Definition at line 249 of file LinearSpringWithVariableSpringConstantsForce.cpp.
References LinearSpringWithVariableSpringConstantsForce< DIM >::mApoptoticSpringCompressionStiffness.
void LinearSpringWithVariableSpringConstantsForce< DIM >::SetApoptoticSpringCompressionStiffness | ( | double | apoptoticSpringCompressionStiffness | ) | [inline] |
Set mApoptoticSpringCompressionStiffness.
apoptoticSpringCompressionStiffness | the new value of mApoptoticSpringCompressionStiffness |
Definition at line 255 of file LinearSpringWithVariableSpringConstantsForce.cpp.
References LinearSpringWithVariableSpringConstantsForce< DIM >::mApoptoticSpringCompressionStiffness.
void LinearSpringWithVariableSpringConstantsForce< 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 262 of file LinearSpringWithVariableSpringConstantsForce.cpp.
References LinearSpringWithVariableSpringConstantsForce< DIM >::mApoptoticSpringCompressionStiffness, LinearSpringWithVariableSpringConstantsForce< DIM >::mApoptoticSpringTensionStiffness, LinearSpringWithVariableSpringConstantsForce< DIM >::mBetaCatSpringScaler, LinearSpringWithVariableSpringConstantsForce< DIM >::mMutantMutantMultiplier, LinearSpringWithVariableSpringConstantsForce< DIM >::mNormalMutantMultiplier, LinearSpringWithVariableSpringConstantsForce< DIM >::mUseApoptoticSprings, LinearSpringWithVariableSpringConstantsForce< DIM >::mUseBCatSprings, LinearSpringWithVariableSpringConstantsForce< DIM >::mUseEdgeBasedSpringConstant, LinearSpringWithVariableSpringConstantsForce< DIM >::mUseMutantSprings, and GeneralisedLinearSpringForce< DIM >::OutputForceParameters().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from GeneralisedLinearSpringForce< DIM >.
Definition at line 51 of file LinearSpringWithVariableSpringConstantsForce.hpp.
bool LinearSpringWithVariableSpringConstantsForce< DIM >::mUseEdgeBasedSpringConstant [protected] |
Whether to use spring constant proportional to cell-cell contact length/area (defaults to false).
Definition at line 78 of file LinearSpringWithVariableSpringConstantsForce.hpp.
Referenced by LinearSpringWithVariableSpringConstantsForce< DIM >::OutputForceParameters(), LinearSpringWithVariableSpringConstantsForce< DIM >::serialize(), LinearSpringWithVariableSpringConstantsForce< DIM >::SetEdgeBasedSpringConstant(), and LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().
bool LinearSpringWithVariableSpringConstantsForce< DIM >::mUseMutantSprings [protected] |
Whether to use different stiffnesses depending on whether either cell is a mutant.
Definition at line 81 of file LinearSpringWithVariableSpringConstantsForce.hpp.
Referenced by LinearSpringWithVariableSpringConstantsForce< DIM >::OutputForceParameters(), LinearSpringWithVariableSpringConstantsForce< DIM >::serialize(), LinearSpringWithVariableSpringConstantsForce< DIM >::SetMutantSprings(), and LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().
double LinearSpringWithVariableSpringConstantsForce< DIM >::mMutantMutantMultiplier [protected] |
Multiplier for spring stiffness if mutant.
Definition at line 84 of file LinearSpringWithVariableSpringConstantsForce.hpp.
Referenced by LinearSpringWithVariableSpringConstantsForce< DIM >::OutputForceParameters(), LinearSpringWithVariableSpringConstantsForce< DIM >::serialize(), LinearSpringWithVariableSpringConstantsForce< DIM >::SetMutantSprings(), and LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().
double LinearSpringWithVariableSpringConstantsForce< DIM >::mNormalMutantMultiplier [protected] |
Multiplier for spring stiffness if mutant.
Definition at line 87 of file LinearSpringWithVariableSpringConstantsForce.hpp.
Referenced by LinearSpringWithVariableSpringConstantsForce< DIM >::OutputForceParameters(), LinearSpringWithVariableSpringConstantsForce< DIM >::serialize(), LinearSpringWithVariableSpringConstantsForce< DIM >::SetMutantSprings(), and LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().
bool LinearSpringWithVariableSpringConstantsForce< DIM >::mUseBCatSprings [protected] |
Use springs which are dependent on beta-catenin levels.
Definition at line 90 of file LinearSpringWithVariableSpringConstantsForce.hpp.
Referenced by LinearSpringWithVariableSpringConstantsForce< DIM >::OutputForceParameters(), LinearSpringWithVariableSpringConstantsForce< DIM >::serialize(), LinearSpringWithVariableSpringConstantsForce< DIM >::SetBetaCateninSprings(), and LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().
bool LinearSpringWithVariableSpringConstantsForce< DIM >::mUseApoptoticSprings [protected] |
Use springs which are dependent on whether cells are apoptotic.
Definition at line 93 of file LinearSpringWithVariableSpringConstantsForce.hpp.
Referenced by LinearSpringWithVariableSpringConstantsForce< DIM >::OutputForceParameters(), LinearSpringWithVariableSpringConstantsForce< DIM >::serialize(), LinearSpringWithVariableSpringConstantsForce< DIM >::SetApoptoticSprings(), and LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().
double LinearSpringWithVariableSpringConstantsForce< DIM >::mBetaCatSpringScaler [protected] |
Scaling factor for beta catenin to spring strength.
Definition at line 96 of file LinearSpringWithVariableSpringConstantsForce.hpp.
Referenced by LinearSpringWithVariableSpringConstantsForce< DIM >::GetBetaCatSpringScaler(), LinearSpringWithVariableSpringConstantsForce< DIM >::OutputForceParameters(), LinearSpringWithVariableSpringConstantsForce< DIM >::serialize(), LinearSpringWithVariableSpringConstantsForce< DIM >::SetBetaCatSpringScaler(), and LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().
double LinearSpringWithVariableSpringConstantsForce< DIM >::mApoptoticSpringTensionStiffness [protected] |
Non-dimensionalized 'stiffness' of a apoptotic cell under tension.
Definition at line 99 of file LinearSpringWithVariableSpringConstantsForce.hpp.
Referenced by LinearSpringWithVariableSpringConstantsForce< DIM >::GetApoptoticSpringTensionStiffness(), LinearSpringWithVariableSpringConstantsForce< DIM >::OutputForceParameters(), LinearSpringWithVariableSpringConstantsForce< DIM >::serialize(), LinearSpringWithVariableSpringConstantsForce< DIM >::SetApoptoticSpringTensionStiffness(), and LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().
double LinearSpringWithVariableSpringConstantsForce< DIM >::mApoptoticSpringCompressionStiffness [protected] |
Non-dimensionalized 'stiffness' of a apoptotic cell under compression.
Definition at line 102 of file LinearSpringWithVariableSpringConstantsForce.hpp.
Referenced by LinearSpringWithVariableSpringConstantsForce< DIM >::GetApoptoticSpringCompressionStiffness(), LinearSpringWithVariableSpringConstantsForce< DIM >::OutputForceParameters(), LinearSpringWithVariableSpringConstantsForce< DIM >::serialize(), LinearSpringWithVariableSpringConstantsForce< DIM >::SetApoptoticSpringCompressionStiffness(), and LinearSpringWithVariableSpringConstantsForce< DIM >::VariableSpringConstantMultiplicationFactor().