[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

reading out data with lua grid script



Hello,

Thank you very much for the script of the grid. I changed it to the 
following script:

handle=openfile("values.txt","w")
for z=30,45 do
for r=9,11 do
Are,B1re,B2re,H1re,H2re = getpointvalues(z,r)
write(handle,Are," ",B1re," ",B2re," ",H1re," ",H2re,"\n")
end
write(handle,"\n")
end
closefile(handle)

The problem is that is does not print the B1re and H1re (so the 
radial fields). The output gives they are all zero, like in the 
output below, but they are not!

7.564957837634438e-005 0 -0.01011575017633231 0 0.2402234298898204
7.78864561055457e-005 0 -0.01389195896514963 0 0.2680283253748692
7.903691113855052e-005 0 -0.00980976210025755 0 0.2700272882441631

0.0001212365159354975 0 -0.03780833618900484 0 0.2368735080082556
0.0001289923703017109 0 -0.04392286428509314 0 0.2650224163844424
0.0001305426428443437 0 -0.01315416466581643 0 0.2674158620273923

0.000167601625165245 0 -0.06535015642316791 0 0.2293408808386393
0.0001810193111247017 0 -0.07159225580880617 0 0.260267496322605
0.0001832077406199128 0 -0.01762415883306737 0 0.2644895616203107

How is this possible? Thank you very much in advance.

E-J Borkent