Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Problem transforming Jos Stam's 2D real-time fluid dynamics in 3D

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 chezmark   Members   

100
Like
0Likes
Like

Posted 11 February 2012 - 11:56 AM

Hi everyone, i was trying to implement jos stam paper for fluid dynamics from 2D in 3D but i think that along the way I have messed things up. Well when the simulation runs if you hit the 'v' (toggle density and velocity) on your keyboard you will see a cube (3D) instead of a rectangle (2D) but the problems that arise are :

1) It takes a long time to display densities and velocities since you pressed the 'v' keyboard button

2) The default size of rectangular matrix in jos stam paper was 64, in order for my simulation to run i have reduce it to 16, as soon as i try to increase to N = 64 (default in jos stam example) the simulation blows up.

If anyone has any idea as to what i am doing wrong please let me know.
If you can redirect me to the correct solution i would be more than appreciated.


I have attached Jos Stam code and also my modifications on Jos Stam's code. If you would like please take a look to have a concrete understanding on their differences.

Attached Files






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.