Hardcoded BOND-CUBIC and BOND-QUARTIC - any option to provide individual parameters? #155
-
|
Dear all, I am interested in providing individual k3 and k4 parameters for bond potentials (page 6, 3.1.1 in [https://tinkerdoc.readthedocs.io/_/downloads/en/latest/pdf/]) in order to have a better description of specific bonds. Since
I appreciate any advice if any of these ideas make sense. Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi Jacek, If all you want to do is change the BOND-CUBIC and BOND-QUARTIC values, those can both be set via keywords of the same name, ie, "bond-cubic -2.0" put into the keyfile would set the cubic value to -2.0. However whatever values are used are "global", meaning the same value will be used for all bonds in the system. Without code changes, TInker cannot use different cubic and quartic values for specific bonds in the same system. If you want to set value for each bond, then new code will be required. I would suggest the easiest way to do that is to read, store and use individual values with each bond parameter. That is not a huge project, but it's not something I want to put into the regular Tinker distribution. Alternatively, if you just want to do this for a small number of particular systems as part of some project, you could modify the "ebond*" routines to hardcode whatever values you want for specific bonds during the energy/force calculations. |
Beta Was this translation helpful? Give feedback.
Hi Jacek, If all you want to do is change the BOND-CUBIC and BOND-QUARTIC values, those can both be set via keywords of the same name, ie, "bond-cubic -2.0" put into the keyfile would set the cubic value to -2.0. However whatever values are used are "global", meaning the same value will be used for all bonds in the system.
Without code changes, TInker cannot use different cubic and quartic values for specific bonds in the same system. If you want to set value for each bond, then new code will be required. I would suggest the easiest way to do that is to read, store and use individual values with each bond parameter. That is not a huge project, but it's not something I want to put into the…