| 1 |
# This script shows how the tutorial from the AUTO07P manual |
| 2 |
# can be implemented in the new command line user interface. |
| 3 |
# In fact it shows two ways. The first uses the standard |
| 4 |
# ab.auto file which comes with the tutorial, and the second |
| 5 |
# uses only the problem definition file 'ab.c' |
| 6 |
# and the constant files 'c.ab.1', 'c.ab.2', and 'c.ab.3' |
| 7 |
|
| 8 |
# The next two commands are sent to the shell |
| 9 |
! rm -rf test |
| 10 |
! mkdir test |
| 11 |
# Go into the newly created test directory |
| 12 |
cd test |
| 13 |
# Copy the ab demo into the current directory. This command |
| 14 |
# also loads in the problem definition file ab.c and the |
| 15 |
# constants file c.ab. Basically, the 'dm' command is |
| 16 |
# the concatenation of the 'copyDemo' command and the |
| 17 |
# 'ld' command |
| 18 |
dm("ab") |
| 19 |
# The next two commands call other scripts |
| 20 |
auto('ab.auto') |
| 21 |
auto('clean.auto') |
| 22 |
# Now, we show how the tutorial can be run without |
| 23 |
# using scripts. See the manual for specifics. |
| 24 |
|
| 25 |
# Load the files ab.c, c.ab, s.ab, and h.ab into the AUTO |
| 26 |
# command interpretor. If either the s.ab or the h.ab file |
| 27 |
# does not exist it is silently ignored, since they are not |
| 28 |
# necessarily required to run AUTO. NOTE: in this case this |
| 29 |
# command is not needed since its functionality is included |
| 30 |
# in the 'dm' command. It is put here for clarity. |
| 31 |
ld("ab") |
| 32 |
# Run AUTO 2000 using the constants file c.ab.1 |
| 33 |
rn(c="ab.1") |
| 34 |
# Save the bifurcation diagram in b.ab, the solution in s.ab, |
| 35 |
# and the diagnostics in d.ab |
| 36 |
sv("ab") |
| 37 |
# Run AUTO 2000 using the constants file c.ab.2 and |
| 38 |
# the file s.ab as starting data. |
| 39 |
rn(c="ab.2",solution="ab",IRS=2) |
| 40 |
# Append the current solution onto the files b.ab, s.ab, and d.ab |
| 41 |
# as appropriate. |
| 42 |
ap("ab") |
| 43 |
# Run AUTO 2000 using the constants file c.ab.3 and |
| 44 |
# the file s.ab as starting data. |
| 45 |
rn(constants="ab.3",s="ab",IRS=7) |
| 46 |
# Save the bifurcation diagram in b.2p, the solution in s.2p, |
| 47 |
# and the diagnostics in d.2p |
| 48 |
sv("2p") |
| 49 |
# Run AUTO 2000 using the constants file c.ab.3 and |
| 50 |
# the file s.ab as starting data, reversing the direction. |
| 51 |
# Even though s="ab" |
| 52 |
# isn't specified, the command uses the last solution |
| 53 |
# file specified as the default. |
| 54 |
rn(c="ab.3",IRS=7,DS='-') |
| 55 |
# Append the current solution onto the files b.ab, s.ab, and d.ab |
| 56 |
# as appropriate. |
| 57 |
ap("2p") |
| 58 |
# Run AUTO 2000 using the constants file c.ab.3 and |
| 59 |
# the file s.ab as starting data. |
| 60 |
rn(constants="ab.3",IRS=7) |
| 61 |
# Append the current solution onto the files b.ab, s.ab, and d.ab |
| 62 |
# as appropriate. |
| 63 |
ap("2p") |
| 64 |
|
| 65 |
|
| 66 |
|