Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

2D CFD explosion simulation NVIDIA CUDA

Loading...

Sign in or sign up now!
13,183
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 29, 2008

~130 000 particles gas explosion simulation. Coloring based on velocity.

GPU used: GF 8400M GS, 16 cores @ 400 mhz with 128 MB dedicated memory @ 400 mhz.

This is slightly modified sample from CUDA SDK. I have changed all algorithms from 3d to 2d, thanks to that, now program use 50% less memory and is 30% faster (maximum ~800 000 - 900 000 particles with 0.5 - 1 fps, and 32768 particles @ 35-40 fps). Why 2D? Because 3D with 350 000 partciles were giving too low resolution and accuracy. Even 130 000 particles in 2D gives much more realistic effects.

Second change was dynamic coloring based on particle's velocity (blue high speed, white low speed). For now its linear scale, based on average velocity at specified frame. In future I plan to change it to constant logarithmic scale. Unfortunatelly at the moment coloring slows down rendering by about 10-20%

Last change was adding diffusion effect (before calculating every frame adding smal random velocity vector).

I think effect is prety good :) More changes are on the way :)

NVIDIA CUDA site
http://www.nvidia.com/object/cuda_home.html

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (B4ndItOo)

  • In documentation says that CUDA programs require at least 256 MB of memory. You use only 128 MB correct?

    You had any problem due the low memory? Any problem in implementation or instalation of driver?

  • yes, i have only 128mb. Generally speaking, there were no major problems.

  • Hmm... out of curiousity what program did you use to utilise Cuda, I know matlab is one..

    I guess the question is how were you able to set up the simulation (I have a 9600m gt so I am interested in conducting these and similar simulations)

  • i was using visual studio 2005 c/c++. Generally i was playing with sample projects that come with cuda sdk

  • interesting I did not know that the 8400m gs had Cuda

  • every gf8xxx and newer support both Cuda and physx. Some time ago there was problem with drivers for mobile gpu's, but recently nvidia released official drivers that cuda.

see all

All Comments (5)

Sign In or Sign Up now to post a comment!
  • Any suggestions for learning CUDA?? (for beginners plz)

  • Are you releasing the code? You should also consider posting your app to CUDA Zone. Applications with video get a CUDA Zone T-Shirt and entered into a drawing for a GTX260

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more