I have stopped developping my VR viewer for a while to spend some time on a CFD (Computational Fluids Dynamics) viewer.
My division uses CFX but you might as well have heard about Fluent or other CFD packages.
Basically, a CFD package uses finite volumes to determine values such as temperature, velocities AND smoke concentrations in a model giving the geometry and boundary conditions.
My question is quite simple : for each volume (basically a cube), I have the smoke concentration (from 0-100%). I was wondering if someone knew of a technique to render the smoke with these values…
I want to say that I am not looking for a real-time solution (it’s barely possible when you have 500000+ cells even with a GeForce 2 !). My idea is to somehow cast a ray from the view point to the boundaries of the model and use some alpha-blended quads but I can not relate the actual smoke concentration to the opacity…
I think this is more related to physics than to OpenGL but I would be happy if someone could help me (and don’t worry if it goes deep into physics, I’ll try to cope with it !).