DEM formulation

The DEM formulation is presented in earlier chapter 2.1 DEM formulation as a common ground for all DEM calculations.