|
def | __init__ (self, uid, x, y, isOn, sign=1) |
|
def | update_uid (self, uid) |
|
def | update_on (self, isOn) |
|
def | update_next (self, next) |
|
def | dist (self, vtx) |
|
def | __init__ (self) |
|
def | element (self, pos) |
|
def | vtx_uid (self, uid) |
|
def | max_uid (self) |
|
def | add (self, Vtx, index=None) |
|
def | as_np (self) |
|
def | write_out (self, time, data) |
|
def | idx_min_dist (self, vortex, isSelf=False) |
|
def | remove (self, pos) |
|
def | swap_uid (self, uid_i, uid_f) |
|
def | vort_decrease (self, positions, vorts_p) |
|
def | vort_increase (self, positions, vorts_p) |
|
def | run (start, fin, incr) |
|
|
string | data_dir = "../" + sys.argv[1] + "/" |
|
| c = ConfigParser.ConfigParser() |
|
| xDim = int(c.getfloat('Params','xDim')) |
|
| yDim = int(c.getfloat('Params','yDim')) |
|
| gndMaxVal = int(c.getfloat('Params','gsteps')) |
|
| evMaxVal = int(c.getfloat('Params','esteps')) |
|
| incr = int(c.getfloat('Params','printSteps')) |
|
tuple | dx = (c.getfloat('Params','dx')) |
|
tuple | dt = (c.getfloat('Params','dt')) |
|
tuple | xMax = (c.getfloat('Params','xMax')) |
|
tuple | yMax = (c.getfloat('Params','yMax')) |
|
| uid |
|
| x |
|
| y |
|
| sign |
|
| isOn |
|
| next |
|
| r = m.sqrt((self.x - vtx.x)**2 + (self.y - vtx.y)**2) |
|
| head |
|
| tail |
|
| length |
|
int | pos_l = 0 |
|
| vtx = self.head |
|
int | pos = 0 |
|
int | val = 0 |
|
list | dtype = [('x',float),('y',float),('sign',int),('uid',int),('isOn',int)] |
|
list | data = [] |
|
int | i = 0 |
|
| fmt |
|
| delimiter |
|
int | counter = 0 |
|
int | ret_idx = counter |
|
def | current = self.element(pos-1).next |
|
def | vtx_pos = self.vtx_uid(uid_i) |
|
| index |
|
def | max_uid = vorts_p.max_uid() |
|
| v_arr_p = genfromtxt(data_dir+'vort_arr_' + str(incr),delimiter=',') |
|
| vorts_p = VtxList() |
|
| vorts_c = VtxList() |
|
| v_arr_c = genfromtxt(data_dir+'vort_arr_' + str(i), delimiter=',') |
|
| v_arr_p_coords = np.array([a for a in v_arr_p[:,[1,3]]]) |
|
| v_arr_c_coords = np.array([a for a in v_arr_c[:,[1,3]]]) |
|
| v_arr_p_sign = np.array([a for a in v_arr_p[:,4]]) |
|
| v_arr_c_sign = np.array([a for a in v_arr_c[:,4]]) |
|
| vtx_p = Vortex(i1,v_arr_p_coords[i1][0],v_arr_p_coords[i1][1],True,sign=v_arr_p_sign[i1]) |
|
| vtx_c = Vortex(-1-i2,v_arr_c_coords[i2][0],v_arr_c_coords[i2][1],True,sign=v_arr_c_sign[i2]) |
|
def | index_r = vorts_c.idx_min_dist(vorts_p.element(i3)) |
|
def | v0c = vorts_c.element(index_r[0]).sign |
|
def | v0p = vorts_p.element(i3).sign |
|
def | v1c = vorts_c.element(index_r[0]).uid |
|
list | uid_c = [[a for a in b][3] for b in vorts_c.as_np()] |
|
list | uid_p = [[a for a in b][3] for b in vorts_p.as_np()] |
|
| dpc = set(uid_p).difference(set(uid_c)) |
|
| dcp = set(uid_c).difference(set(uid_p)) |
|
list | vtx_pos_p = [] |
|
list | vtx_pos_c = [] |
|
| vorts_c_update = sorted(vorts_c.as_np(),key=lambda vtx: vtx[3]) |
|