File: gberg.ode

package info (click to toggle)
xppaut 5.85-3.3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 11,568 kB
  • ctags: 7,729
  • sloc: ansic: 80,804; cpp: 965; makefile: 271
file content (24 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# gberg.ode 
# A <<real>> boundary value problem whose solution represents a 
# rotating spiral wave solution to a two-dimensional partial 
# differential equation.  There are 3 dynamic variables and 
# a free shooting parameter -- omeg --
# Since 4 boundary conditions must be satisfied, there must be 4
# variables and thus the free parameter is treated
# dynamically
init a=0.0118  ap=1.18  k=0  omeg=-0.19  
par d=0.177  q=0.5  sig=3  
# the odes...
a'=ap
ap'=a*k*k-ap/t+a/(t*t)-a*(1-a*a)/d
k'=-k/t-2*k*ap/a-(omeg+q*a*a)/d
omeg'=0
# the boundary conditions
bndry  a-t*ap
bndry  k
bndry  ap'
bndry  k'
# set it up for the user
@ xhi=1 t0=.01,dt=.01,total=.99
done