Code and slides for cource on geothermal modeling