Great! Thanks for the help, I can see the particles moving from the
initial velocities now.
I do have another question about controlling how the fluid moves. How
can I add my own forces in the system? Am I forced to global constant
forces like gravity, or can I add forces at grid locations?
Thanks!
PS If you're interested, a quick overview of my project is
implementing Horvath and Geiger's Directable, High-Resolution
Simulation of Fire on the GPU which calls for two types of fluid
simulations. A coarse 3D simulation which I'm using OpenCurrent for.
And a series of more highly detailed 2D simulation which I was hoping
to just build off the CUDA SDK example of the FFT fluid solver.
On May 22, 6:00 pm, Jonathan Cohen <
jco...@jcohen.name> wrote:
> You need to set the initial state of the simulation via the
> params.init_[u,v,w] fields. They are Grid3DHost structures - you can set
> them to whatever you want. They will be set as the initial condition for
> the fluid velocity fields.
>
> Setting the velocities on the particles directly won't have any effect,
> since in the call to sample_points_mac_grid(), all the vx,vy,vz values will
> be directly overwritten.
>
> Post again if you have more questions.
>
> -Jon
>