Sand through water simulation

Sharky Forums


Results 1 to 4 of 4

Thread: Sand through water simulation

  1. #1
    Expensive Sushi cjohnson's Avatar
    Join Date
    Oct 2002
    Location
    North Carolina
    Posts
    35

    Sand through water simulation

    While I was at home over Easter break, I was looking at this novelty thing I got from Myrtle Beach a few years ago. It's these two panes of glass that have sand and water between them and are on a sort of pivot. When you turn it upside down, the sand runs to the bottom and it's kind of neat to watch it flow. Anyways, I'd kind of like to write a program that simulated this (mostly just because I think it'd be a neat little exercise, but I think it'd make a cool screen saver as well), but figure simulating each grain of sand is probably way too much for a PC to do. A friend told me that I should just simulate the fluid flowing, that the sand was just on for the ride, but I know essentially nothing about physics, and was wondering if someone could point me to some sort of "Physics for Computer Scientists" sort of thing or had another (potentially simpler) idea for how to do this. I'd like to really simulate it though, and not just have some image of sand that dropped from one side of the screen to the other. Thanks.
    <wik> /bin/finger that girl in the back row of machines

  2. #2
    Master of the obvious Adisharr's Avatar
    Join Date
    Sep 2000
    Location
    A room large enough for my head
    Posts
    6,553
    From what I've seen (which is very little), fluid mechanics is no fun at all
    ...WAIT FOR IT

  3. #3
    Reef Shark
    Join Date
    Sep 2000
    Posts
    412
    fluid mechanics == BAD

    good luck with that one.

  4. #4
    NullPointerException rock's Avatar
    Join Date
    Sep 2000
    Location
    York, PA
    Posts
    6,203
    Hey now, I've got a couple degrees related to fluid dynamics (specifically density stratified turbulent flow).

    What you're looking at here is a problem in two-phase CFD (Computation Fluid Dynamics). I have colleagues working a similar, though more complex, problem with breaking waves (the other phase is air in this case) using a cluster of about 100 machines. The problem breaks down well for clusters because the local solutions don't affect each other except at the domain boundaries.

    In short, though, this is the kind of thing that could become a graduate thesis - not really the type of problem you can tackle on a weekend. There is a good bit of CFD code in the public domain (written in FORTRAN), but it's hard to find without spending a lot of time digging through journal articles at your local university library.

    Open Source is free like a puppy is free.

    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.

    Understanding Evolution

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •