Chaste
Release::2017.1
|
#include <AdhesionPottsUpdateRule.hpp>
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
double | mCellCellAdhesionEnergyParameter |
double | mCellBoundaryAdhesionEnergyParameter |
Friends | |
class | TestPottsUpdateRules |
class | boost::serialization::access |
An adhesion update rule for use in cell-based simulations using the cellular Potts model.
Definition at line 50 of file AdhesionPottsUpdateRule.hpp.
AdhesionPottsUpdateRule< DIM >::AdhesionPottsUpdateRule | ( | ) |
Constructor.
Definition at line 39 of file AdhesionPottsUpdateRule.cpp.
Referenced by AdhesionPottsUpdateRule< DIM >::serialize().
|
virtual |
Destructor.
Definition at line 47 of file AdhesionPottsUpdateRule.cpp.
Referenced by AdhesionPottsUpdateRule< DIM >::serialize().
|
virtual |
Overridden EvaluateHamiltonianContribution() method
Uses sum_adjacentsites (1-delta(spin(i),spin(j))) gamma(spin(i),spin(j))
currentNodeIndex | The index of the current node/lattice site |
targetNodeIndex | The index of the target node/lattice site |
rCellPopulation | The cell population |
Before the move, we have a negative contribution (H_0) to the Hamiltonian if: the target node and neighbouring node are NOT contained in the same Potts element; the neighbouring node is contained in a Potts element, but the target node is not; or the target node is contained in a Potts element, but the neighbouring node is not.
After the move, we have a positive contribution (H_1) to the Hamiltonian if: the current node and neighbouring node are contained in different Potts elements; the neighbouring node is contained in a Potts element, but the current node is not; or the current node is contained in a Potts element, but the neighbouring node is not.
Implements AbstractPottsUpdateRule< DIM >.
Definition at line 52 of file AdhesionPottsUpdateRule.cpp.
References EXCEPTION, AdhesionPottsUpdateRule< DIM >::GetCellBoundaryAdhesionEnergy(), AdhesionPottsUpdateRule< DIM >::GetCellCellAdhesionEnergy(), AbstractCellPopulation< DIM >::GetCellUsingLocationIndex(), PottsBasedCellPopulation< DIM >::GetNode(), and PottsBasedCellPopulation< DIM >::rGetMesh().
Referenced by AdhesionPottsUpdateRule< DIM >::serialize().
|
virtual |
Method to calculate the specific interaction between cell and medium can be overridden in child classes to implement differential adhesion .etc.
pCell | pointer to the cell |
Reimplemented in DifferentialAdhesionPottsUpdateRule< DIM >.
Definition at line 161 of file AdhesionPottsUpdateRule.cpp.
References AdhesionPottsUpdateRule< DIM >::GetCellBoundaryAdhesionEnergyParameter().
Referenced by AdhesionPottsUpdateRule< DIM >::EvaluateHamiltonianContribution(), and AdhesionPottsUpdateRule< DIM >::serialize().
double AdhesionPottsUpdateRule< DIM >::GetCellBoundaryAdhesionEnergyParameter | ( | ) |
Definition at line 173 of file AdhesionPottsUpdateRule.cpp.
References AdhesionPottsUpdateRule< DIM >::mCellBoundaryAdhesionEnergyParameter.
Referenced by DifferentialAdhesionPottsUpdateRule< DIM >::GetCellBoundaryAdhesionEnergy(), AdhesionPottsUpdateRule< DIM >::GetCellBoundaryAdhesionEnergy(), and AdhesionPottsUpdateRule< DIM >::serialize().
|
virtual |
Method to calculate the specific interaction between 2 cells can be overridden in child classes to implement differential adhesion .etc.
pCellA | pointer to the 1st cell |
pCellB | pointer to the 2nd cell |
Reimplemented in DifferentialAdhesionPottsUpdateRule< DIM >.
Definition at line 155 of file AdhesionPottsUpdateRule.cpp.
References AdhesionPottsUpdateRule< DIM >::GetCellCellAdhesionEnergyParameter().
Referenced by AdhesionPottsUpdateRule< DIM >::EvaluateHamiltonianContribution(), and AdhesionPottsUpdateRule< DIM >::serialize().
double AdhesionPottsUpdateRule< DIM >::GetCellCellAdhesionEnergyParameter | ( | ) |
Definition at line 167 of file AdhesionPottsUpdateRule.cpp.
References AdhesionPottsUpdateRule< DIM >::mCellCellAdhesionEnergyParameter.
Referenced by DifferentialAdhesionPottsUpdateRule< DIM >::GetCellCellAdhesionEnergy(), AdhesionPottsUpdateRule< DIM >::GetCellCellAdhesionEnergy(), and AdhesionPottsUpdateRule< DIM >::serialize().
|
virtual |
Overridden OutputUpdateRuleParameters() method.
rParamsFile | the file stream to which the parameters are output |
Reimplemented from AbstractPottsUpdateRule< DIM >.
Reimplemented in DifferentialAdhesionPottsUpdateRule< DIM >.
Definition at line 191 of file AdhesionPottsUpdateRule.cpp.
References EXPORT_TEMPLATE_CLASS_SAME_DIMS, AdhesionPottsUpdateRule< DIM >::mCellBoundaryAdhesionEnergyParameter, AdhesionPottsUpdateRule< DIM >::mCellCellAdhesionEnergyParameter, and AbstractPottsUpdateRule< DIM >::OutputUpdateRuleParameters().
Referenced by DifferentialAdhesionPottsUpdateRule< DIM >::OutputUpdateRuleParameters(), and AdhesionPottsUpdateRule< DIM >::serialize().
|
inlineprivate |
Boost Serialization method for archiving/checkpointing. Archives the object and its member variables.
archive | The boost archive. |
version | The current version of this class. |
Definition at line 79 of file AdhesionPottsUpdateRule.hpp.
References AdhesionPottsUpdateRule< DIM >::AdhesionPottsUpdateRule(), AdhesionPottsUpdateRule< DIM >::EvaluateHamiltonianContribution(), EXPORT_TEMPLATE_CLASS_SAME_DIMS, AdhesionPottsUpdateRule< DIM >::GetCellBoundaryAdhesionEnergy(), AdhesionPottsUpdateRule< DIM >::GetCellBoundaryAdhesionEnergyParameter(), AdhesionPottsUpdateRule< DIM >::GetCellCellAdhesionEnergy(), AdhesionPottsUpdateRule< DIM >::GetCellCellAdhesionEnergyParameter(), AdhesionPottsUpdateRule< DIM >::mCellBoundaryAdhesionEnergyParameter, AdhesionPottsUpdateRule< DIM >::mCellCellAdhesionEnergyParameter, AdhesionPottsUpdateRule< DIM >::OutputUpdateRuleParameters(), AdhesionPottsUpdateRule< DIM >::SetCellBoundaryAdhesionEnergyParameter(), AdhesionPottsUpdateRule< DIM >::SetCellCellAdhesionEnergyParameter(), and AdhesionPottsUpdateRule< DIM >::~AdhesionPottsUpdateRule().
void AdhesionPottsUpdateRule< DIM >::SetCellBoundaryAdhesionEnergyParameter | ( | double | cellBoundaryAdhesionEnergyParameter | ) |
Set mCellBoundaryAdhesionEnergyParameter.
cellBoundaryAdhesionEnergyParameter | the new value of mCellBoundaryAdhesionEnergyParameter |
Definition at line 185 of file AdhesionPottsUpdateRule.cpp.
References AdhesionPottsUpdateRule< DIM >::mCellBoundaryAdhesionEnergyParameter.
Referenced by AdhesionPottsUpdateRule< DIM >::serialize().
void AdhesionPottsUpdateRule< DIM >::SetCellCellAdhesionEnergyParameter | ( | double | cellCellAdhesionEnergyEnergyParameter | ) |
Set mCellCellAdhesionEnergyParameter.
cellCellAdhesionEnergyEnergyParameter | the new value of mCellCellAdhesionEnergyParameter |
Definition at line 179 of file AdhesionPottsUpdateRule.cpp.
References AdhesionPottsUpdateRule< DIM >::mCellCellAdhesionEnergyParameter.
Referenced by AdhesionPottsUpdateRule< DIM >::serialize().
|
private |
Cell-boundary adhesion energy parameter. Set to the default value 0.2 in the constructor.
Definition at line 68 of file AdhesionPottsUpdateRule.hpp.
Referenced by AdhesionPottsUpdateRule< DIM >::GetCellBoundaryAdhesionEnergyParameter(), AdhesionPottsUpdateRule< DIM >::OutputUpdateRuleParameters(), AdhesionPottsUpdateRule< DIM >::serialize(), and AdhesionPottsUpdateRule< DIM >::SetCellBoundaryAdhesionEnergyParameter().
|
private |
Cell-cell adhesion energy parameter. Set to the default value 0.1 in the constructor.
Definition at line 61 of file AdhesionPottsUpdateRule.hpp.
Referenced by AdhesionPottsUpdateRule< DIM >::GetCellCellAdhesionEnergyParameter(), AdhesionPottsUpdateRule< DIM >::OutputUpdateRuleParameters(), AdhesionPottsUpdateRule< DIM >::serialize(), and AdhesionPottsUpdateRule< DIM >::SetCellCellAdhesionEnergyParameter().