################################################################################ # 3d flow around a sphere # # Note: # - The "comm/sort” option to the “global” command is used to match MPI runs. # - The “twopass” option is used to match Kokkos runs. # The "comm/sort" and "twopass" options should not be used for production runs. ################################################################################ seed 12345 dimension 3 global gridcut 0.1 comm/sort yes boundary o r r create_box -2 2 -2 2 -2 2 create_grid 20 20 20 levels 2 level 2 * * * 2 2 3 balance_grid rcb cell global nrho 1.0 fnum 0.0005 species air.species N O mixture air N O vstream 100.0 0 0 read_surf data.sphere surf_collide 1 diffuse 300.0 0.0 surf_modify all collide 1 collide vss air air.vss fix in emit/face air xlo twopass timestep 0.0001 #compute 2 surf all all n press ke #fix save ave/surf all 1 50 50 c_2[*] ave running #region slab block INF INF INF INF -0.1 0.1 #dump 2 image all 50 image.*.ppm type type pdiam 0.03 & # view 70 120 size 512 512 axes yes 0.9 0.02 & # gridz -0.8 proc gline yes 0.005 & # surf f_save[2] 0.0 #dump_modify 2 pad 4 region slab #dump_modify 2 cmap surf min max cf 0.0 2 min orange max green stats 100 stats_style step cpu np nattempt ncoll nscoll nscheck run 1000