add python script to generate bubble

This commit is contained in:
James McClure
2022-03-20 09:30:46 -04:00
parent a50d9e9aa6
commit 9e3a07d419

View File

@@ -11,7 +11,7 @@ for i in range(0, 40):
for j in range (0, 40):
for k in range (0,40):
dist = np.sqrt((i-cx)*(i-cx) + (j-cx)*(j-cx) + (k-cz)*(k-cz))
if (dist < 12.5 :
if (dist < 12.5 ) :
D[i,j,k] = 2
D.tofile("bubble_40x40x40.raw")