Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forces in qdata.txt #44

Closed
qasimpars opened this issue Apr 21, 2019 · 2 comments
Closed

forces in qdata.txt #44

qasimpars opened this issue Apr 21, 2019 · 2 comments

Comments

@qasimpars
Copy link

Hi,

I would use qdata.txt output file for fitting the paramaters using ForceBalance but torsiondrive doesn't write the forces into qdata.txt. Why does it not write the forces to the output file (qdata.txt)? My input files are below:

Input.data:

memory 2 GB
molecule {
  0 1
  C  0.281   0.772   0.721
  O  -0.311   2.003   0.362
  H  -0.070   0.470   1.720
  H  1.371   0.871   0.723
  H  -0.011   0.011  -0.001
  H  0.021   2.231  -0.521
}
set {
  basis 6-31g_d_
}
set_num_threads(8)
gradient('b3lyp')

dihedrals.txt:

# dihedral definition by atom indices starting from 0
# i     j     k     l
  3     1     2     6

Thanks,

@yudongqiu
Copy link
Collaborator

The forces are not written in qdata.txt by TorsionDrive for several reasons:

  1. TorsionDrive do not work with gradients directly. The only data TorsionDrive uses are structures and energies. It launches "constrained optimizations", and geomeTRIC or another geometry optimizer handles the gradients and generate new structures.
  2. Writing out qdata.txt is a convenient feature after all the scan is finished, but even if TorsionDrive wants to use the gradients information in this step, geomeTRIC currently do not provide it.
  3. We usually use the final structures provided by TorsionDrive and run a new batch of single point calculations with a higher level of theory. In this way you will get the final gradients there.

After all, we agree that not having gradients in the qdata.txt is not super convenient, and we will think about adding the "provide gradients" feature in geomeTRIC then let TorsionDrive use it.

@yudongqiu
Copy link
Collaborator

Closing this issue since this feature is implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants