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

Refactor #10

Merged
merged 182 commits into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
9264ac0
add bead spring forcefield class
chrisjonesBSU Apr 20, 2023
0a732f9
move forces into method
chrisjonesBSU Apr 21, 2023
493256f
Merge branch 'cg/sims' into add/mol_generator
chrisjonesBSU Apr 21, 2023
c9539fc
add build and generate methods to molecule class
chrisjonesBSU Apr 21, 2023
0204c87
add to_snapshot func
chrisjonesBSU Apr 21, 2023
8025b8e
fix to_hoomd_snapshot
chrisjonesBSU Apr 22, 2023
9cf267f
Convert all classes to new structure
chrisjonesBSU Apr 24, 2023
8c36b35
trying out new class structure
chrisjonesBSU Apr 24, 2023
7dee0f8
trying out a new approach, where repeat molecules are generated in th…
chrisjonesBSU Apr 25, 2023
e5ab460
moving specific classes over to library
chrisjonesBSU Apr 25, 2023
30755e0
finish CoPolymer class, move polymers.py to library
chrisjonesBSU Apr 26, 2023
2ff69d9
fix length in CoPolymer class
chrisjonesBSU Apr 26, 2023
33ac17d
fix pekk_meta class, remove print statements
chrisjonesBSU Apr 26, 2023
2f37f82
move things around a bit
chrisjonesBSU Apr 28, 2023
e454f04
fix imports with new structure of repo
chrisjonesBSU Apr 28, 2023
9ab4757
import system classes
chrisjonesBSU Apr 28, 2023
e1ff15b
add gmso to env files
chrisjonesBSU Apr 28, 2023
32433b4
Update base classes.
May 2, 2023
73106a6
Add a sample run script.
May 4, 2023
b635c60
Fix cirucular dependency.
May 4, 2023
20e1f7b
Identify bonded and non-bonded interactions.
May 8, 2023
57d9be1
Update forcefield validation.
May 8, 2023
46d30a8
Fix Molecule generate method.
marjanalbooyeh May 9, 2023
481edde
add coarse grain method to Molecule class, update env files
chrisjonesBSU May 9, 2023
af64bd5
Get topology information from first molecule.
marjanalbooyeh May 17, 2023
3da21d9
install gmso from conda forge now that changes are merged, remove noh…
chrisjonesBSU May 31, 2023
7fcf88b
change atom_type to atom_type.name when populating topology info
chrisjonesBSU May 31, 2023
c181565
import System from base.py; add atom type fix to impropers
chrisjonesBSU May 31, 2023
3a31666
remove old forcefield, molecule and system py files
chrisjonesBSU May 31, 2023
13fd027
changes to fix CoPolymer class
chrisjonesBSU Jun 1, 2023
9346a83
Add comment for getting topology info after applying ff.
marjanalbooyeh Jun 1, 2023
b7c0bf6
Update atom_type name in topology information.
marjanalbooyeh Jun 1, 2023
ff1e78d
Merge branch 'main' of github.com:chrisjonesBSU/hoomd-polymers into m…
chrisjonesBSU Jun 2, 2023
f11aa44
add PEKK to polymer library
chrisjonesBSU Jun 2, 2023
e3136d2
add force_field param to CoPolymer
chrisjonesBSU Jun 2, 2023
622995e
organize project directories.
Jun 6, 2023
7d615c6
Add exceptions classes.
Jun 6, 2023
a416869
Add __init__ files.
Jun 6, 2023
5ed6904
Update validate_hoomd_ff.
Jun 6, 2023
d70d7f3
Fix bugs in system class.
Jun 6, 2023
5fa2ac2
Add remove_hydrogens arg to validate_hoomd_ff method.
Jun 6, 2023
e1fa173
Rename forcefield utils file.
Jun 6, 2023
a759cb1
Handle remove_hydrogen=True case.
Jun 6, 2023
5a5c723
Convert particles set to list.
Jun 6, 2023
46f30a9
Remove bond direction from topology information.
Jun 7, 2023
b9758d6
Add missing bond potential exception.
Jun 7, 2023
cd167d3
Validate hoomd bond potentials.
Jun 7, 2023
8b5f7e6
Add a method to identify h in connections.
Jun 7, 2023
0239ceb
Avoid having repetetive angles.
Jun 7, 2023
e04c032
Add missing angle potential exception.
Jun 7, 2023
8a091a6
Validate hoomd angle potentials.
Jun 7, 2023
6e5bea5
Avoid adding repeated dihedral in topology information.
Jun 7, 2023
de61632
Refactor exception classes.
Jun 7, 2023
767c742
Validate hoomd dihedral potentials.
Jun 7, 2023
7d518cf
Refactor molecule class.
Jun 7, 2023
3f160e2
Add missing coulomb force exception.
Jun 7, 2023
7041ee0
Validate hoomd Coulombic forces.
Jun 7, 2023
d0ad54f
Sort imports.
Jun 8, 2023
33a797d
Accept different types for molecules and forcefield.
Jun 8, 2023
9749590
Updated abstractmethods for system.
Jun 8, 2023
6009882
sort imports.
Jun 8, 2023
4508dbb
Remove test particle charge.
Jun 9, 2023
c64e011
Refactoring base classes.
Jun 9, 2023
61e95f8
Organizing system class.
Jun 13, 2023
19f3919
Add Pack and Lattice to base system.
Jun 13, 2023
a3f1fd6
Organize imports.
Jun 13, 2023
7790e8c
Delete repeated classes from system in library.
Jun 13, 2023
546a3e7
Temporary run script.
Jun 13, 2023
9824002
fix imports, _build_system func returns mb Compound, remove descripti…
chrisjonesBSU Jun 16, 2023
1bc3258
move attributes above super func in Pack and Lattice; add condition t…
chrisjonesBSU Jun 16, 2023
9b4f8c6
update apply_forcefield and properties that return snapshot and hoomd…
chrisjonesBSU Jun 20, 2023
c7347f4
Allow molecule to be loaded from smiles, file or mb Compound.
Jun 21, 2023
59cea18
add remove hydrogens method
chrisjonesBSU Jun 21, 2023
c24a363
Merge branch 'mol-generator' of github.com:marjanAlbouye/hoomd-polyme…
chrisjonesBSU Jun 21, 2023
bd692d4
add ref setters, move things around a bit
chrisjonesBSU Jun 21, 2023
fff44c3
Merge new changes, update molecule and ff_utils.
Jun 21, 2023
615958d
Remove type hints.
Jun 21, 2023
8c97a11
Check string type in check_return_iterable.
Jun 21, 2023
7456c71
Add assign_name func.
Jun 21, 2023
fd37120
Handle different versions of molecules.
Jun 21, 2023
df071f0
Fix bug.
Jun 21, 2023
f424742
Collect ff from input.
marjanalbooyeh Jun 22, 2023
dc69bd3
Apply gmso ff.
marjanalbooyeh Jun 22, 2023
2f0b404
Convert xml to gmso ff.
marjanalbooyeh Jun 22, 2023
235d087
Complete init method.
Jun 22, 2023
797710d
Move Simulation class to base.
Jun 22, 2023
717f33d
Add units to reference values in system.
Jun 22, 2023
dfbcf26
add unit error exceptions.
Jun 22, 2023
6fb0338
organize imports.
Jun 22, 2023
a238e38
add units to simulations reference values.
Jun 22, 2023
a457842
fix import, fix param names in polymers.py, move name += 1 line below…
chrisjonesBSU Jun 23, 2023
853bb11
add oplsaa.xml file
chrisjonesBSU Jun 26, 2023
ce747b0
define a couple parameters in gmso.apply
chrisjonesBSU Jun 27, 2023
0137c9e
some small formatting fixes
chrisjonesBSU Jul 6, 2023
c9f9f2d
simplify things; set init params for remove_hydrogens, remove_charges…
chrisjonesBSU Jul 6, 2023
4287c83
rerun toplogy stuff after coarse-graining. Remove hydrogen related attrs
chrisjonesBSU Jul 9, 2023
1ce25ec
Merge branch 'mol-generator' of github.com:marjanAlbouye/hoomd-polyme…
chrisjonesBSU Jul 9, 2023
d40dc11
add remove charges logic
chrisjonesBSU Jul 10, 2023
0e1e936
Adding predefined FF classes.
marjanalb Jul 11, 2023
fbd9b1d
Forcefield exception.
marjanalb Jul 11, 2023
0bbb620
Allow system to use gmso ff from provided forcefields.
marjanalb Jul 11, 2023
59c865c
Add forcefield class.
marjanalb Jul 31, 2023
29f71bc
Add base molecule tests.
marjanalbooyeh Aug 1, 2023
0139f0f
Fix num_mols.
marjanalbooyeh Aug 1, 2023
8355589
Add new fixtures to base_test.
marjanalbooyeh Aug 1, 2023
c31c4dc
Update MissingPotentialError msg.
marjanalbooyeh Aug 1, 2023
829a23e
Check required potentials.
marjanalbooyeh Aug 1, 2023
d8fc8b1
Add n_particles and n_bonds properties.
marjanalbooyeh Aug 1, 2023
3ab78f0
Add some tests for polymer class.
marjanalbooyeh Aug 1, 2023
bd0eb20
Check equal lengths and num mols Polymer and Copolymer class.
marjanalbooyeh Aug 3, 2023
a9adcb0
Add Polymer and Copolymer unit tests.
marjanalbooyeh Aug 3, 2023
773509a
Remove unused variables.
marjanalbooyeh Aug 4, 2023
438dc2a
Check site.element is not None.
marjanalbooyeh Aug 4, 2023
03c9d17
Remove mapping from coarse grain method.
marjanalbooyeh Aug 4, 2023
7ab43e7
Add coarse grain tests.
marjanalbooyeh Aug 4, 2023
0a3a3f5
Add new smiles.
marjanalbooyeh Aug 4, 2023
9cb3b9a
Move molecule and ff xmls to assests.
marjanalbooyeh Aug 4, 2023
ce39bb1
Fix formatting, remove type hints.
marjanalbooyeh Aug 4, 2023
0df05b0
Add system unit tests.
marjanalbooyeh Aug 4, 2023
d4a5dd6
fix inheritence in LJChain class
chrisjonesBSU Aug 4, 2023
570b96e
fix conflict
chrisjonesBSU Aug 4, 2023
1d01e72
rename ff stuff for use on fry
chrisjonesBSU Aug 5, 2023
381f4de
Merge branch 'mol-generator' of github.com:marjanAlbouye/hoomd-polyme…
chrisjonesBSU Aug 5, 2023
86354e0
add if statement before calling apply in gmso
chrisjonesBSU Aug 7, 2023
15f39ba
restructure files and dirs per convo with Marjan
chrisjonesBSU Aug 7, 2023
71e3771
Add new ff files.
marjanalbooyeh Aug 7, 2023
11bb7c8
update atom type names.
marjanalbooyeh Aug 7, 2023
e8ef3c3
add two new molecule classes.
marjanalbooyeh Aug 7, 2023
1641c33
update molecule unit tests.
marjanalbooyeh Aug 7, 2023
55af48d
add more system unit tests.
marjanalbooyeh Aug 7, 2023
af8635d
update polymer fixtures.
marjanalbooyeh Aug 8, 2023
9d7b742
update n_particles and mass in system.
marjanalbooyeh Aug 8, 2023
b13e731
update fixtures.
marjanalbooyeh Aug 8, 2023
a09492f
add more unit tests for system.
marjanalbooyeh Aug 8, 2023
36ec9d5
fix lattice bugs.
marjanalbooyeh Aug 8, 2023
951d40a
add lattice unit tests.
marjanalbooyeh Aug 8, 2023
e0f3a1b
fix env files
chrisjonesBSU Aug 9, 2023
e6a8fc2
clone mbuild comp in _load and fix _generate.
marjanalbooyeh Aug 9, 2023
f1e029d
lattice unite tests.
marjanalbooyeh Aug 9, 2023
c26e494
format code and sort imports.
marjanalbooyeh Aug 9, 2023
60e6be1
use get for reduced values.
marjanalbooyeh Aug 9, 2023
0c363f9
add simulation tests.
marjanalbooyeh Aug 9, 2023
112c0f1
add system fixtures.
marjanalbooyeh Aug 9, 2023
46e3004
use unit tests for ref values.
marjanalbooyeh Aug 9, 2023
a8b2736
fix ref values type.
marjanalbooyeh Aug 9, 2023
5f8d900
change base_units default type to dict.
marjanalbooyeh Aug 9, 2023
eb30e17
remove if condition from hoomd ff and snapshot.
marjanalbooyeh Aug 9, 2023
21dbffc
add missing return for mass.
marjanalbooyeh Aug 9, 2023
21a340a
add unit test with updated ref values.
marjanalbooyeh Aug 9, 2023
9b8fe8e
add simulation unit test.
marjanalbooyeh Aug 9, 2023
f027542
compare updated snapshot epsilon and gmso epsilon.
marjanalbooyeh Aug 9, 2023
50ded54
set reference values when auto_scale=False.
marjanalbooyeh Aug 10, 2023
72c51fa
fix test names and parameters.
marjanalbooyeh Aug 10, 2023
4f02a08
remove extra test files.
marjanalbooyeh Aug 10, 2023
0f8df64
change fixture system.
marjanalbooyeh Aug 10, 2023
de857b0
add simulation unit tests.
marjanalbooyeh Aug 10, 2023
446bb23
organize files.
marjanalbooyeh Aug 17, 2023
2d1e466
sort imports.
marjanalbooyeh Aug 17, 2023
034ac2a
Polymers unit tests.
marjanalbooyeh Aug 17, 2023
4c58454
remove extra files.
marjanalbooyeh Aug 17, 2023
e8e27d9
sort test imports.
marjanalbooyeh Aug 17, 2023
3ad9f8e
add unit tests for forcefields in library.
marjanalbooyeh Aug 17, 2023
2ee293f
arrange test files.
marjanalbooyeh Aug 18, 2023
a78a7be
fix formatting.
marjanalbooyeh Aug 18, 2023
090504f
unit tests for weld and tensile.
marjanalbooyeh Aug 18, 2023
e7c02a6
code formatting and style.
marjanalbooyeh Aug 18, 2023
b6ece0b
run pre-commit.
marjanalbooyeh Aug 18, 2023
a14b22f
create first tutorial.
marjanalbooyeh Aug 18, 2023
2e8a573
pin to latest hoomd v3
chrisjonesBSU Aug 21, 2023
220475a
add test to run weld sim
chrisjonesBSU Aug 21, 2023
de3358b
move apply forcefield if condition.
marjanalbooyeh Aug 22, 2023
63f0ec7
fill test_ff.xml
marjanalbooyeh Aug 22, 2023
db47b4a
change title style.
marjanalbooyeh Aug 22, 2023
ba82d6a
Merge pull request #8 from marjanAlbouye/mol-generator
marjanalbooyeh Aug 22, 2023
45cb464
fix reference valu units for mass
chrisjonesBSU Aug 22, 2023
0f6cc50
install gmso from source in env files
chrisjonesBSU Aug 22, 2023
5b82ae4
precommit fix
chrisjonesBSU Aug 22, 2023
2d11a04
add more content to base tutorial.
marjanalbooyeh Aug 22, 2023
4699fb3
add unit tests for BeadSpring class
chrisjonesBSU Aug 22, 2023
a2ac9f5
Merge branch 'refactor' of github.com:chrisjonesBSU/hoomd-polymers in…
chrisjonesBSU Aug 22, 2023
fac616c
update codecov yml ignore paths
chrisjonesBSU Aug 22, 2023
35c41df
change gmso param to False for now
chrisjonesBSU Aug 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Build environment
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment-cpu.yml
miniforge-variant: Mambaforge
miniforge-version: 4.9.2-4
use-mamba: true

