Volume rendering for homemade fluid simulation

I wasn’t sure where to post this thread.
I’m a PhD student and I’m making fluid simulation. I’d like to use blender to make an artistic render of my simulations. I already managed to render one time-step by using volume rendering (see image), the data from my simulation are saved in a 8bit-raw file which is used as the source for the voxel data of a blender texture. Each time-step has its own 8bit-raw file, named data_i, where i is the number of the time-step.
What I’d like to do now is to render several timesteps (around 200) in order to make an animation. The thing is I need to define the source path for the voxel data texture. The path has to change for each frame and I don’t know how to do that (maybe with a python script?).
Does anyone knows how to load a different 8bit-raw file for each frame?
Thanks for your help.


I just had exactly the same problem, and came across your post. Don’t know if you already got the solution, but the solution is actually pretty simple: just merge all the files into one!

E.g. on linux you could do:
cat *.raw > sequence.raw

hope I’m not too late!