You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced/input_files/input-main.md
+12-7Lines changed: 12 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3766,19 +3766,24 @@ These variables are used to control berry phase and wannier90 interface paramete
3766
3766
3767
3767
-**Type**: Boolean
3768
3768
-**Availability**:
3769
-
- For PW and LCAO codes. if set to 1, occupations of bands will be setting of "ocp_set".
3770
-
- For TDDFT in LCAO codes. if set to 1, occupations will be constrained since second ionic step.
3771
-
- For OFDFT, this feature can't be used.
3769
+
- For PW and LCAO codes: If set to 1, the band occupations will be determined by `ocp_set`.
3770
+
- For RT-TDDFT in LCAO codes: If set to 1, same as above, but the occupations will be constrained starting from the second ionic step.
3771
+
- For OFDFT: This feature is not available.
3772
3772
-**Description**:
3773
-
- True: fix the occupations of bands.
3774
-
- False: do not fix the occupations of bands.
3773
+
- True: Fixes the band occupations based on the values specified in `ocp_set`.
3774
+
- False: Does not fix the band occupations.
3775
3775
-**Default**: False
3776
3776
3777
3777
### ocp_set
3778
3778
3779
3779
-**Type**: String
3780
-
-**Description**: If ocp is True, the ocp_set is a string to set the number of occupancy, like '1 10 * 1 0 1' representing the 13 band occupancy, 12th band occupancy 0 and the rest 1, the code is parsing this string into an array through a regular expression.
3781
-
-**Default**: none
3780
+
-**Description**:
3781
+
- If `ocp` is set to 1, `ocp_set` must be provided as a string specifying the occupation numbers for each band across all k-points. The format follows a space-separated pattern, where occupations are assigned sequentially to bands for each k-point. A shorthand notation `N*x` can be used to repeat a value `x` for `N` bands.
3782
+
- Example:
3783
+
-`1 10*1 0 1` represents occupations for 13 bands, where the 12th band is fully unoccupied (`0`), and all others are occupied (`1`).
3784
+
- For a system with multiple k-points, the occupations must be specified for all k-points, following their order in the output file kpoints (may lead to fractional occupations).
3785
+
- Incorrect specification of `ocp_set` could lead to inconsistencies in electron counting, causing the calculation to terminate with an error.
0 commit comments