A Numerical Simulator for Fluid Flow in a Geothermal Well