- name: Install package
shell: bash -l {0}
run: pip install -e .

- name: Run pytest with coverage report
shell: bash -l {0}
run: python -m pytest -rs -v --cov=./ --cov-report=xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,6 @@ dmypy.json

# Pyre type checker
.pyre/

# IDE files
.idea/
47 changes: 47 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: []
submodules: false

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: 'hoomd_polymers/tests/assets/.* | hoomd_polymers/assets/.*'
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
args: [--line-length=80]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args:
[--profile=black, --line-length=80]
exclude: 'cmeuitls/tests/assets/.* '

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
args:
- --max-line-length=80
exclude: '__init__.py'

#- repo: https://github.com/pycqa/pydocstyle
# rev: '6.3.0'
# hooks:
# - id: pydocstyle
# exclude: ^(cmeuitls/tests/|setup.py)
# args: [--convention=numpy]
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
[![codecov](https://codecov.io/gh/chrisjonesBSU/hoomd-polymers/branch/main/graph/badge.svg?token=86LY9WHSH6)](https://codecov.io/gh/chrisjonesBSU/hoomd-polymers)
## About

Wrapper for [MoSDeF](https://github.com/mosdef-hub) packages and [Hoomd-Blue](https://github.com/glotzerlab/hoomd-blue) with
Wrapper for [MoSDeF](https://github.com/mosdef-hub) packages and [Hoomd-Blue](https://github.com/glotzerlab/hoomd-blue) with
a focus on simulating soft matter systems.

## Installation

### 1. Clone this repository: ###
### 1. Clone this repository: ###

```
git clone [email protected]:chrisjonesbsu/hoomd-polymers.git
cd hoomd-polymers
git clone [email protected]:chrisjonesbsu/hoomd-polymers.git
cd hoomd-polymers
```

### 2. Set up and activate environment: ###
### 2. Set up and activate environment: ###
#### a. Using HOOMD-blue from conda:
```
conda env create -f environment-cpu.yml
conda activate hoomd-polymers
conda env create -f environment-cpu.yml
conda activate hoomd-polymers
python -m pip install .
```
```

## Basic Usage
#### Using the built in molecules, systems and forcefields:
Expand Down
4 changes: 2 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ comment:
- "main"
ignore:
- "hoomd-polymers/tests"
- "hoomd-polymers/library/*"
- "hoomd-polymers/logs"
- "hoomd-polymers/assets"
- "hoomd-polymers/__version__.py"
- "tutorials"
- "setup.py"
17 changes: 12 additions & 5 deletions environment-cpu.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
name: hoomd-polymers
name: hoomd-polymers
channels:
- conda-forge
dependencies:
- boltons
- foyer
- freud
- gsd
- hoomd>3.7=*cpu*
# - gmso>=0.11.0
- gsd<3.0
- hoomd=3.11=*cpu*
- mbuild
- numpy
- openbabel
- pip
- py3Dmol
- pydantic
- pytest
- pytest-cov
- python=3.9
- signac=1.7.0
- signac-flow=0.18.1
- symengine
- python-symengine
- unyt
- pip:
- git+https://github.com/cmelab/cmeutils.git@master
- git+https://github.com/cmelab/grits.git@main
- git+https://github.com/mosdef-hub/gmso@main
23 changes: 23 additions & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: hoomd-polymers-dev
channels:
- conda-forge
dependencies:
- foyer
- freud
#- gmso >= 0.11.0
- gsd<3.0
- hoomd=3.11=*gpu*
- mbuild
- numpy
- openbabel
- pip
- py3Dmol
- pytest
- pytest-cov
- python=3.9
- unyt
- pre-commit
- pip:
- git+https://github.com/cmelab/cmeutils.git@master
- git+https://github.com/cmelab/grits.git@main
- git+https://github.com/mosdef-hub/gmso@main
17 changes: 12 additions & 5 deletions environment-gpu.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
name: hoomd-polymers
name: hoomd-polymers
channels:
- conda-forge
dependencies:
- boltons
- foyer
- freud
- gsd
- hoomd>3.0=*gpu*
# - gmso>=0.11.0
- gsd<3.0
- hoomd=3.11=*gpu*
- mbuild
- numpy
- openbabel
- pip
- py3Dmol
- pydantic
- pytest
- pytest-cov
- python=3.9
- signac=1.7.0
- signac-flow=0.18.1
- symengine
- python-symengine
- unyt
- pip:
- git+https://github.com/cmelab/cmeutils.git@master
- git+https://github.com/cmelab/grits.git@main
- git+https://github.com/mosdef-hub/gmso@main
18 changes: 0 additions & 18 deletions environment-nohoomd.yml

This file was deleted.

11 changes: 9 additions & 2 deletions hoomd_polymers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
from hoomd_polymers.sim import simulation
from hoomd_polymers.modules import welding
from .base import (
CoPolymer,
Lattice,
Molecule,
Pack,
Polymer,
Simulation,
System,
)
2 changes: 2 additions & 0 deletions hoomd_polymers/assets/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .forcefields import FF_DIR
from .molecule_files import MON_DIR
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os


FF_DIR = os.path.abspath(os.path.dirname(__file__))
23 changes: 23 additions & 0 deletions hoomd_polymers/assets/forcefields/benzene_opls.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<ForceField name="OPLS-AA" version="0.0.3" combining_rule="geometric">
<AtomTypes>
<Type name="ha" class="HA" element="H" mass="1.008" def="[H][C;%ca]" desc="benzene H" overrides=""/>
<Type name="ca" class="CA" element="C" mass="12.011" def="[C;X3;r6]1[C;X3;r6][C;X3;r6][C;X3;r6][C;X3;r6][C;X3;r6]1" desc="" overrides=""/>
</AtomTypes>
<HarmonicBondForce>
<Bond class1="CA" class2="CA" length="0.14" k="392459.2"/>
<Bond class1="CA" class2="HA" length="0.108" k="307105.6"/>
</HarmonicBondForce>
<HarmonicAngleForce>
<Angle class1="CA" class2="CA" class3="CA" angle="2.09439510239" k="527.184"/>
<Angle class1="CA" class2="CA" class3="HA" angle="2.09439510239" k="292.88"/>
</HarmonicAngleForce>
<RBTorsionForce>
<Proper class1="CA" class2="CA" class3="CA" class4="CA" c0="30.334" c1="0.0" c2="-30.334" c3="0.0" c4="0.0" c5="0.0"/>
<Proper class1="CA" class2="CA" class3="CA" class4="HA" c0="30.334" c1="0.0" c2="-30.334" c3="0.0" c4="0.0" c5="0.0"/>
<Proper class1="HA" class2="CA" class3="CA" class4="HA" c0="30.334" c1="0.0" c2="-30.334" c3="0.0" c4="0.0" c5="0.0"/>
</RBTorsionForce>
<NonbondedForce coulomb14scale="0.5" lj14scale="0.5">
<Atom type="ha" charge="0.115" sigma="0.242" epsilon="0.12552"/>
<Atom type="ca" charge="-0.115" sigma="0.355" epsilon="0.29288"/>
</NonbondedForce>
</ForceField>
25 changes: 25 additions & 0 deletions hoomd_polymers/assets/forcefields/dimethylether_opls.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<ForceField name="OPLS-AA" version="0.0.3" combining_rule="geometric">
<AtomTypes>
<Type name="ct" class="CT" element="C" mass="12.011" def="[C;X4]([O;%os])(H)(H)H" desc="C(H3OR), methyl ether" overrides=""/>
<Type name="os" class="OS" element="O" mass="15.999" def="[O;X2](C)C" desc="O, dialkyl ether" overrides=""/>
<Type name="hc" class="HC" element="C" mass="12.011" def="HC[O;%os]" desc="H(COR), alpha H ether" overrides=""/>
</AtomTypes>
<HarmonicBondForce>
<Bond class1="OS" class2="CT" length="0.141" k="267776.0"/>
<Bond class1="CT" class2="OS" length="0.141" k="267776.0"/>
<Bond class1="CT" class2="HC" length="0.109" k="284512.0"/>
</HarmonicBondForce>
<HarmonicAngleForce>
<Angle class1="OS" class2="CT" class3="HC" angle="1.91113553093" k="292.88"/>
<Angle class1="CT" class2="OS" class3="CT" angle="1.91113553093" k="502.08"/>
<Angle class1="HC" class2="CT" class3="HC" angle="1.88146493365" k="276.144"/>
</HarmonicAngleForce>
<RBTorsionForce>
<Proper class1="CT" class2="OS" class3="CT" class4="HC" c0="1.58992" c1="4.76976" c2="0.0" c3="-6.35968" c4="0.0" c5="0.0"/>
</RBTorsionForce>
<NonbondedForce coulomb14scale="0.5" lj14scale="0.5">
<Atom type="ct" charge="0.11" sigma="0.35" epsilon="0.276144"/>
<Atom type="os" charge="-0.4" sigma="0.29" epsilon="0.58576"/>
<Atom type="hc" charge="0.03" sigma="0.25" epsilon="0.12552"/>
</NonbondedForce>
</ForceField>
Loading
Loading