-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Default Lattice.nsc
and relation to periodic/nonperiodic directions
#625
Comments
So you propose that there is no I like the idea. But... :) Also, the problem is still open in #553. The I would propose:
|
Thanks for reminding me of #553, I agree these issues are related. I guess the concept of |
Indeed, and that turns out to be difficult to generalize... |
Would it be possible to associate |
But I think this is more a property of the geometry and interaction ranges. For instance it may also be used for neighbour finding (which need not be used in the context of a sparse matrix). It seems to me to belong to the geometry in conjunction with the lattice. |
So the question is whether we need some kind of |
I've noticed that the default
Lattice.nsc = [1, 1, 1]
is obtained when reading a geometry from file (XV, CONTCAR, fdf, etc). However, this prevents a function like.translate2uc()
to take effect unless one first changesnsc[i] > 1
or explicitly setsaxes=True
(how I came across this issue).Suggestion: Perhaps
nsc[i] = 0
should be allowed to denote a nonperiodic direction, while a value of1
would mean periodicity (but without explicit reference to neighbour cells)? This would be consistent with thepbc
-parameter written to thexyz
-header (obtained frompbc = ['T' if n else 'F' for n in nsc]
).With this definition, we could simply redefine the default
axes=None
intranslate2uc
to:The text was updated successfully, but these errors were encountered: