-
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.
Support list of parameter values in Forcefield XML (#681)
* Support list of parameter values in Forcefield XML * fix indentation for aesthetic purpose Co-authored-by: Co Quach <[email protected]>
- Loading branch information
1 parent
c336588
commit cc23eb8
Showing
4 changed files
with
84 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<ForceField version="0.0.0" name="Flexible carbon"> | ||
<FFMetaData> | ||
<Units energy="kJ/mol" distance="nm" mass="amu" charge="coulomb"/> | ||
</FFMetaData> | ||
<AtomTypes expression="4*epsilon*((sigma/r)**12 - (sigma/r)**6)"> | ||
<ParametersUnitDef parameter="sigma" unit="nm"/> | ||
<ParametersUnitDef parameter="epsilon" unit="kJ/mol"/> | ||
<AtomType name="C" element="C" charge="0.0" mass="12.011" definition="C" description="Generic sp2 carbon"> | ||
<Parameters> | ||
<Parameter name="sigma" value="0.339966950842"/> | ||
<Parameter name="epsilon" value="0.359824"/> | ||
</Parameters> | ||
</AtomType> | ||
</AtomTypes> | ||
<BondTypes expression="0.5 * k * (r-r_eq)**2"> | ||
<ParametersUnitDef parameter="r_eq" unit="nm"/> | ||
<ParametersUnitDef parameter="k" unit="kJ/(mol*nm**2)"/> | ||
<BondType name="BondType1" type1='C' type2='C'> | ||
<Parameters> | ||
<Parameter name='r_eq' value="0.1324"/> | ||
<Parameter name='k' value="493460.96"/> | ||
</Parameters> | ||
</BondType> | ||
</BondTypes> | ||
<AngleTypes expression="0.5 * k * (theta-theta_eq)**2"> | ||
<ParametersUnitDef parameter="theta_eq" unit="radian"/> | ||
<ParametersUnitDef parameter="k" unit="kJ/(mol*radian**2)"/> | ||
<AngleType name="AngleType1" type1='C' type2='C' type3="C"> | ||
<Parameters> | ||
<Parameter name='theta_eq' value="2.12598556185"/> | ||
<Parameter name='k' value="584.42112"/> | ||
</Parameters> | ||
</AngleType> | ||
</AngleTypes> | ||
<DihedralTypes expression="k * (1 + cos(n * theta - theta_0))"> | ||
<ParametersUnitDef parameter="k" unit="kJ/mol"/> | ||
<ParametersUnitDef parameter="n" unit="dimensionless"/> | ||
<ParametersUnitDef parameter="theta_0" unit="radian"/> | ||
<DihedralType name="DihedralType1" type1="" type2="C" type3="C" type4=""> | ||
<Parameters> | ||
<Parameter name='k'> | ||
<Value>38</Value> | ||
<Value>45</Value> | ||
</Parameter> | ||
<Parameter name='n' value="2"/> | ||
<Parameter name='theta_0'> | ||
<Value>25</Value> | ||
<Value>32</Value> | ||
</Parameter> | ||
</Parameters> | ||
</DihedralType> | ||
</DihedralTypes> | ||
</ForceField> |
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