Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
AbstractPottsUpdateRule< DIM > Class Template Referenceabstract

#include <AbstractPottsUpdateRule.hpp>

+ Inheritance diagram for AbstractPottsUpdateRule< DIM >:
+ Collaboration diagram for AbstractPottsUpdateRule< DIM >:

Public Member Functions

 AbstractPottsUpdateRule ()
 
virtual ~AbstractPottsUpdateRule ()
 
virtual double EvaluateHamiltonianContribution (unsigned currentNodeIndex, unsigned targetNodeIndex, PottsBasedCellPopulation< DIM > &rCellPopulation)=0
 
virtual void OutputUpdateRuleParameters (out_stream &rParamsFile)
 
- Public Member Functions inherited from AbstractUpdateRule< DIM >
 AbstractUpdateRule ()
 
virtual ~AbstractUpdateRule ()
 
void OutputUpdateRuleInfo (out_stream &rParamsFile)
 
- Public Member Functions inherited from Identifiable
virtual ~Identifiable ()
 
std::string GetIdentifier () const
 

Private Member Functions

template<class Archive >
void serialize (Archive &archive, const unsigned int version)
 

Friends

class boost::serialization::access
 

Detailed Description

template<unsigned DIM>
class AbstractPottsUpdateRule< DIM >

An abstract Potts update rule class, for use in cellular Potts model simulations.

Definition at line 49 of file AbstractPottsUpdateRule.hpp.

Constructor & Destructor Documentation

◆ AbstractPottsUpdateRule()

Default constructor.

Definition at line 39 of file AbstractPottsUpdateRule.cpp.

◆ ~AbstractPottsUpdateRule()

template<unsigned DIM>
AbstractPottsUpdateRule< DIM >::~AbstractPottsUpdateRule ( )
virtual

Destructor.

Definition at line 45 of file AbstractPottsUpdateRule.cpp.

Member Function Documentation

◆ EvaluateHamiltonianContribution()

template<unsigned DIM>
virtual double AbstractPottsUpdateRule< DIM >::EvaluateHamiltonianContribution ( unsigned  currentNodeIndex,
unsigned  targetNodeIndex,
PottsBasedCellPopulation< DIM > &  rCellPopulation 
)
pure virtual

Calculate the contribution to the Hamiltonian.

As this method is pure virtual, it must be overridden in subclasses.

Parameters
currentNodeIndexThe index of the current node/lattice site
targetNodeIndexThe index of the target node/lattice site
rCellPopulationThe cell population
Returns
The difference in the Hamiltonian with the configuration of the target node having the same spin as the current node with the current configuration. i.e H_1-H_0

Implemented in AdhesionPottsUpdateRule< DIM >, ChemotaxisPottsUpdateRule< DIM >, SurfaceAreaConstraintPottsUpdateRule< DIM >, and VolumeConstraintPottsUpdateRule< DIM >.

◆ OutputUpdateRuleParameters()

◆ serialize()

template<unsigned DIM>
template<class Archive >
void AbstractPottsUpdateRule< DIM >::serialize ( Archive &  archive,
const unsigned int  version 
)
inlineprivate

Boost Serialization method for archiving/checkpointing. Archives the object and its member variables.

Parameters
archiveThe boost archive.
versionThe current version of this class.

Definition at line 61 of file AbstractPottsUpdateRule.hpp.

Friends And Related Symbol Documentation

◆ boost::serialization::access

template<unsigned DIM>
friend class boost::serialization::access
friend

Needed for serialization.

Definition at line 52 of file AbstractPottsUpdateRule.hpp.


The documentation for this class was generated from the following files: