Skip to content
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

Struct for composition? #57

Closed
antoine-levitt opened this issue Nov 13, 2019 · 8 comments · Fixed by #104
Closed

Struct for composition? #57

antoine-levitt opened this issue Nov 13, 2019 · 8 comments · Fixed by #104
Labels
feature New feature or request

Comments

@antoine-levitt
Copy link
Member

We pass around composition a lot and end up documenting it in several places. Should we just give it a struct?

@mfherbst
Copy link
Member

That's not a bad idea. I thought about it before and wanted to leave it until we see more clearly how we need it.

One advantage would be that it would be easier to hide some pymatgen details for things such as doubling the unit cell for supercell sampling, which is definitely something we'll be using a lot more in the future.

@mfherbst mfherbst added the feature New feature or request label Nov 14, 2019
@antoine-levitt
Copy link
Member Author

  • generalize Species to AbstractSpecies, with subtypes (coulomb, psp, ...)
  • have a species (Vector of pairs (spec, pos)) field in Model
  • make the functions that currently take composition... read from that field
  • move the computation of number of electrons to Model (overwritable with a kwarg)

@antoine-levitt
Copy link
Member Author

Why Species and not Atom, btw?

@antoine-levitt
Copy link
Member Author

The reason I'm asking is because with Atom I can figure out what its plural is :D

@mfherbst
Copy link
Member

Because in coarse-graining methods the entities of the unit cell might not be atoms, but more generic species :P

@mfherbst
Copy link
Member

Plural is boring: species as well ... see wiktionary

@antoine-levitt
Copy link
Member Author

Yeah but species::Vector{Species} is weird.

@mfherbst
Copy link
Member

Agreed ... I don't have a better idea at the moment however. I'm also not in favour if "atoms" to be fair.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants