Skip to content

GCPM Water forcefield usability with LAMMPS - #990

Open
CalCraven wants to merge 4 commits into
mosdef-hub:mainfrom
CalCraven:990-gcpm-lammps
Open

GCPM Water forcefield usability with LAMMPS#990
CalCraven wants to merge 4 commits into
mosdef-hub:mainfrom
CalCraven:990-gcpm-lammps

Conversation

@CalCraven

Copy link
Copy Markdown
Contributor

Note to run these lammps files, you'll need to install lammps using the gcpm plugin:
https://github.com/ndtrung81/lammps/tree/gcpm

PR Summary:

PR Checklist


  • Includes appropriate unit test(s)
  • Appropriate docstring(s) are added/updated
  • Code is (approximately) PEP8 compliant
  • Issue(s) raised/addressed?

Comment thread gmso/tests/test_lammps.py

from gmso.parameterization import apply

posO = np.array([0, 0, 0])
Comment thread gmso/tests/test_lammps.py
theta = 104.52 / 180 * np.pi # rad
dOH = 0.09572
# dM = 0.027
posH1 = np.array([dOH, 0, 0])
Comment thread gmso/tests/test_lammps.py
dOH = 0.09572
# dM = 0.027
posH1 = np.array([dOH, 0, 0])
posH2 = np.array([dOH * np.cos(theta), dOH * np.sin(theta), 0])
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.95918% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 93.44%. Comparing base (84f3edf) to head (b918fef).

Files with missing lines Patch % Lines
gmso/formats/lammpsdata.py 97.91% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #990      +/-   ##
==========================================
+ Coverage   93.15%   93.44%   +0.29%     
==========================================
  Files          67       67              
  Lines        8184     8226      +42     
==========================================
+ Hits         7624     7687      +63     
+ Misses        560      539      -21     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chrisjonesBSU

Copy link
Copy Markdown
Contributor

Regarding the GitHub security bot comments, Could we simplify this test by importing one of the water models from mBuild, or are these relative positions and angle specific to GCPM? If so, lets add a GCPM model to water.py in mBuild.

@CalCraven

Copy link
Copy Markdown
Contributor Author

Regarding the GitHub security bot comments, Could we simplify this test by importing one of the water models from mBuild, or are these relative positions and angle specific to GCPM? If so, lets add a GCPM model to water.py in mBuild.

It should be TIP4P geometry, I just grabbed the exact positions from a structure file to verify that it was being implemented correctly, but this is a good idea now that we know it's being handled correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants