These instructions were obtained from the OSU math department web site
Here is how to do it.
cd Desktop/xppmac/ode
ls *.ode
@ bigfont=lucidasanstypewriter-bold-14
@ ps_lw=15,ps_color=1,ps_font=Helvetica,ps_fsize=18
@ nmax=2000,npr=500,ntst=60
@ tutorial=0
This automatically turns the bell off, the fancy menus (grads) off, and the tutorial off. I also change the drawing window color from white to a kind of ivory and the drawing foreground color to a brown. I also use much bigger fonts and change some of the AUTO defaults. Finally I change some of the postscript defaults. You can find out more about these options in the xpp_sum.pdf document.
The only way to change the fonts and the colors of XPP is via the
cd
The second command just lists all the ODE files. If you are going to use XPP a lot, it is good to maintain different folders with the ODEs and other files like table files and set files all together. This way you can always navigate to them and run XPP from the command line. For now, you can just keep hem here.
/Applications/xppaut lecar.ode
to fire up the old lecar.ode model in XPP
You may want to customize your defaults so that XPP looks the way you want it to when you run it. I generally get rid of some defaults (such as the Bell) and make the fonts bigger so I can see them. This is done by creating a plain text file in your HOME directory called .xpprc
. You can use textedit to create the file (or your favorite editor) but make sure it is plain text and make sure that the .txt
extension is left off. I provide the following example ( example.xpprc
):
@ bell=0,grads=0,dwcolor=ffffee,forecolor=222200
.xpprc
file or through the command line since these are processed before the X11 server starts. Sorry.
Creating your own ODE files
.ode
but can have any extension yiu want as XPP ignores it. There are a few rules that are really important to understand:
Look at the many examples to see how to construct your own ODE files.
aBc
and ABC
are the same to XPP.
iapp=0.1
instead of iapp = 0.1
#
is a comment
done
If you do you can write lots of instructions after this that will be ignored by the program but may be useful for the user who reads the ODE file.
name=expression
are evaluated first and in the order they are written, so if one expression makes a reference to another, then make sure they are ordered appropriately
special name=expression
like convolutions etc.
export
command
There are many XPP tutorials out there to help you get started