-
Notifications
You must be signed in to change notification settings - Fork 0
/
allrey.pro
46 lines (38 loc) · 1.09 KB
/
allrey.pro
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
mdir=[ $
1.9,$
1.1$
]
alldir=[ $
0.1,$
0.3,$
0.5,$
0.7,$
0.9,$
1.1,$
1.3,$
1.4,$
1.5,$
1.6,$
1.7,$
1.8,$
1.9$
]
sz=size(alldir, /dimensions)
nsim=sz(0)
allrey=fltarr(nsim)
mrey=fltarr(nsim)
for i=0,1 do begin
readcol, 'm'+string(10*mdir[i], format='(I02)')+'/box.dat', time , xmom, ymom, zmom, magx, magy, magz, inten, kinx, kiny, kinz, magenx, mageny, magenz, Rey, Maxw, rmsrho, rmsp, artvisc, shearymom, shearkinen, totkinene, comprwork, thermalfluxx, thermalfluxy, thermalfluxz, normtemptau, Phix, Phiy, Phiz
mrey[i]=mean(rey)
endfor
for i=0,nsim-1 do begin
readcol, 'q'+string(10*alldir[i], format='(I02)')+'/box.dat', time , xmom, ymom, zmom, magx, magy, magz, inten, kinx, kiny, kinz, magenx, mageny, magenz, Rey, Maxw, rmsrho, rmsp, artvisc, shearymom, shearkinen, totkinene, comprwork, thermalfluxx, thermalfluxy, thermalfluxz, normtemptau, Phix, Phiy, Phiz
allrey[i]=mean(rey)
endfor
for i=0,1 do begin
print, -mdir[i], mrey[i]
endfor
for i=0,nsim-1 do begin
print, alldir[i], allrey[i]
endfor
end