| 1 |
|
| 2 |
#============== |
| 3 |
# AUTO Demo ffn: Periodically forced FitzHugh-Nagumo equations |
| 4 |
#============== |
| 5 |
|
| 6 |
print "\n***Periodically forced FitzHugh-Nagumo equations***" |
| 7 |
print " " |
| 8 |
print "\n***Homotopy in the coupling constant ***" |
| 9 |
r1 = run(e='ffn', c='ffn.1') |
| 10 |
save('1') |
| 11 |
|
| 12 |
print "\n***Continue with varying FHN parameter 'a'***" |
| 13 |
r2 = run(r1('UZ1'), ICP=['a','PERIOD'], NTST=25, EPSS=1e-5, DS=0.03, DSMAX=0.03, |
| 14 |
UZR={'a': [0.25, 0.5]}, UZSTOP={'a': 1.0}, LAB=1, NMX=100) |
| 15 |
print "\n***Save the solution files***" |
| 16 |
save('2') |
| 17 |
|
| 18 |
print "\n***Increase the coupling constant ***" |
| 19 |
r3 = run(r1(1), NTST=25, EPSS=1e-5, DS=0.05, DSMAX=0.5, |
| 20 |
UZSTOP={'amp': 10.0}, LAB=1, NMX=100, NPR=10) |
| 21 |
print "\n***Save the solution files***" |
| 22 |
save('3') |
| 23 |
|
| 24 |
print "\n***Clean the directory***" |
| 25 |
clean() |