36 #include "DiffusionCaUpdateRule.hpp"
38 template<
unsigned DIM>
41 mDiffusionParameter(0.5)
45 template<
unsigned DIM>
50 template<
unsigned DIM>
52 unsigned targetNodeIndex,
58 c_vector<double, DIM> node_index_location = rCellPopulation.
GetNode(currentNodeIndex)->rGetLocation();
59 c_vector<double, DIM> node_neighbour_location = rCellPopulation.
GetNode(targetNodeIndex)->rGetLocation();
61 return (mDiffusionParameter*dt/(2* pow(norm_2(rCellPopulation.
rGetMesh().GetVectorFromAtoB(node_index_location, node_neighbour_location)), 2)));
64 template<
unsigned DIM>
67 return mDiffusionParameter;
70 template<
unsigned DIM>
73 mDiffusionParameter = diffusionParameter;
76 template<
unsigned DIM>
79 *rParamsFile <<
"\t\t\t<DiffusionParameter>" << mDiffusionParameter <<
"</DiffusionParameter>\n";
virtual void OutputUpdateRuleParameters(out_stream &rParamsFile)=0
PottsMesh< DIM > & rGetMesh()
Node< DIM > * GetNode(unsigned index)
void OutputUpdateRuleParameters(out_stream &rParamsFile)
double GetDiffusionParameter()
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
double EvaluateProbability(unsigned currentNodeIndex, unsigned targetNodeIndex, CaBasedCellPopulation< DIM > &rCellPopulation, double dt, double deltaX, CellPtr cell)
void SetDiffusionParameter(double diffusionParameter)