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

[Lammps] Include concept of group in pyiron #1371

Open
samwaseda opened this issue Apr 5, 2024 · 0 comments
Open

[Lammps] Include concept of group in pyiron #1371

samwaseda opened this issue Apr 5, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@samwaseda
Copy link
Member

I would like to suggest to include the concept of group inside pyiron, by allowing the user to have a tag like group in structure.arrays (which is an ASE attribute), which can look like:

structure.arrays["group_A"] = [0, 0, 1, 1, 1, 1, 0, 0]  # maybe has to be numpy array
structure.arrays["group_B"] = [1, 0, 0, 1, 1, 2, 0, 0]  # maybe has to be numpy array

where the numbers 0 and 1 refer to the group ids. This should be translated inside the Lammps script into

group A_0 id 1 2 7 8
group A_1 id 3 4 5 6
group B_0 id 2 3 7 8
group B_1 id 1 4 5
group B_2 id 6
@samwaseda samwaseda added the enhancement New feature or request label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants