# 5. FLOSIC The Perdew–Zunger self-interaction correction ([PZ-SIC](#ref-pz81)) removes the one-electron self-interaction error of a semilocal functional orbital by orbital. Restricting the unitary transformation to **Fermi–Löwdin orbitals** (FLOs), which are defined by a set of **Fermi-orbital descriptors** (FODs, one point per occupied orbital and spin), gives the FLOSIC method ([Pederson, Ruzsinszky, Perdew 2014](#ref-prp14)). DFTSW27 implements FLOSIC self-consistently with a Jacobi-type solver ([Yang, Pederson, Perdew 2017](#ref-ypp17)) and with the Krieger–Li–Iafrate (KLI) local potential ([Diaz, Baruah, Zope 2021](#ref-diaz21)); for background and benchmarks of the method see [Zope et al. 2019](#ref-zope19). All SIC keys live in the top-level `sic:` section. ## A first FLOSIC calculation ```{literalinclude} ../tutorials/07_flosic/files/h2o_flosic_jacobi.yaml :language: yaml ``` with the FODs of water (the format is the number of α FODs, their positions in **bohr**, the number of β FODs, their positions): ```{literalinclude} ../tutorials/07_flosic/files/h2o.fod ``` A FOD file needs exactly one FOD per occupied orbital and spin. FLOSIC-LDA of water gives −76.67890 Ha with the Jacobi solver and −76.67627 Ha with KLI; {doc}`Tutorial 7 <../tutorials/07_flosic/index>` explains the output and shows that the HOMO moves from 7.36 eV (LDA) to 14.8 eV, close to the ionization energy of 12.6 eV. ## Method and solver | Key | Values | |---|---| | `functional` | `pz_sic` (Perdew–Zunger) or `lsic` (locally scaled, see below) | | `solver` | `kli` (default; cheaper per iteration) or `jacobi` (self-consistent; exact FOD forces and nuclear gradients) | | `scf_algorithm` | with `jacobi`: `jacobi` (fixed-point SCF) or `direct` (direct minimization; robust for open shells such as Fe or O atoms) | | `oep` | with `kli`: `kli` or `ceda` ([Gritsenko and Baerends](#ref-ceda01); [Krieger, Li, Iafrate](#ref-kli92)) | | `coulomb_method` | self-Coulomb engine for each orbital: `poisson` (default), `analytic`, `density_fitting` | | `orbitals` | `flo` (default), or `free`/`free_complex` to minimize over all unitary rotations ([Vydrov and Scuseria](#ref-vydrov04)) | Requirements: a DFT functional (LDA, GGA or meta-GGA; the orbital self-XC follows `functional: correlation`, use `pw92` for comparison with other FLOSIC codes), no hybrids, collinear SCF with `moment_mode: fixed`. ## Where the FODs come from Choose **one** way to get the starting FODs: 1. **A file**: `fod_file: water.fod`, for instance from a previous run (`relax_checkpoint_file`) or from a published set ([Kao et al. 2017](#ref-kao17) give optimized FODs for atoms Li–Kr). 2. **`fod_guess_method: thomson`** (default): geometric shells from each atom's filling and covalent radius, spread on spheres. A starting guess, good for atoms and small molecules. 3. **`fod_guess_method: assembly`**: FODs assembled from a database of atomic and bond FOD positions and the Lewis structure of the molecule (main-group elements H–Kr; transition-metal molecules get the superposition of the atoms' FOD sets). It is the recommended choice for main-group molecules. The Lewis structure it used is printed. See also [Schwalbe et al. 2019](#ref-schwalbe19) on interpreting and generating FODs. 4. **`fod_guess_method: centroid`**: FODs at the centroids of Foster–Boys localized orbitals of a preliminary plain-DFT SCF; needs no structure. Every guess is only a starting point. Follow it with the optimization below. ## FOD optimization ```{literalinclude} ../tutorials/08_fodopt/files/h2o_fodopt_assembly.yaml :language: yaml :start-at: "sic:" :end-before: "atoms:" ``` `fod_optimization: energy` relaxes the FODs against the SIC energy (BFGS by default, `relax_method`; converged when the largest FOD force is below `relax_force_tol`, 10⁻⁴ Ha/bohr). `fix_fod_at_nucleus: true` pins each atom's 1s FOD at the nucleus (standard practice, Jacobi only). `relax_checkpoint_file` (default `RELAXED_FOD.dat`) is rewritten after every step and can be reused as `fod_file`. Starting from the centroid guess, water relaxes to −76.67890 Ha in 17 outer iterations, 87 mHa below the unrelaxed guess; {doc}`Tutorial 8 <../tutorials/08_fodopt/index>` compares the centroid and assembly guesses. For KLI on molecules the force is approximate; add `frozen_density: true` and `frozen_cycle: true`. ## Locally scaled SIC (LSIC) `functional: lsic` scales the correction down in many-electron regions ([Vydrov et al. 2006](#ref-vydrov06); self-consistent implementation: [Yamamoto et al. 2023](#ref-yamamoto23)). `lsic_consistency: full` is the fully self-consistent version, `quasi` the cheaper approximation. ```{literalinclude} ../tutorials/09_lsic/files/h2o_lsic_jacobi.yaml :language: yaml :start-at: "sic:" :end-before: "atoms:" ``` With direct minimization the LSIC energy of water is −76.48273 Ha ({doc}`Tutorial 9 <../tutorials/09_lsic/index>`). ## Other points to know - SIC gradients and geometry optimizations are available with the Jacobi solver; frequencies are not. - `sic: symmetry: use` exploits point-group symmetry; `locality: on` speeds up very large molecules. - ECPs are supported (valence-only correction; give one FOD per valence electron and spin). - `orbital_log_file` (default `FLOSIC_ORBITAL_ENERGIES.log`) lists each orbital's SIC energy. - Properties: polarizabilities and hyperpolarizabilities with SIC ({doc}`../tutorials/18_hyperpol/index`). Related tutorials: {doc}`../tutorials/07_flosic/index`, {doc}`../tutorials/08_fodopt/index`, {doc}`../tutorials/09_lsic/index`.