# HG changeset patch # User Michael Guravage # Date 2011-08-26 19:12:49 # Node ID ce40edbe6273c1821e1e5561cabe5c6191eb03b7 # Parent b5cc18bab69786675e756a5a478042c45cc558ae Added fourth reaction-diffusion protocol: Prevent vascular cells from expanding. -- user: Michael Guravage branch 'default' changed src/protocols/MyDiffusionModel/mydiffusionmodel.cpp diff --git a/src/protocols/MyDiffusionModel/mydiffusionmodel.cpp b/src/protocols/MyDiffusionModel/mydiffusionmodel.cpp --- a/src/protocols/MyDiffusionModel/mydiffusionmodel.cpp +++ b/src/protocols/MyDiffusionModel/mydiffusionmodel.cpp @@ -31,7 +31,7 @@ QString Mydiffusionmodel::ModelID(void) { // specify the name of your model here - return QString( "Diffusion in a growing domain" ); + return QString( "Prevent vascular cells from expanding" ); } // return the number of chemicals your model uses @@ -54,7 +54,10 @@ void Mydiffusionmodel::SetCellColor(Cell void Mydiffusionmodel::CellHouseKeeping(CellBase *c) { // add cell behavioral rules here - c->EnlargeTargetArea(par->cell_expansion_rate); + if (c->Chemical(0) < 0.5){ + c->EnlargeTargetArea(par->cell_expansion_rate); + } + if(c->Area() > 2*c->BaseArea()){ c->Divide();