11 def sdf(t, x, y, z, tx, ty, tz):
20 return [0, 0, 0, 0, 0, 0]
34 return [0, 0, 0, 0, 0, 0]
39 def sDF(r, xc, yc, x, y):
40 a = pow(x-xc, 2)+pow(y-yc, 2)
41 c_val = math.sqrt(a)-r
45 a = pow(x-xc, 2)+pow(y-yc, 2)
48 c_val_dx = c_val_A * (x-xc)
49 c_val_dy = c_val_A * (y-yc)
51 return [c_val_dx, c_val_dy, 0]
54 a = pow(x-xc, 2)+pow(y-yc, 2)
57 c_val_B = 1./pow(a, 3./2.)
58 c_val_dx_dx = c_val_A - c_val_B * pow(x-xc, 2)
59 c_val_dx_dy = -c_val_B * (x-xc)*(y-yc)
60 c_val_dy_dy = c_val_A - c_val_B * pow(y-yc, 2)
62 return [c_val_dx_dx, c_val_dx_dy, 0, c_val_dy_dy, 0, 0]