| E-Cell Simulation Environment Version 3.1.100 User's Manual (Draft: Dec. 18, 2003) | ||
|---|---|---|
| Prev | Chapter 4. Modeling Tutorial | Next |
The simplest way to script custom rate equations is to use
ExpressionFluxProcess.
Here is an example taken from the Drosophila sample model.
In this expression, Size * N_A of the supersystem of the Process
is used to keep the unit of the expression [ num / second ].
Example 4-5. A differential equation in the Drosophila model
Process ExpressionFluxProcess( R_toy1 )
{
vs 0.76;
KI 1;
Expression "(vs*KI) / (KI + C0.MolarConc ^ 3)
* self.getSuperSystem().SizeN_A";
VariableReferenceList [ P0 :.:M 1 ] [ C0 :.:Pn 0 ];
}FIXME: some more examples
Use of ExpressionAlgebraicProcess
is the easiest method to describe algebraic equations.
Be careful about the coefficients of the VariableReferences. (Usually just set unities.)
FIXME: some more examples here