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

Add KremerGrestBeadSpring class to library.forcefields, remove r_cut from various Simulation classes. #109

Merged
merged 10 commits into from
Dec 22, 2023

Conversation

chrisjonesBSU
Copy link
Member

@chrisjonesBSU chrisjonesBSU commented Dec 21, 2023

The Kremer-Grest bead spring model is a very popular one for coarse-grained polymer simulations. This PR adds a ready-to-use class that returns a version of this model using hoomd forces.

I also noticed that the r_cut parameter in base.Simulation and all of the other simulation sub classes that inherit from it don't actually need the r_cut parameter as it is never used anywhere. r_cut is set in the forcefield methods and classes. So, this PR removes the parameter from the various simulation classes.

@chrisjonesBSU chrisjonesBSU added the enhancement New feature or request label Dec 21, 2023
Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0b9e27d) 94.15% compared to head (0da3d1b) 94.23%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
+ Coverage   94.15%   94.23%   +0.07%     
==========================================
  Files          23       23              
  Lines        1746     1770      +24     
==========================================
+ Hits         1644     1668      +24     
  Misses        102      102              
Files Coverage Δ
flowermd/base/simulation.py 91.42% <ø> (-0.03%) ⬇️
flowermd/base/system.py 91.98% <100.00%> (+0.02%) ⬆️
flowermd/library/__init__.py 100.00% <ø> (ø)
flowermd/library/forcefields.py 94.93% <100.00%> (+0.63%) ⬆️
flowermd/library/simulations/tensile.py 100.00% <ø> (ø)
...lowermd/modules/surface_wetting/surface_wetting.py 94.11% <ø> (ø)
flowermd/modules/welding/welding.py 100.00% <ø> (ø)

@chrisjonesBSU chrisjonesBSU changed the title Add KremerGrestBeadSpring class to library.forcefields Add KremerGrestBeadSpring class to library.forcefields, remove r_cut from various Simulation classes. Dec 22, 2023
@chrisjonesBSU chrisjonesBSU merged commit df50ced into cmelab:main Dec 22, 2023
4 checks passed
@chrisjonesBSU chrisjonesBSU deleted the add-kremer-grest branch December 22, 2023 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant