<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I don't know of any Squeak code to do this. &nbsp;The starting-point paper about this kind of simulation (for computer graphics, anyway) is "Stable Fluids" by Jos Stam (<font class="Apple-style-span" color="#144FAE"><span class="Apple-style-span" style="text-decoration: underline;"><a href="http://www.dgp.toronto.edu/people/stam/reality/Research/pdf/ns.pdf">http://www.dgp.toronto.edu/people/stam/reality/Research/pdf/ns.pdf</a></span></font>). &nbsp;I'm not sure if there is a later paper that is more approachable; the others I've seen are more complicated. &nbsp;Also note that I don't believe that Stam's method can model breaking waves... it doesn't allow for a dynamic boundary between different fluids (eg: air and water). &nbsp;<div><div><div><div><div><div><br class="webkit-block-placeholder"></div><div>Ron Fedkiw has some of the most impressive results (for example:&nbsp;<a href="http://physbam.stanford.edu/~fedkiw/animations/lighthouse.avi)">http://physbam.stanford.edu/~fedkiw/animations/lighthouse.avi)</a>. &nbsp;Of course, the implementations are more complicated.</div><div><br class="webkit-block-placeholder"></div><div>Sorry I couldn't be more helpful; hopefully someone else has better pointers.</div><div><br class="webkit-block-placeholder"></div><div>Josh</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>On Dec 11, 2007, at 9:23 AM, Dan Ingalls wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">... that's Computational Fluid Dynamics. &nbsp;I'm specifically interested in running a Navier-Stokes simulation using something like the Volume of Fluid model to deal with free surface movement. &nbsp;My first goal is to be able to duplicate something like the following simulation of a breaking wave:<br><br><span class="Apple-tab-span" style="white-space:pre">        </span><a href="http://www.coastal.udel.edu/faculty/jpuleo/RIPPLE/ripple.mov">http://www.coastal.udel.edu/faculty/jpuleo/RIPPLE/ripple.mov</a><br><br>I want to be able to run similar simulations for waves breaking against different shaped walls.<br><br>Most people use big programs in C or Fortran (!), and half the trouble is learning how to use them, since there's no prayer of changing them. However the basic equations can be written in half a page, and I don't need it to run very fast.<br><br>It could be fun but so far it looks like it will be simpler to build a wave tank :-(.<br><br>Thanks for any useful pointers.<br><br><span class="Apple-tab-span" style="white-space:pre">        </span>- Dan<br><br></blockquote></div><br></div></div></div></div></body></html>