--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/2ae6eb9e-43b0-4c6f-8b5a-417f7e343749n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/CAKNVsq43v%2BuBTPumOkLO%3D23cpVwkfNU08-vrvPTTvhhoz2KMQg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/CAFme2NQPnoweyGbbCzwgQ9KuQS%2BtdxW3oJdmZh8%3DGDu1dJf6WQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/CAKNVsq6wTECgsUoViVLCDumvUw9qw5a_c%2BreHBtCweZna7uMZg%40mail.gmail.com.
Dear Manzoor,
a very simple way is to use ASE (a python package). If you have it installed (e.g. "pip install ase" or if you use conda "conda install -c conda-forge ase") just run the following two lines in python:
from ase import io
io.read('CONTCAR').write('C2NTa2.xyz')
This will convert the CONTCAR to C2NTa2.xyz. The second line of
c2n.xyz contains Lattice="xx xy xz yx yy yz zx zy zz" which are
the 9 numbers that define the lattice. You can use these to set A
xx xy xz B yx yy yz and C zx zy zz in the &CELL section of the
input file. If you explicitly set A, B,and C then ANGLE is not
needed anymore.
Cheers,
Fabian
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/CAFme2NT_Sx5DwfJfH_OopyQgN1njCvTDupgpgSbMJ9XVmoPktg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/3145f5ad-35f6-e185-6512-6dc1cca83377%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/CAKNVsq637_dFdA9W0gpG_gjnx%2BBjP2gN3h8J1254PGHFkRb1pA%40mail.gmail.com.