CompuCell3d manual and Tutorial Version 2


IX.3.6. FlexibleDiffusionSolver



Download 6.67 Mb.
Page47/66
Date26.04.2018
Size6.67 Mb.
#46944
1   ...   43   44   45   46   47   48   49   50   ...   66

IX.3.6. FlexibleDiffusionSolver

This steppable is one of the basic and most important modules in CompuCell3D simulations. As the name suggests it is responsible for solving diffusion equation but in addition to this it also handles chemical secretion which maybe thought of as being part of general diffusion equation.



where k is a decay constant of concentration c and D is the diffusion constant. The term called secretion has the meaning as described below.

The principles of operations are analogous as in the case of AdvectionDiffusionSolver so most of has been said there applies to FlexibleDiffusionSolve. Also the syntax is very similar. Let's see an example








FGF8

0.1

0.002

0.1

1.0

Bacteria





0.1








FGF

0.02

0.001

0.01

0.1

Bacteria





SecreteOnContactWith="Amoeba">0.1

0.1






We can see new xml tags and . Their values determine the correspondence between MCS and actual time and between lattice spacing and actual spacing size. In this example for the first diffusion field one MCS corresponds to 0.1 units of actual time and lattice spacing is equal 1 unit of actual length. What is happening here is that the diffusion constant gets multiplied by:
DeltaT/(DeltaX* DeltaX)
provided the decay constant is set to 0. If the decay constant is not zero DeltaT appears additionally in the term (in the explicit numerical approximation of the diffusion equation solution) containing decay constant so in this case it is more than simple diffusion constant rescaling.
SecretionData sections are analogous to those defined in AdvectionDiffusionSolver. here however, the secretion is done done on per-pixel basis (as opposed to per cell basis for AdvectionDiffusionSolver). For example when we use the following xml statement

0.1
this means that every pixel that belongs to cells of type Amoebae will get boost in concentration by 0.1. That is the secretion proceeds uniformly in the whole body of a cell.

Alternative secretion mode would be the one described by the following line:


0.1

Here the secretion will take place in medium and only in those pixels belonging to Medium that touch directly Amoeba.

More secretion schemes will be added in the future.


The FlexibleDiffusionSolver is also capable of solving simple coupled diffusion type PDE of the form:

where are coupling coefficients. To code the above equations in xml CompuCell3D syntax you need to use the following syntax:






c

0.1

0.002





0.1

1.0

Bacteria





0.1








d

0.02

0.001





0.01

0.1

Bacteria





0.1









f

0.02

0.001





0.01

0.1

Bacteria





0.1






As one can see the only addition that is required to couple diffusion equations has simple syntax:







        1. Download 6.67 Mb.

          Share with your friends:
1   ...   43   44   45   46   47   48   49   50   ...   66




The database is protected by copyright ©ininet.org 2024
send message

    Main page