Greetings, regarding the syntax, It is really easy.
In Gaussian the keyword "root", used in TD, select a given excited state to be optimized, so, let's consider you want to optimize the third excited state:
#p opt TD=(nstates=6,root=3) wb97xd/def2tzvp
This will calculate 6 excited states and optimize the third one (using the theory level you choose, for example, wb97xd/def2tzvp). If you already have performed a TDDFT calculation before and don't want to recalculate everything, you can read the results from the .chk file:
But ALWAYS select a couple or more excited states on top of the one you are optimizing, otherwise you won't get proper results, for example, for root=3 try to always select at least nstate=6.
Thank you so much for your kind information. According to the above-mentioned pathway, I submitted a job. If this does not work, I will send you a text.
As other friends answered, you can use GaussView software to create the input you want and then perform the optimization process on it in Gaussian software.
A point that is very important, Gaussian calculations are usually heavy and its implementation on personal computers and laptops can be a very time-consuming process. On the other hand, it may damage your system a lot. MolQube company specializes in Gaussian calculations. According to your needs, CPU and RAM will be assigned to you and calculations will be performed for you. If you encounter an error, they will give you advice on how to fix it.
Their website address is www.MolQube.com and their email address is [email protected]
The answer provided by Lucas Gian Fachini is excellent also, the suggestion of Rohan Sharma to use the Tamm-Dancoff approximation is promising to speed up your calculation.
I want to state a few points. First, you should see the authors' methods and then try to understand why they chose that particular method. Second, I know that you have recently started doing calculations, so you should review the Gaussian website documentation.
Link 1: https://gaussian.com/td/ This may help you with the input and also with the literature to understand.
Link 2: https://www.youtube.com/@dbinfotech/playlists These videos may provide many different types of runs.
On another aspect, I'd suggest you read the articles on the DFT and TDDFT methods benchmarks, which will provide you with more details.