13
$\begingroup$

I built a supercell of a molecular crystal and wish to write an .xyz file in ASE. How do I do that? The molecule has three different types of elements, C, H, and N.

$\endgroup$
13
$\begingroup$

Assuming you have an atoms object, all you need to do is call the "write" function.

from ase import Atoms

supercell = Atoms()
supercell.write("supercell.xyz")
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.