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
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,7 @@
94
94
-[pseudo\_rcut](#pseudo_rcut)
95
95
-[pseudo\_mesh](#pseudo_mesh)
96
96
-[nspin](#nspin)
97
+
-[gga\_grad](#gga_grad)
97
98
-[smearing\_method](#smearing_method)
98
99
-[smearing\_sigma](#smearing_sigma)
99
100
-[smearing\_sigma\_temp](#smearing_sigma_temp)
@@ -1326,6 +1327,17 @@
1326
1327
- 4: Noncollinear or spin-orbit calculations. Set nspin to 4 explicitly when noncolin or lspinorb is enabled.
1327
1328
-**Default**: 1
1328
1329
1330
+
### gga_grad
1331
+
1332
+
-**Type**: Integer
1333
+
-**Description**: Selects the local spin mapping for LDA/GGA functionals in magnetic nspin=4 calculations.
1334
+
- 0: preserves the original algorithm (default).
1335
+
- 1: uses the local magnetization magnitude instead of the global quantization axis in the built-in GGA gradient correction. For LIBXC functionals, 0 and 1 are equivalent.
1336
+
- 2: uses a C2-regularized magnetization magnitude with eta = 1e-3 in atomic density units. The spin densities are (abs(n + rho_core) +/- min(S_eta(m), abs(n + rho_core)))/2. GGA gradients are the local-map Jacobian applied to the FFT gradients of the four density channels. The potential reverses this same discrete energy graph, including the radial Hessian and density/sigma clipping branches; the GGA stress uses the corresponding metric derivative.
1337
+
For r = |m| and x = r/eta, S_eta = eta*x^3*(3*x^2 - 8*x + 6) for r < eta, and S_eta = r otherwise. The regularization is part of the functional definition, including its first and second derivatives.
1338
+
Mode 2 also uses this local map for the LDA contribution. Other spin configurations retain their existing behavior.
Copy file name to clipboardExpand all lines: docs/parameters.yaml
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -686,6 +686,19 @@ parameters:
686
686
default_value: "1"
687
687
unit: ""
688
688
availability: ""
689
+
- name: gga_grad
690
+
category: Electronic structure
691
+
type: Integer
692
+
description: |
693
+
Selects the local spin mapping for LDA/GGA functionals in magnetic nspin=4 calculations.
694
+
* 0: preserves the original algorithm (default).
695
+
* 1: uses the local magnetization magnitude instead of the global quantization axis in the built-in GGA gradient correction. For LIBXC functionals, 0 and 1 are equivalent.
696
+
* 2: uses a C2-regularized magnetization magnitude with eta = 1e-3 in atomic density units. The spin densities are (abs(n + rho_core) +/- min(S_eta(m), abs(n + rho_core)))/2. GGA gradients are the local-map Jacobian applied to the FFT gradients of the four density channels. The potential reverses this same discrete energy graph, including the radial Hessian and density/sigma clipping branches; the GGA stress uses the corresponding metric derivative.
697
+
For r = |m| and x = r/eta, S_eta = eta*x^3*(3*x^2 - 8*x + 6) for r < eta, and S_eta = r otherwise. The regularization is part of the functional definition, including its first and second derivatives.
698
+
Mode 2 also uses this local map for the LDA contribution. Other spin configurations retain their existing behavior.
0 commit comments