Multi-dimensional simulation of underground spaces coupled with geoenergy systems