|
731 | 731 | ### init_wfc |
732 | 732 |
|
733 | 733 | - **Type**: String |
734 | | -- **Description**: The type of the starting wave functions. |
| 734 | +- **Description**: The method used to initialize wavefunction coefficients. The available options and behavior depend on `basis_type`. |
735 | 735 |
|
736 | | - Available options are: |
| 736 | + For `basis_type=pw`, the available options are: |
| 737 | + |
| 738 | + - `atomic`: Use atomic pseudo wavefunctions from `PP_PSWFC`. If no `PP_PSWFC` states are available, all bands are initialized randomly. If the number of atomic states is smaller than `nbands`, the remaining bands are initialized randomly. |
| 739 | + - `atomic+random`: If there are at least `nbands` atomic states, apply an approximately 5% multiplicative random perturbation to the atomic initialization. If there are fewer atomic states than `nbands`, use the atomic states and initialize the remaining bands randomly, as for `atomic`. |
| 740 | + - `random`: Initialize all bands with random coefficients. |
| 741 | + - `nao`: Use numerical atomic orbitals. If the number of NAO states is smaller than `nbands`, the remaining bands are initialized randomly. |
| 742 | + - `nao+random`: Apply an approximately 5% multiplicative random perturbation to the NAO initialization; any bands not covered by NAO states are first initialized randomly. |
| 743 | + - `file`: Read binary `wf*_pw.dat` files generated with `out_wfc_pw=2` from `read_file_dir`. The files must match the current k points, `nbands`, plane-wave layout, and lattice. |
| 744 | + |
| 745 | + For `basis_type=lcao`, only `file` triggers reading existing wavefunctions. It reads text `wf*_nao.txt` files generated with `out_wfc_lcao=1` from `read_file_dir`; binary files generated with `out_wfc_lcao=2` are not supported. The files must use a compatible NAO basis, match the current k-point and spin setup, and contain enough bands. Normal `init_wfc=file` reading matches files written with the default `out_app_flag=true`, which have no geometry-step index. Files written under `WFC/` with a `g*` geometry-step index when `out_app_flag=false` are not matched automatically. |
737 | 746 |
|
738 | | - - atomic: from atomic pseudo wave functions. If they are not enough, other wave functions are initialized with random numbers. |
739 | | - - atomic+random: add small random numbers on atomic pseudo-wavefunctions |
740 | | - - file: from binary files wf*.dat, which are output by setting out_wfc_pw to 2. |
741 | | - - random: random numbers |
742 | | - - nao: from numerical atomic orbitals. If they are not enough, other wave functions are initialized with random numbers. |
743 | | - - nao+random: add small random numbers on numerical atomic orbitals |
| 747 | + For `basis_type=lcao_in_pw`, `init_wfc` is automatically set to `nao`. |
744 | 748 |
|
745 | | - > Note: Only the file option is useful for the lcao basis set, which is mostly used when calculation is set to get_wf and get_pchg. |
| 749 | + > Note: For `calculation=get_wf` or `calculation=get_pchg`, `init_wfc` is automatically set to `file`. If `basis_type=lcao_in_pw` is also used, the final value is `nao`. |
746 | 750 | - **Default**: atomic |
747 | 751 |
|
748 | 752 | ### init_chg |
|
1937 | 1941 | ### out_wfc_pw |
1938 | 1942 |
|
1939 | 1943 | - **Type**: Integer |
1940 | | -- **Availability**: *[`basis_type`](#basis_type)==pw or ([`basis_type`](#basis_type)==lcao and [`calculation`](#calculation)==get_wf)* |
1941 | | -- **Description**: Whether to output the electronic wavefunction coefficients into files and store them in the folder OUT.${suffix}. The files are named as wf{k}{k-point index}{s}{spin index}{g}{geometry index}{e}{electronic iteration index}{_pw} + {".txt"/".dat"}. Here, the s index refers to spin but the label will not show up for non-spin-polarized calculations, where s1 means spin up channel while s2 means spin down channel, and s4 refers to spinor wave functions that contains both spin channels with spin-orbital coupling or noncollinear calculations enabled. For scf or nscf calculations, g index will not appear, but the g index appears for geometry relaxation and molecular dynamics, where one can use the out_freq_ion command to control. To print out the electroinc wave functions every few SCF iterations, use the out_freq_elec command and the e index will appear in the file name. |
1942 | | - - 0: no output |
1943 | | - - 1: (txt format) |
1944 | | - - non-gamma-only with nspin=1: wfk1_pw.txt, wfk2_pw.txt, ...; |
1945 | | - - non-gamma-only with nspin=2: wfk1s1_pw.txt, wfk1s2_pw.txt, wfk2s1_pw.txt, wfk2s2_pw.txt, ...; |
1946 | | - - non-gamma-only with nspin=4: wfk1s4_pw.txt, wfk2s4_pw.txt, ...; |
1947 | | - - 2: (binary format) |
1948 | | - - non-gamma-only with nspin=1: wfk1_pw.dat, wfk2_pw.dat, ...; |
1949 | | - - non-gamma-only with nspin=2: wfk1s1_pw.dat, wfk1s2_pw.dat, wfk2s1_pw.dat, wfk2s2_pw.dat, ...; |
1950 | | - - non-gamma-only with nspin=4: wfk1s4_pw.dat, wfk2s4_pw.dat, ...; |
| 1944 | +- **Availability**: *[`basis_type`](#basis_type)==pw and [`esolver_type`](#esolver_type)==ksdft* |
| 1945 | +- **Description**: Controls whether plane-wave Kohn-Sham wavefunction coefficients are written to `OUT.${suffix}/`. |
| 1946 | + |
| 1947 | + Available values are: |
| 1948 | + |
| 1949 | + - `0`: Do not write wavefunction coefficients. |
| 1950 | + - `1`: Write text files with the `.txt` suffix. |
| 1951 | + - `2`: Write binary files with the `.dat` suffix. |
| 1952 | + |
| 1953 | + The file-name pattern is `wfk{k}[s{spin}][g{geometry step}][e{electronic iteration}]_pw.txt` for `out_wfc_pw=1` and `wfk{k}[s{spin}][g{geometry step}][e{electronic iteration}]_pw.dat` for `out_wfc_pw=2`. All PW output files include a `k*` label, including Gamma-only calculations. Without geometry-step or electronic-iteration indices, representative names are `wfk1_pw.txt` or `wfk1_pw.dat` for `nspin=1`, `wfk1s1_pw.txt` and `wfk1s2_pw.txt` or their `.dat` equivalents for `nspin=2`, and `wfk1s4_pw.txt` or `wfk1s4_pw.dat` for `nspin=4`. |
| 1954 | + |
| 1955 | + With `out_freq_ion=0`, files are written only when the electronic calculation converges or reaches `scf_nmax`; no `g*` or `e*` index is added. During structural relaxation or molecular dynamics, later ionic steps overwrite the same unindexed files. With `out_freq_ion` > 0, output is restricted to the ionic steps selected by `out_freq_ion` and is written when the electronic iteration is a multiple of `out_freq_elec`, when the calculation converges, or when it reaches `scf_nmax`. Both `g*` and `e*` indices are then added, including for a static `calculation=scf` or `calculation=nscf` run. |
| 1956 | + |
| 1957 | + For `init_wfc=file`, ABACUS automatically reads only unindexed binary `wf*_pw.dat` files from `read_file_dir`. Such directly reusable files are normally generated with `out_wfc_pw=2` and `out_freq_ion=0`. Text `wf*_pw.txt` files and files containing `g*` or `e*` indices are not matched automatically. |
1951 | 1958 |
|
1952 | | - > Note: In the 3.10-LTS version, the file names are WAVEFUNC1.dat, WAVEFUNC2.dat, etc. |
| 1959 | + > Note: In the 3.10-LTS version, the binary files are named `WAVEFUNC1.dat`, `WAVEFUNC2.dat`, etc. |
1953 | 1960 | - **Default**: 0 |
1954 | 1961 |
|
1955 | 1962 | ### out_wfc_lcao |
|
2394 | 2401 |
|
2395 | 2402 | - **Type**: String |
2396 | 2403 | - **Availability**: *[`basis_type`](#basis_type)==pw or ([`basis_type`](#basis_type)==lcao and [`calculation`](#calculation)==get_wf)* |
2397 | | -- **Description**: Selects electronic states for real-space wavefunction-modulus output using the selection syntax and complete-state normalization of `out_pchg`. For `nspin=1`, `s1` contains the wavefunction modulus. For `nspin=2`, `s1` and `s2` contain the spin-up and spin-down wavefunction moduli, respectively. For `nspin=4`, `s1` contains the total spinor modulus. Files are named `wfi[state]s[spin]k[kpoint].cube`. |
| 2404 | +- **Description**: Selects electronic states for real-space wavefunction-modulus output using the selection syntax of `out_pchg`. Each wavefunction is normalized as a single-particle state and does not include SCF occupations or spin-degeneracy factors. For `nspin=1`, `s1` contains the wavefunction modulus. For `nspin=2`, `s1` and `s2` contain the spin-up and spin-down wavefunction moduli, respectively. For `nspin=4`, `s1` contains the total spinor modulus. Files are named `wfi[state]s[spin]k[kpoint].cube`. |
2398 | 2405 | - **Default**: none |
2399 | 2406 |
|
2400 | 2407 | ### out_wfc_re_im |
2401 | 2408 |
|
2402 | 2409 | - **Type**: String |
2403 | 2410 | - **Availability**: *[`basis_type`](#basis_type)==pw or ([`basis_type`](#basis_type)==lcao and [`calculation`](#calculation)==get_wf)* |
2404 | | -- **Description**: Selects electronic states for real-space wavefunction real- and imaginary-part output using the selection syntax and complete-state normalization of `out_pchg`. For `nspin=1`, `s1` contains the wavefunction. For `nspin=2`, `s1` and `s2` contain the spin-up and spin-down wavefunctions, respectively. For `nspin=4`, `s1` and `s2` contain the upper and lower spinor components, respectively. Files are named `wfi[state]s[spin]k[kpoint][re/im].cube`. |
| 2411 | +- **Description**: Selects electronic states for real-space wavefunction real- and imaginary-part output using the selection syntax of `out_pchg`. Each wavefunction is normalized as a single-particle state and does not include SCF occupations or spin-degeneracy factors. For `nspin=1`, `s1` contains the wavefunction. For `nspin=2`, `s1` and `s2` contain the spin-up and spin-down wavefunctions, respectively. For `nspin=4`, `s1` and `s2` contain the upper and lower spinor components, respectively. Files are named `wfi[state]s[spin]k[kpoint][re/im].cube`. |
2405 | 2412 | - **Default**: none |
2406 | 2413 |
|
2407 | 2414 | ### if_separate_k |
|
0 commit comments