Add support for diffusion reactions and multiple volumes #30
Labels
Bioscrape Core
Issues pertaining to core bioscrape functionality
enhancement
New feature or request
help wanted
Extra attention is needed
I will describe this problem with a use case:
Consider two volumes (internal i and external e) which we are simulating deterministically in bioscrape. We want to model diffusion between the two compartments Xi <--> Xe. Notice that to conserve number of particles, Vi d[Xi]/dt = - Ve d[Xe]/dt. This can be modelled with one either of two sets of reactions:
OR
Which of the sets of equations (or any of the infinite set of rescaled equations) is best? What units are natural for the diffusion rates d?
In order to simulate this, we need to create multiple volumes and a special kind of propensity for these kinds of use cases. Note that the stochiometric coefficents might not be integers. In the stochastic case, the stochiometric coeficients are 1 and the rates are not rescaled at all - so this is an important example of very different behavior between stochastic and deterministic settings.
@ayush9pandey your input would be appreciated here (and we should check over the math and see if there is a nice reference for this stuff) @sclamons this is very similar to the discussions we have had around deterministic lineages.
The text was updated successfully, but these errors were encountered: