-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathinit2.txt
54 lines (46 loc) · 922 Bytes
/
init2.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
! Smooth Alfv¨¦n Wave
parameter(alpha = pi/4)
parameter(sinA = sin(alpha))
parameter(cosA = cos(alpha))
real vbot
vbot(x,y) = 0.1d0*sin(2d0*pi*(x*cosA + y*sinA))
real Bbot
Bbot(x,y) = 0.1d0*sin(2d0*pi*(x*cosA + y*sinA))
real Bpar
Bpar(x,y) = 1
real p
p(x,y) = 0.1
real rho
rho(x,y) = 1
real v1
v1(x,y) = vbot(x,y)*(-sinA)
real v2
v2(x,y) = vbot(x,y)*cosA
real B1
B1(x,y) = Bpar(x,y)*cosA - Bbot(x,y)*sinA
real B2
B2(x,y) = Bpar(x,y)*sinA + Bbot(x,y)*cosA
real U1
U1(x,y) = rho(x,y)
real U2
U2(x,y) = rho(x,y)*v1(x,y)
real U3
U3(x,y) = rho(x,y)*v2(x,y)
real U4
U4(x,y) = p(x,y)/gamma1 + 0.5d0*rho(x,y)*(v1(x,y)**2 + v2(x,y)**2) + 0.5d0*(B1(x,y)**2 + B2(x,y)**2)
real U5
U5(x,y) = B1(x,y)
real U6
U6(x,y) = B2(x,y)
real Ezf
Ezf(x,y) = v2(x,y)*B1(x,y) - v1(x,y)*B2(x,y)
xa = 0
xb = 1d0/cosA
ya = 0
yb = 1d0/sinA
bcR = 1
bcL = 1
bcU = 1
bcD = 1
tend = 2
M = 1000000