A Wellbore Model for Geothermal Wells Containing Considerable Amount of CO2