Geological aspects of petroleum related rock mechanics