36 #include "ChemotaxisPottsUpdateRule.hpp"
38 template<
unsigned DIM>
44 template<
unsigned DIM>
49 template<
unsigned DIM>
51 unsigned targetNodeIndex,
57 c_vector<double, DIM> current_location;
58 current_location = rCellPopulation.
GetNode(currentNodeIndex)->rGetLocation();
59 c_vector<double, DIM> target_location;
60 target_location = rCellPopulation.
GetNode(targetNodeIndex)->rGetLocation();
62 for (
unsigned dimension=0; dimension<DIM; dimension++)
64 if (target_location[dimension] > current_location[dimension])
68 else if (target_location[dimension] < current_location[dimension])
77 template<
unsigned DIM>
ChemotaxisPottsUpdateRule()
Node< DIM > * GetNode(unsigned index)
~ChemotaxisPottsUpdateRule()
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
virtual void OutputUpdateRuleParameters(out_stream &rParamsFile)=0
void OutputUpdateRuleParameters(out_stream &rParamsFile)
double EvaluateHamiltonianContribution(unsigned currentNodeIndex, unsigned targetNodeIndex, PottsBasedCellPopulation< DIM > &rCellPopulation)