36 #include "DifferentialAdhesionPottsUpdateRule.hpp"
38 template<
unsigned DIM>
41 mLabelledCellLabelledCellAdhesionEnergyParameter(0.1),
42 mLabelledCellCellAdhesionEnergyParameter(0.1),
43 mLabelledCellBoundaryAdhesionEnergyParameter(0.2)
47 template<
unsigned DIM>
52 template<
unsigned DIM>
57 return GetLabelledCellLabelledCellAdhesionEnergyParameter();
59 else if ( pCellA->HasCellProperty<
CellLabel>() || pCellB->HasCellProperty<
CellLabel>() )
61 return GetLabelledCellCellAdhesionEnergyParameter();
65 return this->GetCellCellAdhesionEnergyParameter();
69 template<
unsigned DIM>
74 return GetLabelledCellBoundaryAdhesionEnergyParameter();
78 return this->GetCellBoundaryAdhesionEnergyParameter();
82 template<
unsigned DIM>
85 return mLabelledCellLabelledCellAdhesionEnergyParameter;
88 template<
unsigned DIM>
91 return mLabelledCellCellAdhesionEnergyParameter;
94 template<
unsigned DIM>
97 return mLabelledCellBoundaryAdhesionEnergyParameter;
100 template<
unsigned DIM>
103 mLabelledCellLabelledCellAdhesionEnergyParameter = labelledCellLabelledCellAdhesionEnergyParameter;
106 template<
unsigned DIM>
109 mLabelledCellCellAdhesionEnergyParameter = labelledCellCellAdhesionEnergyParameter;
112 template<
unsigned DIM>
115 mLabelledCellBoundaryAdhesionEnergyParameter = labelledCellBoundaryAdhesionEnergyParameter;
118 template<
unsigned DIM>
121 *rParamsFile <<
"\t\t\t<LabelledCellLabelledCellAdhesionEnergyParameter>" << mLabelledCellLabelledCellAdhesionEnergyParameter <<
"</LabelledCellLabelledCellAdhesionEnergyParameter>\n";
122 *rParamsFile <<
"\t\t\t<LabelledCellCellAdhesionEnergyParameter>" << mLabelledCellCellAdhesionEnergyParameter <<
"</LabelledCellCellAdhesionEnergyParameter>\n";
123 *rParamsFile <<
"\t\t\t<LabelledCellBoundaryAdhesionEnergyParameter>" << mLabelledCellBoundaryAdhesionEnergyParameter <<
"</LabelledCellBoundaryAdhesionEnergyParameter>\n";
void OutputUpdateRuleParameters(out_stream &rParamsFile)
virtual double GetCellCellAdhesionEnergy(CellPtr pCellA, CellPtr pCellB)
double GetLabelledCellCellAdhesionEnergyParameter()
void OutputUpdateRuleParameters(out_stream &rParamsFile)
void SetLabelledCellLabelledCellAdhesionEnergyParameter(double labelledCellLabelledCellAdhesionEnergyParameter)
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
double GetLabelledCellLabelledCellAdhesionEnergyParameter()
double GetLabelledCellBoundaryAdhesionEnergyParameter()
DifferentialAdhesionPottsUpdateRule()
virtual ~DifferentialAdhesionPottsUpdateRule()
void SetLabelledCellBoundaryAdhesionEnergyParameter(double labelledCellBoundaryAdhesionEnergyParameter)
void SetLabelledCellCellAdhesionEnergyParameter(double labelledCellCellAdhesionEnergyParameter)
virtual double GetCellBoundaryAdhesionEnergy(CellPtr pCell)