This example serves to demonstrate the implementation of cells consuming a substrate field e.g. cytokine.
The logic is like this: In the PDE that describes the reaction and diffusion of the substrate, you include a negative term (i.e. for decrease) that is nonzero where there is a cell and zero where there is no cell.
Steps to reproduce:
1. Define a Field in Global/ e.g. called "cytokine" with an inital concentration 1.0 and diffusion
2. Define a System with a differential equation with a negative term, e.g. "-r*cell*cytokine" where "r" is the consumption rate of cells. (Here it is constant, but could also be a cell property to specify that each cell has its own consumption rate)
3. Define a Constant called "cell" which is "0" everywhere, except for where there is a cell.
To do this specify "cell" in Global and set it to "0".
But in CellType , the value of the constant is overwritten with a value of "1".
In this way, the term "-r*cell*cytokine" is negative 'within' cells and zero outside. Therefore, the cytokine concentration is only decreased at locations with cells.
Date: March 4, 2022
Author: walter@deback.net
Contributor: ferras_mahmoud.el-hendi@tu-dresden.de
Software: Morpheus (open-source), download from https://morpheus.gitlab.io