Geomechanical model of an alpine valley