Skip to content

Commit 5f43664

Browse files
authored
Merge pull request #16 from singularitti/new-pr
Bugfix and example added for `qha-convert`
2 parents 0e98cac + 0c6146d commit 5f43664

File tree

17 files changed

+1710
-1282
lines changed

17 files changed

+1710
-1282
lines changed

examples/silicon/input

Lines changed: 1261 additions & 1271 deletions
Large diffs are not rendered by default.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Example to run `qha-convert`
2+
3+
This tutorial is suitable for outputs from Quantum ESPRESSO.
4+
5+
## Necessary files
6+
7+
Three files are needed to run this script to generate input file for `qha` script:
8+
9+
1. `filelist.yaml` file
10+
* the descrption of the system in `comment` key: a string,
11+
* the number of formula unit in `formula_unit_number` key: an integer,
12+
* A YAML list of files containing frequenices `*.freq` in `frequency_files` key: a YAML list of strings.
13+
14+
If you have trouble writing YAML, please refer to its syntax [here](http://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html).
15+
16+
2. `static` file: Contains the pressures (in kbar or GPa), optimized volumes (in bohr$^3$) and energies (static energies in Rydberg unit).
17+
18+
3. `q_points` file: Contains the q-points' coordinates and their weights in the Brillouin zone.
19+
20+
## Usage
21+
22+
After preparing those three files, just run
23+
24+
```shell
25+
$ qha-convert filelist.yaml static q_points
26+
```
27+
28+
and if there was already an input, it will be backuped. The names of these three files can be arbitray but currently the order of `qha-convert` cannot be changed.
29+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
&plot nbnd= 6, nks= 16 /
2+
0.000000 0.000000 0.000000
3+
-0.0000 -0.0000 0.0000 485.9404 485.9404 485.9404
4+
-0.166667 0.166667 -0.166667
5+
72.3947 72.3947 148.1587 474.1645 474.4399 474.4399
6+
-0.333333 0.333333 -0.333333
7+
110.3543 110.3543 279.0743 434.5441 459.5712 459.5712
8+
0.500000 -0.500000 0.500000
9+
116.5234 116.5234 365.3365 378.2070 457.3581 457.3581
10+
0.000000 0.333333 0.000000
11+
94.5578 94.5578 157.2075 463.4396 463.4396 478.7439
12+
-0.166667 0.500000 -0.166667
13+
124.4907 149.6770 241.7243 436.6210 446.0499 458.7244
14+
0.666667 -0.333333 0.666667
15+
132.9120 170.2463 320.3128 382.9028 443.7669 452.7751
16+
0.500000 -0.166667 0.500000
17+
134.1380 166.6145 296.4980 393.2895 445.8916 455.4723
18+
0.333333 0.000000 0.333333
19+
105.8422 144.7109 206.9767 447.6320 460.8134 460.8156
20+
0.000000 0.666667 0.000000
21+
147.8628 147.8628 289.5013 427.5370 427.5370 446.7863
22+
0.833333 -0.166667 0.833333
23+
155.1139 186.1181 324.1848 392.3518 425.7626 438.6354
24+
0.666667 0.000000 0.666667
25+
159.6061 215.2455 316.5835 346.0008 428.1990 449.2766
26+
0.000000 -1.000000 0.000000
27+
154.5963 154.5963 387.4665 387.4665 424.0470 424.0470
28+
0.666667 -0.333333 1.000000
29+
165.2208 181.8073 279.2554 395.3045 440.0938 442.7232
30+
0.500000 -0.166667 0.833333
31+
175.0339 203.6482 314.4516 351.3173 432.4273 442.7876
32+
-0.333333 -1.000000 0.000000
33+
189.3099 189.3099 346.6212 346.6212 430.2408 430.2408
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
&plot nbnd= 6, nks= 16 /
2+
0.000000 0.000000 0.000000
3+
-0.0000 -0.0000 0.0000 472.3409 472.3409 472.3409
4+
-0.166667 0.166667 -0.166667
5+
72.6550 72.6550 143.0571 460.2016 460.2016 460.8436
6+
-0.333333 0.333333 -0.333333
7+
112.4995 112.4995 270.3296 421.8826 443.9946 443.9946
8+
0.500000 -0.500000 0.500000
9+
119.9687 119.9687 360.0933 361.0759 441.1973 441.1973
10+
0.000000 0.333333 0.000000
11+
94.1323 94.1323 152.1488 448.8124 448.8124 465.4376
12+
-0.166667 0.500000 -0.166667
13+
125.9786 149.1871 234.5494 421.9414 429.9688 444.3028
14+
0.666667 -0.333333 0.666667
15+
135.9117 170.1023 312.6618 368.6567 427.0484 436.1565
16+
0.500000 -0.166667 0.500000
17+
136.2604 166.2999 288.4573 379.7005 429.6793 438.8582
18+
0.333333 0.000000 0.333333
19+
106.6834 143.3597 200.5819 434.2182 445.5400 445.7913
20+
0.000000 0.666667 0.000000
21+
150.7328 150.7328 280.6549 409.8917 409.8917 434.1219
22+
0.833333 -0.166667 0.833333
23+
159.1215 188.0205 314.2383 378.6084 407.5594 421.6017
24+
0.666667 0.000000 0.666667
25+
162.6030 215.7005 306.6587 332.1525 410.6681 431.6532
26+
0.000000 -1.000000 0.000000
27+
159.7903 159.7903 376.2301 376.2301 405.1952 405.1952
28+
0.666667 -0.333333 1.000000
29+
166.4781 182.2920 271.0010 380.9403 424.0722 425.2020
30+
0.500000 -0.166667 0.833333
31+
176.7700 203.8610 306.1000 337.1762 414.9675 424.7463
32+
-0.333333 -1.000000 0.000000
33+
191.3657 191.3657 335.3314 335.3314 411.7237 411.7237
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
&plot nbnd= 6, nks= 16 /
2+
0.000000 0.000000 0.000000
3+
-0.0000 -0.0000 0.0000 459.1509 459.1509 459.1509
4+
-0.166667 0.166667 -0.166667
5+
72.5789 72.5789 137.7956 446.3803 446.3803 447.9686
6+
-0.333333 0.333333 -0.333333
7+
114.0558 114.0558 261.1296 409.9702 428.8706 428.8706
8+
0.500000 -0.500000 0.500000
9+
122.7247 122.7247 342.4467 356.6951 425.5228 425.5228
10+
0.000000 0.333333 0.000000
11+
93.2883 93.2883 147.1801 434.6650 434.6650 452.5246
12+
-0.166667 0.500000 -0.166667
13+
126.7876 148.2447 227.2657 407.6678 414.3994 430.4742
14+
0.666667 -0.333333 0.666667
15+
138.1208 169.4433 304.2532 355.4229 410.8254 420.1117
16+
0.500000 -0.166667 0.500000
17+
137.8170 165.4327 279.9394 366.8881 413.9529 422.8440
18+
0.333333 0.000000 0.333333
19+
107.1578 141.5178 194.0568 421.2772 430.8072 431.2094
20+
0.000000 0.666667 0.000000
21+
152.7313 152.7313 271.9709 392.7946 392.7946 421.8047
22+
0.833333 -0.166667 0.833333
23+
162.1604 189.1235 304.4675 364.8583 389.8753 405.4141
24+
0.666667 0.000000 0.666667
25+
164.8565 215.4897 296.7192 318.6639 393.6502 414.6881
26+
0.000000 -1.000000 0.000000
27+
163.8904 163.8904 365.2625 365.2625 386.8831 386.8831
28+
0.666667 -0.333333 1.000000
29+
167.1121 182.0458 262.7840 366.8618 408.2702 408.6923
30+
0.500000 -0.166667 0.833333
31+
177.8361 203.3938 297.8913 323.3066 398.0734 407.2908
32+
-0.333333 -1.000000 0.000000
33+
192.6774 192.6774 324.2911 324.2911 393.7699 393.7699
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
&plot nbnd= 6, nks= 16 /
2+
0.000000 0.000000 0.000000
3+
-0.0000 -0.0000 -0.0000 446.3224 446.3224 446.3224
4+
-0.166667 0.166667 -0.166667
5+
72.3938 72.3938 132.4863 432.9832 432.9832 435.5518
6+
-0.333333 0.333333 -0.333333
7+
115.2094 115.2094 251.5866 398.7945 414.2144 414.2144
8+
0.500000 -0.500000 0.500000
9+
124.8725 124.8725 325.2457 352.1878 410.2937 410.2937
10+
0.000000 0.333333 0.000000
11+
92.0923 92.0923 142.3060 420.9723 420.9723 439.9874
12+
-0.166667 0.500000 -0.166667
13+
127.0511 146.9547 219.9398 393.8260 399.3446 417.2179
14+
0.666667 -0.333333 0.666667
15+
139.7293 168.4082 295.0261 343.3721 395.1216 404.6814
16+
0.500000 -0.166667 0.500000
17+
138.9002 164.0840 270.9683 354.8503 398.6967 407.4240
18+
0.333333 0.000000 0.333333
19+
107.3845 139.2902 187.4497 408.8090 416.6108 417.0661
20+
0.000000 0.666667 0.000000
21+
153.9957 153.9957 263.4761 376.2439 376.2439 409.8163
22+
0.833333 -0.166667 0.833333
23+
164.4406 189.6017 294.9224 351.0900 372.7377 390.1702
24+
0.666667 0.000000 0.666667
25+
166.5093 214.7024 286.7634 305.5859 377.1366 398.4419
26+
0.000000 -1.000000 0.000000
27+
167.0448 167.0448 354.5417 354.5417 369.0802 369.0802
28+
0.666667 -0.333333 1.000000
29+
167.2315 181.1950 254.6646 353.0789 391.9537 393.9622
30+
0.500000 -0.166667 0.833333
31+
178.3424 202.3500 289.8341 309.7494 381.7493 390.4631
32+
-0.333333 -1.000000 0.000000
33+
193.3519 193.3519 313.4769 313.4769 376.3858 376.3858
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
&plot nbnd= 6, nks= 16 /
2+
0.000000 0.000000 0.000000
3+
-0.0000 -0.0000 0.0000 433.8595 433.8595 433.8595
4+
-0.166667 0.166667 -0.166667
5+
72.0276 72.0276 127.0829 419.9742 419.9742 423.5538
6+
-0.333333 0.333333 -0.333333
7+
115.9775 115.9775 241.7221 388.2833 399.9888 399.9888
8+
0.500000 -0.500000 0.500000
9+
126.5286 126.5286 308.4799 347.5969 395.5171 395.5171
10+
0.000000 0.333333 0.000000
11+
90.6063 90.6063 137.5194 407.7258 407.7258 427.8163
12+
-0.166667 0.500000 -0.166667
13+
126.8306 145.3387 212.5540 380.4139 384.7846 404.4818
14+
0.666667 -0.333333 0.666667
15+
140.7887 167.0354 284.8795 332.5019 379.8996 389.8099
16+
0.500000 -0.166667 0.500000
17+
139.5732 162.3443 261.5294 343.5753 383.8984 392.5937
18+
0.333333 0.000000 0.333333
19+
107.3584 136.7085 180.7785 396.7914 402.9318 403.3341
20+
0.000000 0.666667 0.000000
21+
154.6106 154.6106 255.1811 360.2241 360.2241 398.1425
22+
0.833333 -0.166667 0.833333
23+
166.0452 189.4941 285.5999 337.2469 356.1079 375.7989
24+
0.666667 0.000000 0.666667
25+
167.6365 213.4155 276.7316 292.9081 361.1191 382.8653
26+
0.000000 -1.000000 0.000000
27+
169.4372 169.4372 344.0831 344.0831 351.7862 351.7862
28+
0.666667 -0.333333 1.000000
29+
166.8800 179.7845 246.6232 339.5778 376.2200 379.8464
30+
0.500000 -0.166667 0.833333
31+
178.3566 200.8115 281.9092 296.4477 365.9912 374.2121
32+
-0.333333 -1.000000 0.000000
33+
193.4872 193.4872 302.8844 302.8844 359.5626 359.5626
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
&plot nbnd= 6, nks= 16 /
2+
0.000000 0.000000 0.000000
3+
-0.0000 -0.0000 -0.0000 514.3883 514.3883 514.3883
4+
-0.166667 0.166667 -0.166667
5+
71.0593 71.0593 158.0199 502.2537 504.2646 504.2646
6+
-0.333333 0.333333 -0.333333
7+
104.1419 104.1419 295.1714 462.2604 492.1661 492.1661
8+
0.500000 -0.500000 0.500000
9+
106.9818 106.9818 373.3587 415.8545 491.1260 491.1260
10+
0.000000 0.333333 0.000000
11+
94.0131 94.0131 167.5500 494.1856 494.1856 506.5907
12+
-0.166667 0.500000 -0.166667
13+
119.1510 149.0942 255.8436 467.1431 479.8166 489.5217
14+
0.666667 -0.333333 0.666667
15+
124.1203 168.8011 334.0152 413.9102 478.7694 487.8396
16+
0.500000 -0.166667 0.500000
17+
127.8729 165.2646 311.3062 422.6880 479.8008 490.5470
18+
0.333333 0.000000 0.333333
19+
102.9784 145.7969 219.4411 475.9479 492.2513 493.0793
20+
0.000000 0.666667 0.000000
21+
138.9230 138.9230 307.6608 464.4983 464.4983 473.1729
22+
0.833333 -0.166667 0.833333
23+
143.5730 179.5632 344.6509 420.0444 463.7994 475.1838
24+
0.666667 0.000000 0.666667
25+
150.9626 212.0275 336.4254 374.8643 464.8329 486.5703
26+
0.000000 -1.000000 0.000000
27+
139.8774 139.8774 410.7036 410.7036 463.3633 463.3633
28+
0.666667 -0.333333 1.000000
29+
160.5448 178.3398 295.9711 424.9180 474.1111 479.6013
30+
0.500000 -0.166667 0.833333
31+
169.2241 200.8826 331.5869 380.5321 469.0556 480.7135
32+
-0.333333 -1.000000 0.000000
33+
182.5237 182.5237 369.9489 369.9489 468.9852 468.9852
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
&plot nbnd= 6, nks= 16 /
2+
0.000000 0.000000 0.000000
3+
-0.0000 -0.0000 0.0000 529.2938 529.2938 529.2938
4+
-0.166667 0.166667 -0.166667
5+
69.8844 69.8844 162.6876 517.0937 519.9206 519.9206
6+
-0.333333 0.333333 -0.333333
7+
99.7911 99.7911 302.4291 477.3718 509.2430 509.2430
8+
0.500000 -0.500000 0.500000
9+
100.4147 100.4147 377.0567 435.4043 508.7713 508.7713
10+
0.000000 0.333333 0.000000
11+
92.8630 92.8630 172.8264 510.3632 510.3632 521.1797
12+
-0.166667 0.500000 -0.166667
13+
115.0095 147.8568 262.7751 482.9681 497.5468 505.9897
14+
0.666667 -0.333333 0.666667
15+
117.9096 167.0048 340.2929 430.4512 497.0995 506.3361
16+
0.500000 -0.166667 0.500000
17+
123.4513 163.3853 318.1375 438.4349 497.5392 509.0368
18+
0.333333 0.000000 0.333333
19+
100.8323 145.3531 225.4546 490.8998 508.7231 510.1211
20+
0.000000 0.666667 0.000000
21+
132.4225 132.4225 316.9742 483.8386 483.8386 486.9121
22+
0.833333 -0.166667 0.833333
23+
135.4772 174.5988 355.1611 434.1002 483.6715 494.6451
24+
0.666667 0.000000 0.666667
25+
144.9422 209.0460 346.3768 389.8766 483.9748 506.2502
26+
0.000000 -1.000000 0.000000
27+
129.5124 129.5124 422.6995 422.6995 483.8517 483.8517
28+
0.666667 -0.333333 1.000000
29+
156.8991 175.1176 304.4368 440.1893 492.1340 498.9787
30+
0.500000 -0.166667 0.833333
31+
164.8771 198.1030 340.3754 395.6228 488.2539 500.6244
32+
-0.333333 -1.000000 0.000000
33+
177.4703 177.4703 381.9920 381.9920 489.2344 489.2344
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
&plot nbnd= 6, nks= 16 /
2+
0.000000 0.000000 0.000000
3+
0.0000 0.0000 0.0000 544.7164 544.7164 544.7164
4+
-0.166667 0.166667 -0.166667
5+
68.2220 68.2220 167.1544 532.4690 536.0775 536.0775
6+
-0.333333 0.333333 -0.333333
7+
94.3130 94.3130 309.1408 493.2849 526.8356 526.8356
8+
0.500000 -0.500000 0.500000
9+
92.2301 92.2301 380.5081 455.4715 526.9730 526.9730
10+
0.000000 0.333333 0.000000
11+
91.0553 91.0553 178.1776 527.1091 527.1091 536.2379
12+
-0.166667 0.500000 -0.166667
13+
109.6035 145.8613 269.6189 499.1466 515.8516 523.2007
14+
0.666667 -0.333333 0.666667
15+
110.0360 164.3063 346.2635 447.5602 515.9832 525.4796
16+
0.500000 -0.166667 0.500000
17+
117.9604 160.5298 324.6244 454.8379 515.8312 528.1853
18+
0.333333 0.000000 0.333333
19+
98.0911 144.1545 231.3097 506.3761 525.7093 527.7775
20+
0.000000 0.666667 0.000000
21+
124.1363 124.1363 326.4397 501.0185 503.7833 503.7833
22+
0.833333 -0.166667 0.833333
23+
125.2040 168.1815 365.8277 448.3223 504.1127 514.8434
24+
0.666667 0.000000 0.666667
25+
137.4447 204.9512 356.3374 405.2699 503.6833 526.6199
26+
0.000000 -1.000000 0.000000
27+
116.2038 116.2038 434.9377 434.9377 504.9410 504.9410
28+
0.666667 -0.333333 1.000000
29+
152.1752 170.6829 312.9556 455.7733 510.8361 518.9905
30+
0.500000 -0.166667 0.833333
31+
159.3376 194.1948 349.2943 411.0347 508.0518 521.1766
32+
-0.333333 -1.000000 0.000000
33+
171.0267 171.0267 394.2853 394.2853 510.0962 510.0962

0 commit comments

Comments
 (0)