A Python file that can be used with PyDSTool is created by the command
This command creates the file [name].py, where [name] is the name of the vector field given in the vector field file. The file defines the function args(), which returns an "args" object that can be used to create a PyDSTool Generator.
demo |
If the option demo=yes is given,
the file [name]_dst.py
is also created. This program provides a sample Python script
that uses a Generator to plot a solution to the differential
equations.
The initial conditions and parameter values for the solution
are the default values defined in the vector
field file.
Default: demo=no |
Here is a sample vector field file: vanderpol.vf.
The files created by
The command
In this example, we use the PyCont subpackage of PyDSTool to compute a two parameter bifurcation diagram for the Morris-Lecar equations.
A vector field file for the Morris-Lecar equation is MorrisLecar.vf. We generate the file MorrisLecar.py with the command