-
Notifications
You must be signed in to change notification settings - Fork 15
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
use pyiron-internal is_skewed #63
Conversation
But is this the same? For example in the case when we do a monte carlo simulation in combination with minimising each step. Then all cells in pyiron are orthogonal while the cells inside LAMMPS are not. |
Can you provide some examples what does not work? |
That's not true. If the pyiron cell is orthogonal, then we use |
You are right, still I would be interested what fails. As I thought orthogonal boxes are the default for most cases. |
It's actually the callback function. If you are really really interested I can try to think of an easy example, but that's gonna probably still be somewhat cumbersome (both to create one and to read it)... |
But actually it's maybe anyway time to think about making simple examples for callback functions, so I'm gonna make one anyway. |
@@ -1948,6 +1948,25 @@ def get_voronoi_volume(self): | |||
return self._analyse.pyscal_voronoi_volume() | |||
get_voronoi_volume.__doc__ = Analyse.pyscal_voronoi_volume.__doc__ | |||
|
|||
def is_skewed(self, tolerance=1.0e-8): |
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.
This should work, but isn't it more straightforward to check the dot product between cell vectors? Your reasoning is documented though, so I don't mind too much.
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.
Uh that's a good point. I don't have a strong opinion about it. The only one thing is that I want to insist on making tolerance
a dimensionless value, in which case the computational cost is probably very much the same. If other people prefer dot product I can also change it.
Pull Request Test Coverage Report for Build 536671936
💛 - Coveralls |
I found out that actually it was not the callback function that causes the problem, but apparently
And with this PR this problem was fixed. With this, I guess it's clear to everyone that this PR is indispensable. |
And since I promised @jan-janssen , here's a super simple notebook for callback: |
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
Certain fixes in LAMMPS do not work with
fix orthogonal
etc., which used to work before (essentially before this commit). As I didn't really see how to check whether LAMMPS seestriclinic
ororthogonal
from pyiron, I decided to implement it inside pyiron. Hopefully this one is acceptable...