1
from fluidity_tools import stat_parser
2
from numpy import zeros,fromfile, ones, shape
4
s = stat_parser("lagrangian_detectors.detectors")
6
last_locations_error = zeros((3,100))
14
last_locations_error[0,i] = s['Steve_'+padding+str(n)]['position'][0][-1]
15
last_locations_error[1,i] = s['Steve_'+padding+str(n)]['position'][1][-1]
16
last_locations_error[2,i] = s['Steve_'+padding+str(n)]['position'][2][-1]
17
X = fromfile('Xvals.txt',sep=' ')
18
Y = fromfile('Yvals.txt',sep=' ')
19
Z = 0.5*ones(shape(X))
20
last_locations_error[0,:] = last_locations_error[0,:] - X
21
last_locations_error[1,:] = last_locations_error[1,:] - Y
22
last_locations_error[2,:] = last_locations_error[2,:] - Z
23
return last_locations_error