[ase-users] Possible bug with minimum image convention
Ask Hjorth Larsen
asklarsen at gmail.com
Tue Sep 4 15:13:44 CEST 2018
Hi,
Den tir. 4. sep. 2018 kl. 14.34 skrev Tarjei Bondevik via ase-users
<ase-users at listserv.fysik.dtu.dk>:
>
> Dear ase-users,
>
>
>
> I noticed what I believe is a bug, with a very strange work-around.
>
>
>
> I have some code converting Lammps data files to the ase format in the following way:
>
>
>
> atoms=Atoms(symbols=chem_symb_list,cell=cell_vectors)
>
> atoms.set_positions(position_list)
>
>
>
> When trying to get_all_distances(mic=True) for atoms, the minimum image convention (mic) does not work, i.e. it behaves like its set to False.
>
You need something like Atoms(..., pbc=True) to get periodic boundary
conditions and hence any effect from using MIC.
>
>
> However, if I save atoms as a POSCAR file, and import the POSCAR file back to ase, the minimum image convention somehow works again:
>
>
>
> write_vasp(“tempPOSCAR”, atoms, direct=True, sort=True)
>
> atoms = read("tempPOSCAR")
Probably POSCAR does not store the periodicity info at all, but the
system is assumed to be periodic if it came from a POSCAR file.
Best regards
Ask
>
>
>
>
>
> Best regards,
>
> Tarjei Bondevik
>
> _______________________________________________
> ase-users mailing list
> ase-users at listserv.fysik.dtu.dk
> https://listserv.fysik.dtu.dk/mailman/listinfo/ase-users
More information about the ase-users
mailing list