Heat Transfer and Two-Phase Flow in Fractured Reservoirs