Author Topic: Export CIF files using the linux command  (Read 2850 times)

0 Members and 1 Guest are viewing this topic.

Offline atk_user

  • Heavy QuantumATK user
  • ***
  • Posts: 48
  • Country: 00
  • Reputation: 0
    • View Profile
Export CIF files using the linux command
« on: October 18, 2014, 10:15 »
Dear all,

Is it possible to export CIF files for both initial and optimized geometries after geometry optimization in the linux command line?
(I'm using ver. ATK 13.8.1)


Offline Umberto Martinez

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 479
  • Country: dk
  • Reputation: 26
    • View Profile
Re: Export CIF files using the linux command
« Reply #1 on: October 21, 2014, 00:17 »
in python, you can try
Code
bulk_configuration = ......

from NL.NanoLanguage.ConfigurationConverters.CIFConverters import configurationToCIF
data = configurationToCIF(bulk_configuration)
with open("filename.cif", 'w') as f:
    f.write(data) 
although this is not officially part of NanoLanguage and it might not work in future releases.