
This is a general tool to generate turbulence on a grid. The data is periodic and can be used to tile alll of space and time. I wrote the first version in the dark winter of 1996-97 in Finland. It is based on my SIGGRAPH 1993 paper nd my PhD thesis and resulted in the publication "A General Animation Framework for Gaseous Phenomena". These papers available on my publications page.
The turbulence has seven dimensions. The turbulence is a function that maps space-time (t,x,y,z) to a vector field (u,v,w) and the grid is defined by its sizes, restricted to powers of two.
Nt x Nx x Ny x Nz x Nf
If Nt > 1, then this is turbulence is animated and periodic in time. Else when Nt = 1, the program generates a turbulence frozen in time. Nf =1 models a scalar (density field). While, Nf=2, 3 creates a two or three-dimensional vector field. The field can also be constrained to be a divergence free (incompressible) field or be a gradient field.
You can save you field in either a JSON file or a CVS file.