Open Fellow-baka opened 6 years ago
These seem possible. For the moment if I have a big cell I usually go 2 1 2 and move the unit cell to the middle to create a pleasing image.
I think it will be necessary to change how the supercell generation/iteration works a bit; at the moment the code iterates over each atom in each of a series of unit cells, generating the trajectory of movement. This will have to be tweaked to accept partially-occupied cells.
I was worried on first reading that you might be asking for the ability to generate conventional cells with a 3x3x3 supercell matrix. That would be nice to have, but I don't have a lot of confidence with that stuff which seems to usually work by "searching" for repeating atoms in a space.
Sorry if I wasn't clear enough. Here some pictures from VESTA to illustrate the request.
I think now the ascii-phonons with -d 1 1 1 option generate the cell shown at top (can't test right now), however the middle one is kinda more familiar/pleasant.
Bottom one is for the cases when a little bit of atoms should be shown, e.g. specific bonds/polyhedra.
Thanks in advance!
Thanks for the illustrations. I think from a user viewpoint this should be implemented as a "threshold" distance value for identifying atoms near the edge of the cell.
It probably makes sense to implement fractional supercells at the same time, as both need the same change to the code structure