How to read relaxed output file?
im kinda new in QE. I relaxed my structure. These are the new infos:
CELL_PARAMETERS (alat= 5.80712838)
0.862642072 -0.498046633 0.000000000
0.000000000 0.996093265 0.000000000
0.000000000 0.000000000 3.257006109
ATOMIC_POSITIONS (crystal)
Si 0.0000000000 0.0000000000 0.1879688714
Si -0.0000000000 0.0000000000 0.6879688714
Si 0.3333333333 0.6666666667 0.4379113697
Si 0.6666666667 0.3333333333 0.9379113697
C -0.0000000000 0.0000000000 0.0002675223
C -0.0000000000 0.0000000000 0.5002675223
C 0.3333333333 0.6666666667 0.2498522367
C 0.6666666667 0.3333333333 0.7498522367
I want to input this in a new .in file: How to read this so I won't mix up the conversion? I need it in this format:
&SYSTEM
ibrav = 0
nat = 8
ntyp = 2
ecutwfc = 30
celldm(1) = 5.80712838
/
CELL_PARAMETERS alat
0.863257294 -0.498401831 0.000000000
0.000000000 0.996803662 0.000000000
0.000000000 0.000000000 3.259720036
ATOMIC_POSITIONS crystal
Si 0.0000000000 0.0000000000 0.1879688714
Si -0.0000000000 0.0000000000 0.6879688714
Si 0.3333333333 0.6666666667 0.4379113697
Si 0.6666666667 0.3333333333 0.9379113697
C -0.0000000000 0.0000000000 0.0002675223
C -0.0000000000 0.0000000000 0.5002675223
C 0.3333333333 0.6666666667 0.2498522367
C 0.6666666667 0.3333333333 0.7498522367
Do i just copy paste? Thanks in advance!
Edit: When I do calculation='vc-relax', i have the explicit cell_parameters in the .out file. Meanwhile, in calculation='relax', I don't. Do I use the same CELL_PARAMETERS from the .in file? However, the variable in $SYSTEM / is A instead of celldm(1), so i'm kinda confused with the conversion.