-
Notifications
You must be signed in to change notification settings - Fork 18
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
What type parameters should AbstractSystem
have?
#25
Comments
Could somebody quickly recap for me why |
It turned out that keeping the species type parameter made the implementation of an AtomView very hard, so #34 will drop this type parameter, leaving only the dimensionality as type parameter. |
I need a type parameter for the cell, so I just added another abstract type that has The bigger question here is why even Could it become problematic that the |
It's the number of dimensions of the space the atoms are in. Generally 3 but could be 2 for a simulation of a surface. So usually the One example use is dispatching for visualisation, where 3D and 2D visualisations would use different code paths. |
... I understand the intention fine. I was just trying to point out that the interpretation is not quite as clear-cut as one might think the moment we go outside the most basic MD type problems which is exactly what I said above. Again - I think the way we interpret D right now is fine as long as we keep the audience of the interface limited to those that require point particles that have a position variable living in R^D. |
I agree with Christoph that strictly there is ambiguity (e.g. for spin as you say) but also agree with Joe that for purposes such as dispatching for visualization, it makes sense to have this. Also, for the position/momenta point, this is still consistent/useful because positions/momenta should be of the same dimensions. Similarly, the length of the PBC vector we've been discussing in #97 should be this too... |
I think that means we keep what we have now, document clearly what D means and then close the issue? |
Sounds fine to me – in terms of "document clearly," the docs already say
Do you think something beyond this is needed? |
To my ears this is ambiguous for the reasons I explained above. "Space " for a mathematician and actually many physicists as well is a much broader concept. |
How about adding a parenthetical along the lines of "(i.e., the dimension of the position vectors)"? |
I'll close this due to the merged PR. Feel free to reopen if needed. |
Currently we have one
D
for number of dimensions and oneS
for the species type. There could be more (e.g. addingUnitful
types to specify units for length, velocity, etc.) or fewer, i.e. removing one/both of the current ones. Discuss!The text was updated successfully, but these errors were encountered: