-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Potential Search with Wildcards in a ForceField (#519)
* Initial Commit for Wildcards support in Potential Search in forcefield [skip-ci] * WIP- Add Circular Masking, ImproperType Search * Fix typo and add warns flag * WIP- Fix format strings. consolidate warning/error messages * WIP- Remove redundant typing import * Fix syntax * WIP- Add basic testing for atom_types; minor quirk fixes * WIP- Minor fixes to function signatures; more tests * WIP- Add More tests for angle/dihedrals * WIP- Revert formatting * WIP- Remove unused deepcopy import * WIP- Additional tests; set warn to false (default) Co-authored-by: Co Quach <[email protected]> Co-authored-by: Co Quach <[email protected]>
- Loading branch information
1 parent
8264258
commit f91e2f5
Showing
9 changed files
with
597 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<ForceField name="oplsaa" version="0.0.1"> | ||
<FFMetaData electrostatics14Scale="0.5" nonBonded14Scale="0.5"> | ||
<Units energy="kJ/mol" mass="amu" charge="coulomb" distance="nm"/> | ||
</FFMetaData> | ||
<AtomTypes expression="ep * ((sigma/r)**12 - (sigma/r)**6) + q / (e0 * r)"> | ||
<ParametersUnitDef parameter="q" unit="coulomb"/> | ||
<ParametersUnitDef parameter="e0" unit="A**2*s**4/(kg*m**3)"/> | ||
<ParametersUnitDef parameter="sigma" unit="nm"/> | ||
<ParametersUnitDef parameter="ep" unit="kJ/mol"/> | ||
<AtomType name="opls_135" atomclass="CT" element="C" charge="0.0" mass="12.01078" definition="[C;X4](C)(H)(H)H" description="" doi="10.1021/ja9621760" overrides=""> | ||
<Parameters> | ||
<Parameter name="ep" value="0.276144"/> | ||
<Parameter name="sigma" value="0.35"/> | ||
<Parameter name="e0" value="8.8542e-12"/> | ||
<Parameter name="q" value="-0.18"/> | ||
</Parameters> | ||
</AtomType> | ||
<AtomType name="opls_140" atomclass="HC" element="H" charge="0.0" mass="1.007947" definition="H[C;X4]" description="" doi="10.1021/ja9621760" overrides=""> | ||
<Parameters> | ||
<Parameter name="ep" value="0.12552"/> | ||
<Parameter name="sigma" value="0.25"/> | ||
<Parameter name="e0" value="8.8542e-12"/> | ||
<Parameter name="q" value="0.06"/> | ||
</Parameters> | ||
</AtomType> | ||
</AtomTypes> | ||
<BondTypes expression="k * (r-r_eq)**2"> | ||
<ParametersUnitDef parameter="r_eq" unit="nm"/> | ||
<ParametersUnitDef parameter="k" unit="kJ/nm**2"/> | ||
<BondType name="BondType-Harmonic-1" type1="opls_135" type2="opls_135"> | ||
<Parameters> | ||
<Parameter name="k" value="224262.4"/> | ||
<Parameter name="r_eq" value="0.1529"/> | ||
</Parameters> | ||
</BondType> | ||
<BondType name="BondType-Harmonic-2" type1="opls_135" type2="opls_140"> | ||
<Parameters> | ||
<Parameter name="k" value="284512.0"/> | ||
<Parameter name="r_eq" value="0.109"/> | ||
</Parameters> | ||
</BondType> | ||
</BondTypes> | ||
<AngleTypes expression="k * (theta - theta_eq)**2"> | ||
<ParametersUnitDef parameter="theta_eq" unit="radian"/> | ||
<ParametersUnitDef parameter="k" unit="kJ/radian**2"/> | ||
<AngleType name="AngleType-Harmonic-1" type1="opls_135" type2="opls_135" type3="opls_140"> | ||
<Parameters> | ||
<Parameter name="k" value="313.8"/> | ||
<Parameter name="theta_eq" value="1.932079482"/> | ||
</Parameters> | ||
</AngleType> | ||
<AngleType name="AngleType-Harmonic-2" type1="opls_140" type2="opls_135" type3="opls_140"> | ||
<Parameters> | ||
<Parameter name="k" value="276.144"/> | ||
<Parameter name="theta_eq" value="1.8814649337"/> | ||
</Parameters> | ||
</AngleType> | ||
</AngleTypes> | ||
<DihedralTypes expression="c0 * cos(phi)**0 + c1 * cos(phi)**1 + c2 * cos(phi)**2 + c3 * cos(phi)**3 + c4 * cos(phi)**4 + c5 * cos(phi)**5"> | ||
<ParametersUnitDef parameter="c5" unit="kJ/mol"/> | ||
<ParametersUnitDef parameter="c4" unit="kJ/mol"/> | ||
<ParametersUnitDef parameter="c3" unit="kJ/mol"/> | ||
<ParametersUnitDef parameter="c2" unit="kJ/mol"/> | ||
<ParametersUnitDef parameter="c1" unit="kJ/mol"/> | ||
<ParametersUnitDef parameter="c0" unit="kJ/mol"/> | ||
<DihedralType name="DihedralType-RB-Proper-1" type1="opls_140" type2="opls_135" type3="opls_135" type4="opls_140"> | ||
<Parameters> | ||
<Parameter name="c0" value="0.6276"/> | ||
<Parameter name="c1" value="1.8828"/> | ||
<Parameter name="c2" value="0.0"/> | ||
<Parameter name="c3" value="-2.5104"/> | ||
<Parameter name="c4" value="0.0"/> | ||
<Parameter name="c5" value="0.0"/> | ||
</Parameters> | ||
</DihedralType> | ||
</DihedralTypes> | ||
</ForceField> |
Oops, something went wrong.