7 x_s = np.linspace(a,b,N_x)
9 y_s = np.linspace(a,b,N_y)
11 y_s = np.linspace(a,b,N_y)
12 z_s = np.linspace(a,b,N_z)
15 print(
"creating tracer seeds on the line of x-axis")
16 f=open(
'line.dat',
'w')
19 line=
" "+x+
" "+y+
" "+z+
"\n"
24 print(
"creating tracer seeds on x-y plane")
25 f=open(
'slide.dat',
'w')
29 line=
" "+x+
" "+y+
" "+z+
"\n"
34 print(
"creating tracer seeds over domain")
35 f=open(
'volume.dat',
'w')
39 x=
str(x_s[i]); y=
str(y_s[j]); z=
str(z_s[k])
40 line=
" "+x+
" "+y+
" "+z+
"\n"
def tracer_seeds_generate(Type=1, a=-0.5, b=0.5, N_x=10, N_y=10, N_z=10)