-
Notifications
You must be signed in to change notification settings - Fork 183
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
Weeks-Chandler-Anderson Potential #2292
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Just one design question: LennardJonesInteraction
is spelled out, but WCAInteraction
is abbreviated. Should it be more consistent?
Codecov Report
@@ Coverage Diff @@
## python #2292 +/- ##
=======================================
- Coverage 71% 71% -1%
=======================================
Files 380 377 -3
Lines 18938 18798 -140
=======================================
- Hits 13588 13477 -111
+ Misses 5350 5321 -29
Continue to review full report at Codecov.
|
|
In the context of interactions i think WCA is a well known abbreviation whereas I would say LJ is not too common. In papers we always talk about WCA interaction but would not write LJ interaction. Thus, I think it's fine as it is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change doc for the typo
doc/sphinx/inter_non-bonded.rst
Outdated
@@ -216,6 +216,40 @@ interaction, while :math:`\delta` varies how smoothly the potential goes to zero | |||
alchemical transformations, where a group of atoms can be slowly turned | |||
on/off during a simulation. | |||
|
|||
.. _Weeks-Chandler-Anderson interaction: | |||
|
|||
Weeks-Chandler-Anderson interaction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's Andersen not Anderson
\label{eq:wca} | ||
V_\mathrm{WCA}(r) = | ||
\begin{cases} | ||
4 \epsilon \left[ \left(\frac{\sigma}{r}\right)^{12} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be handy to allow an offset
similar to the offset in the Lennard-Jones interaction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My point was to rather keep it simple, as there is already a Lennard-Jones that has all the bells and whistles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's open for extension, so I'm okay
Fixes me typing
2**(1./6.)
a lot. Is also a little bit faster thanLENNARD_JONES
.Description of changes:
PR Checklist