CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Support for liquids in Jos Stam's code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 22, 2012, 12:46
Default Support for liquids in Jos Stam's code
  #1
New Member
 
Dominik
Join Date: Dec 2012
Posts: 1
Rep Power: 0
domiii is on a distinguished road
Hi,

As a newbie to CFD, I recently took a closer look at Jos Stam's implementation that shipped with his paper "Real-time Fluid Dynamics for Games". I found that a more mathematical and thus more concise definition of the solution is given by NVIDIA's GPU Gems, Chapter 38 (Fast Fluid Dynamics Simulation on the GPU).

The problem is, even though the authors talk about "fluid" a whole bunch, the code actually only simulates gas (using Navier-Stokes). I figured that, first of all, density was dropped from the momentum equations, so I added that back in and it worked fine (even though, it still looked a little too diffusive for my taste). Then I added gravity that pulls toward the bottom of the grid (a small negative value that is added to the vertical velocity component). But now, the "dye" (represented by the density quantity that is advected by the velocity field) drops below the grid, despite the full reflective boundary condition given in the set_bnd function. For some reason, my added gravity somehow invalidates that boundary condition, and I cannot understand why (I am not changing any boundary cell). Does anyone have some insight on this?

Thanks a bundle in advance!
domiii is offline   Reply With Quote

Reply

Tags
jos stam, navier-stokes


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 16:56
Where do we go from here? CFD in 2001 John C. Chien Main CFD Forum 36 January 24, 2001 22:10
Open source CFD code development, possible? Dr. Yazid Bindar Main CFD Forum 27 July 18, 2000 01:18
solid kinetic theory wan xiaotao Main CFD Forum 6 August 10, 1999 19:43
Lets start the public domain CFD-Project! Heinz Wilkening Main CFD Forum 3 March 11, 1999 23:55


All times are GMT -4. The time now is 23:33.