Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| documentation:standard_operators:atomic_coulomb_repulsion [2019/08/28 11:30] – created Martin Brass | documentation:standard_operators:atomic_coulomb_repulsion [2026/11/17 07:34] (current) – Maurits W. Haverkort | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{indexmenu_n> | + | {{indexmenu_n> |
| ====== Atomic coulomb repulsion ====== | ====== Atomic coulomb repulsion ====== | ||
| - | Note: parts of the functionality of this function will be available | + | ;;# |
| + | <color # | ||
| + | ;;# | ||
| ### | ### | ||
| - | NewOperator(" | + | NewOperator(" |
| + | |||
| + | NewOperator(" | ||
| + | |||
| + | Together with the one-electron // | ||
| ### | ### | ||
| ===== Input ===== | ===== Input ===== | ||
| + | * NF : the number of fermionic modes (spin-orbitals) in the 1-particle basis | ||
| * indices : indices of atomic orbitals belonging to the radial wave-functions | * indices : indices of atomic orbitals belonging to the radial wave-functions | ||
| * RadialWavefunctions1 : table of InterpolatingFunction objects | * RadialWavefunctions1 : table of InterpolatingFunction objects | ||
| * RadialWavefunctions2 : optional - table of InterpolatingFunction objects - if given, the function calculates relativistic Slater integrals where RadialWavefunctions1 are the large parts and RadialWavefunctions2 the small ones | * RadialWavefunctions2 : optional - table of InterpolatingFunction objects - if given, the function calculates relativistic Slater integrals where RadialWavefunctions1 are the large parts and RadialWavefunctions2 the small ones | ||
| - | * options : possible Options are {" | + | |
| - | * " | + | |
| - | * "MeanField" : only if " | + | * " |
| + | * "1P-Operator" : (default | ||
| + | |||
| + | ;;# | ||
| + | <color # | ||
| + | ;;# | ||
| + | |||
| + | ### | ||
| + | The radial wave-functions can be read from FPLO with // | ||
| + | ### | ||
| ===== Example ===== | ===== Example ===== | ||
| + | ;;# | ||
| + | <color # | ||
| + | ;;# | ||
| ### | ### | ||
| - | The example below shows how to create the full Coulomb interaction between multiple atomic orbitals with relativistic wave-functions. It is recommended to use CreateAtomicIndicesList(orbitallabels, | + | The example below shows how to create the full Coulomb interaction between multiple atomic orbitals with relativistic wave-functions. It is recommended to use CreateAtomicIndicesList(orbitallabels, |
| ### | ### | ||
| ==== Input ==== | ==== Input ==== | ||
| <code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
| - | orbitallabels = {" | + | -- the Coulomb interaction of the electrons of Ne on its own Dirac-Fock orbitals |
| - | ind, NF = CreateAtomicIndicesList(orbitallabels, | + | G, F, Atom = CalculateAtomicBasisFunctions(10) |
| - | G, F = ReadFPLOBasisFunctions(orbitallabels," | + | ind, NF = CreateAtomicIndicesList(Atom.Labels, {{" |
| - | U = NewOperator(" | + | U = NewOperator(" |
| - | -- now occupation of the s-orbitals shall be conserved | + | psi = NewWavefunction(NF, |
| + | print(string.format("< | ||
| + | </ | ||
| - | function Take(list, | + | <file Quanty_Output Example.out> |
| - | local result={} | + | < |
| - | if n2== nil then | + | </ |
| - | if n1 > 0 then | + | |
| - | for i = 1, n1 do | + | |
| - | result[i]=list[i] | + | |
| - | end | + | |
| - | else | + | |
| - | for i=1,-n1 do | + | |
| - | result[i]=list[# | + | |
| - | end | + | |
| - | end | + | |
| - | | + | |
| - | for i = n1, n2 do | + | |
| - | result[i+1-n1] = list[i] | + | |
| - | end | + | |
| - | end | + | |
| - | return result | + | |
| - | end | + | |
| - | n0 = 3 | + | ### |
| - | n1 = 4 | + | The second example calculates the interaction of the electrons in the 3d and 4s orbitals of Fe with its [Ar] core. With the core filled this is a one particle operator, the Hartree-Fock potential of the core. For a state with the core filled and one valence electron, the full Coulomb interaction gives the same energy plus the interaction within the core. |
| + | ### | ||
| - | indConserved | + | ==== Input ==== |
| - | indConserved.kappas | + | <code Quanty Example.Quanty> |
| - | GConserved | + | -- the Hartree-Fock potential of the [Ar] core of Fe on its 3d and 4s orbitals |
| - | FConserved | + | G, F, Atom = CalculateAtomicBasisFunctions(26) |
| - | + | ind, NF = CreateAtomicIndicesList(Atom.Labels, {{" | |
| - | indNonCnsrvd | + | NCore = 7 -- 1s, 2s, 2p1/2, 2p3/2, 3s, 3p1/2, 3p3/2 |
| - | indNonCnsrvd.kappas = Take(ind.kappas,n0,n1) | + | kappasCore, kappasValence |
| - | GNonCnsrvd | + | for i = 1, #ind do |
| - | FNonCnsrvd | + | if i <= NCore then kappasCore[i] |
| + | end | ||
| + | U = NewOperator(" | ||
| + | Ucore = NewOperator(" | ||
| - | U0 = NewOperator(" | + | -- the core filled, without and with one valence electron |
| - | + | core = {} | |
| - | U1 = NewOperator("AU",NF,ind, | + | for i = 1, NCore do for _, k in ipairs(ind[i]) do core[k + 1] = true end end |
| - | + | function Determinant(extra) | |
| - | U2 = NewOperator("AU",NF,indNonCnsrvd, | + | local s = {} |
| - | + | for k = 1, NF do s[k] = (core[k] or k == extra + 1) and "1" | |
| - | Uconserved = U0 + U1 + U2 | + | return NewWavefunction(NF, 0, {{table.concat(s), 1}}) |
| + | end | ||
| + | psiCore = Determinant(-1) | ||
| + | for i = NCore + 1, #ind do | ||
| + | | ||
| + | print(string.format("%-6s <core v|U|core v> - < | ||
| + | Atom.Labels[i], psi*U*psi - psiCore*U*psiCore, psi*Ucore*psi)) | ||
| + | end | ||
| </ | </ | ||
| + | <file Quanty_Output Example.out> | ||
| + | 3d3/2 <core v|U|core v> - < | ||
| + | 3d5/2 <core v|U|core v> - < | ||
| + | 4s1/2 <core v|U|core v> - < | ||
| + | </ | ||
| ===== Table of contents ===== | ===== Table of contents ===== | ||
| {{indexmenu> | {{indexmenu> | ||
| + | |||