| 1 |
|
| 2 |
#============== |
| 3 |
# AUTO Demo tfc |
| 4 |
#============== |
| 5 |
|
| 6 |
print "\ntfc: run 1: equilibrium continuation" |
| 7 |
r1 = run(e='tfc',c='tfc',sv='tfc.1') |
| 8 |
|
| 9 |
print "\ntfc: run 2: cycle continuation" |
| 10 |
r2 = run(r1("HB1"),ICP=[3,11,7,8],UZR={3:0.75},IPS=2,IPLT=1, |
| 11 |
EPSL=1.e-9,EPSU=1.e-9,EPSS=1.e-7,ITMX=12,sv='tfc.2') |
| 12 |
|
| 13 |
print "\ntfc: run 3: cycle continuation" |
| 14 |
r3 = run(r2("UZ1"),ICP=[6,11,7,8],UZR={6:0.013},DS=0.001,DSMAX=0.01,sv='tfc.3') |
| 15 |
|
| 16 |
print "\ntfc: run 4: BP continuation (sw)" |
| 17 |
r4sw = run(r3("BP1"),ICP=[6,3,11,7,8],ISW=2,DS=0.01,DSMAX=0.1,UZR={}) |
| 18 |
|
| 19 |
print "\ntfc: run 4: BP continuation (fw)" |
| 20 |
r4fw = run(r4sw,STOP=['LP1','BP1'],sv='tfc.4.fw') |
| 21 |
|
| 22 |
print "\ntfc: run 4: BP continuation (bw)" |
| 23 |
r4bw = run(r4sw,STOP=['LP1'],NMX=300,NPR=50,NTST=70,DSMAX=10.0,DS='-',sv='tfc.4.bw') |
| 24 |
|
| 25 |
print "\ntfc: run 4: BP continuation (restart)" |
| 26 |
r4rs = run(r4fw()[0],NMX=50,NPR=10,DSMAX=0.1,sv='tfc.4.rs') |
| 27 |
|
| 28 |
print "\ntfc: run 5: iso-periodic cycle continuation" |
| 29 |
r5=run(r3("UZ1"),ICP=[3,1],ILP=0,NMX=100,NPR=20,THL={},DS=-0.01,DSMAX=0.1, |
| 30 |
sv='tfc.5') |
| 31 |
|
| 32 |
print "\ntfc: run 6: iso-periodic BP continuation (sw)" |
| 33 |
r6sw = run(r5("BP2"),ICP=[3,1,6],ISW=2,DS=0.01,DSMAX=0.1,NMX=50,NPR=10, |
| 34 |
sv='tfc.6.sw') |
| 35 |
|
| 36 |
print "\ntfc: run 6: iso-periodic BP continuation (fw)" |
| 37 |
r6fw = run(r6sw,sv='tfc.6.fw') |
| 38 |
|
| 39 |
print "\ntfc: run 6: iso-periodic BP continuation (bw)" |
| 40 |
r6bw = run(r6sw,STOP=['LP1','BP1'],DS='-',sv='tfc.6.bw') |
| 41 |
|
| 42 |
print "\ntfc: run 6: iso-periodic BP continuation (restart)" |
| 43 |
r6rs = run(r6fw()[1],sv='tfc.6.rs') |
| 44 |
|
| 45 |
print "\n***Clean the directory***" |
| 46 |
cl() |