From Yade

This page is a walk-through example of creating very simple scene: one sphere falling onto a box underneath. There are two implementations of this scene (we now have syntax highlighter enabled for our site: GeSHi)

The comments are the same in both cases, you can read the pages in parallel to get an idea about the structure of Yade simulation.