**************** DEM formulation **************** The DEM formulation is presented in earlier chapter 2.1 :ref:`chapter-formulation` as a common ground for all DEM calculations. .. comment: after we switch to sphinx 1.6 we wil be able to use :numref: .. comment: http://www.sphinx-doc.org/en/1.6/markup/inline.html#role-numref