Changeset - ce40edbe6273
[Not reviewed]
Michael Guravage - 14 years ago 2011-08-26 19:12:49
michael.guravage@cwi.nl
Added fourth reaction-diffusion protocol: Prevent vascular cells from expanding.

--
user: Michael Guravage <michael.guravage@cwi.nl>
branch 'default'
changed src/protocols/MyDiffusionModel/mydiffusionmodel.cpp
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/protocols/MyDiffusionModel/mydiffusionmodel.cpp
Show inline comments
 
@@ -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();
0 comments (0 inline, 0 general)