| SimAnimate | Cellzilla2D Home |
Description
Returns a sequence of graphics images visulizing the results of a simulation, with the concentration of one particular species illustrated as a function of position in each image. The concentration is represented by a range of colors, one color per cell.
Needs["Cellzilla2D`"];
Return Value
SimAnimate[solution, variable, template, {StartTime,EndTime, Interval}, {ColorMin, ColorMax}, {ValMin, ValMax}] returns a list of graphics objects. These can visualized as a movie using ListAnimate, or exported as image files and converted with an external program such ss ffmpeg.
solution - is the output of RunSim
variable - is any variable in the solution, e.g., if X is used, then the output will use the color of X[1][t] for cell 1, X[2][t] for cell 2, ...
template - is the template used to generate the reaction newtork with CelleratorNetwork.
{StartTime, EndTime, Interval} - the times used for the animation.
{ColorMin, ColorMax} - Any two RGB colors; the color of of cell i is calculated from the value of X[i][t] using linear interpolation between ValMin and ValMax. Values less than the minimum or more than the maximum or plotted at ColorMin or ColorMax. These colors can either be color names such as Pink or RGB color specifications using RGBColor. A list of named colors can be found here.
Options
Example
[ Download Example as Zipped Mathematica Notebook ]
Implementation Notes
See Also
