Minimum energy crossing point / conical intersection optimization #82
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new feature and makes a number of changes:
To run this job from the command line, pass a second input file as the parameter to the
--meci
option in addition to the original input file. The two input files correspond to computing the two electronic states for which the MECI/MECP is desired. On the back end, the MECI engine contains two sub-engines created from the two input files, and the optimization will minimize the average of the energy with a penalty function applied to the energy difference. The objective function being minimized is described in Levine, Coe, and Martinez (http://dx.doi.org/10.1021/jp0761618)This implementation assumes that each input file calculates the energy and gradient of only one of two electronic states, so methods that calculate both states in a single QC call do not work at the moment (as there needs to be a way to parse out the energies and gradients of each state).
This feature was added because crossing points between closed-shell and diradical SCF solutions were found in optimizations of several reaction pathways at the DFT level for an ongoing research project. An example calculation will be added following publication of the paper, but any suggestions for simpler examples are welcome.
New specification for return value of
Engine.calc_new()
. Instead of passing back the energy and gradient as a 2-tuple, a dictionary is returned that contains{'energy':energy, 'gradient':gradient}
. The main benefit is that other properties can also be returned. The MECI engine makes use of this by printing out the<S^2>
expectation value of each state calculated by the sub-engines. @sunqm @dgasmith @bgobbi @yudongqiu may want to know about this change.Guess file handling for TeraChem has been refactored and moved into its own function for easier maintenance.