I have some python scripts that generate and run a fluid simulation in Blender for me. To my understanding, Blender uses a voxel grid for it's volumetric fluid representation in the fluid simulator with a mesh laid on top. I'd like to be able to read the state of that voxel grid at each frame in the simulation (and, say, save that state to a file). Is it possible to do this programmatically when interacting with Blender? Maybe it would be possible to read the cache files somehow?
Thanks!