You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SMIRNOFF: multiple force field files, virtual sites, and constraints (#423)
* Support virtual sites and multiple SMIRNOFF force fields
* Put test files where tests can actually find them
* Clean up some changes in template_generators.py
* Clean up virtual site permutation handling in test cases
* Unfinished draft
* Allow specifying multiple force fields
* Support constraints and virtual sites
* Add more tests for constraints
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Run tests on OpenMM 8.5.0 beta since we need ForceField changes
* Need openmm_dev channel
* Use correct channel names (openmm_rc for beta)
* Minor improvement to torsion handling, fix incorrect comment
* Default to unconstrained variant of force field when given name
* Test molecule is unstable due to vsite/H overlap
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update vsite tests with more varieties of molecules
* Autoformatter
* Update openmmforcefields/generators/template_generators.py
Co-authored-by: Josh Horton <[email protected]>
* 1-4 exception check (not vsites) now uses non-zero scalings
* Use preset list of known force field names, update documentation
* Reduce test set size after Interchange cache behavior change
* Update openmmforcefields/tests/test_template_generators.py
Co-authored-by: Jeff Wagner <[email protected]>
* Water constraints test also checks TIP3P inside openff_unconstrained
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix error message if preset force field file can't be located
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Josh Horton <[email protected]>
Co-authored-by: Jeff Wagner <[email protected]>
# create a System with the non-bonded settings of mainline OpenFF force fields
210
208
# (9 Angstrom cut-off, switching distance applied at 8 Angstrom)
209
+
import openmm.unit
211
210
system = forcefield.createSystem(
212
211
topology=molecule.to_topology().to_openmm(),
213
212
nonbondedCutoff=0.9* openmm.unit.nanometer,
214
213
switchDistance=0.8* openmm.unit.nanometer,
215
214
)
216
215
```
217
216
218
-
The latest official Open Force Field Initiative release ([`openff-2.2.1`](https://github.com/openforcefield/openff-forcefields)of the ["Sage" small molecule force field](https://openforcefield.org/force-fields/force-fields/)) is used if none is specified.
219
-
You can check which SMIRNOFF force field is in use with
217
+
You can create a template generator capable of recognizing multiple molecules,
0 commit comments