Numerical modeling of discontinuous processes in geomaterials and geosystems