Open pmrv opened 3 years ago
Snippet has an error: 3xa
. I am 99.999% sure this is not why you are having trouble, but please confirm 😜
Snippet has an error: 3x
a
. I am 99.999% sure this is not why you are having trouble, but please confirm stuck_out_tongue_winking_eye
Ah, yeah, that's the part I typed manually for the issue. ;) Fixed.
Interestingly it works with this incantation
pr.create.structure.atoms(['Fe', 'Fe', 'Fe'], positions=[ [0, 0, 0], (a+b-c)/2, a+b-c ], cell = [b - c, a - c, (a + b + c)/2], pbc=True)
Maybe it's a weird edge case.
(Don't ask why I want this kind of boxes, dislocations are hard >.<)
EDIT: Was a fluke, also broken.
If I see this correctly, this might be the problem
Supposedly check_triclinic
should be True
, but it's not set in read_inputfile
and we cannot pass it when we call that function.
@srmnitc Am I missing something?
@pmrv This could be the issue, I will take a look and update you.
@pmrv I found the issue, but you are not going to like to so much :sweat_smile: Pyscal follows LAMMPS closely in terms of triclinic boxes. LAMMPS has the restriction that the box vectors need to form a complete right hand basis. That is why the boxes do not work. You can convert the boxes and that should work. We could also do that within pyscal, I just did not think of it yet! I am planning to work on a major update of code soon, so I will add this too. I raised an issue just to keep track. It will take a bit of time though (still trying to get my thesis out of the way!)
@pmrv I found the issue, but you are not going to like to so much sweat_smile Pyscal follows LAMMPS closely in terms of triclinic boxes. LAMMPS has the restriction that the box vectors need to form a complete right hand basis. That is why the boxes do not work. You can convert the boxes and that should work. We could also do that within pyscal, I just did not think of it yet! I am planning to work on a major update of code soon, so I will add this too. I raised an issue just to keep track. It will take a bit of time though (still trying to get my thesis out of the way!)
Thanks for checking it out it quickly. The link to lammps is very useful, I'll try that and update the issue if it works. If it does I imagine we could also do the box conversion in pyiron. It's an issue that also came up before with "too triclinic" boxes when running lammps simulations.
I've had to set up a slightly weird structure of bcc Fe, like this
and pyscal reports their crystal structure as 'other' even though Ovito gets it right on the exact same structure.
Not sure if we're not passing critical information to pyscal or it generally can't handle this, but I can't dig deeper right now.