Hi Jessica,
thank you for this relevant question!
In short: the Global/System sees the local secretion flux density in each occupied lattice node and this density (but not the total flux per cell) is given by a Property or Constant of a CellType. This could have been defined the other way around but we decided for the density. You can scale this Property by cell.volume inside the CellType to control the total secretion flux per cell.
For example models with ligand secretion, please see
and assuming that your model has a Global/Field "Ligand" (with Diffusion=well-mixed) and your Global/System has a differential equation for Ligand with the secretion term "+k", then inside the CellType you need a Property "k" (not a Constant) and a second Property (or Constant) "total_flux" and an Equation for "k" with expression "total_flux / cell.volume" which will provide the flux density "k" for each occupied lattice node to the Global/System.
And to explain, what you have observed in your previous simulations: As long as cells were not compressed by crowding, they had cell.volume close to a target_volume and the observed total ligand secretion flux for the whole system must have been approx. equal to "k*target_volume*celltype.cells.size" (assuming your CellType was named "cells"). When the domain got filled, then each individual cell.volume compressed approx. to
"number_of_nodes_in_domain/celltype.cells.size"
and you observed saturation of the total ligand secretion flux at a level "k*number_of_nodes_in_domain".
Now on the sensor part: You correctly use a Mapper inside CellType to sense the local ligand concentration from your Global/Field "Ligand". As "Ligand" may have different values (not in your welll-mixed case but in general) at the lattice nodes occupied by any given cell, the Mapper needs to apply statistics to map multiple values to one value per cell. Hence, under Mapper/Output/mapping you can select how your sensor should do the stats. The default is "average" (and returns the Ligand value in your case) but you can also choose "sum" to add up the values of Ligand over all occupied lattice nodes of a given cell. There are also four other mapping stats, please see the in-app docu in the GUI for details.
Hope this helps, else please share a minimal xml file and we add these lines together.
Best,
Lutz
for Morpheus.lab