Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:standard_operators:atomic_coulomb_repulsion [2026/11/12 18:35] – Maurits W. Haverkort | 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 ====== | ||
| + | ;;# | ||
| + | <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 | ||
| + | * kappas1, kappas2 : optional - tables of the quantum numbers $\kappa$ of the core orbitals (the first orbitals of indices) and of the valence orbitals (the others). Only the direct and exchange interaction between one core and one valence electron is calculated. | ||
| * options : possible Options are {" | * options : possible Options are {" | ||
| - | * " | + | * " |
| - | * " | + | * " |
| + | |||
| + | ;;# | ||
| + | <color # | ||
| + | ;;# | ||
| ### | ### | ||
| Line 20: | Line 33: | ||
| ===== Example ===== | ===== Example ===== | ||
| + | ;;# | ||
| + | <color # | ||
| + | ;;# | ||
| ### | ### | ||
| Line 28: | Line 44: | ||
| <code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
| -- the Coulomb interaction of the electrons of Ne on its own Dirac-Fock orbitals | -- the Coulomb interaction of the electrons of Ne on its own Dirac-Fock orbitals | ||
| - | G, F, x, Atom = CalculateAtomicBasisFunctions(10) | + | G, F, Atom = CalculateAtomicBasisFunctions(10) |
| ind, NF = CreateAtomicIndicesList(Atom.Labels, | ind, NF = CreateAtomicIndicesList(Atom.Labels, | ||
| Line 41: | Line 57: | ||
| </ | </ | ||
| - | ===== Table of contents ===== | ||
| - | {{indexmenu> | ||
| - | |||
| - | |||
| - | |||
| - | {{indexmenu_n> | ||
| - | ====== Atomic coulomb repulsion ====== | ||
| - | Note: parts of the functionality of this function will be available in the release of October 2019 | ||
| ### | ### | ||
| - | NewOperator(" | + | The second example |
| - | ### | + | |
| - | + | ||
| - | ===== Input ===== | + | |
| - | + | ||
| - | * indices : indices of atomic orbitals belonging to the radial wave-functions | + | |
| - | * RadialWavefunctions1 : table of InterpolatingFunction objects | + | |
| - | * RadialWavefunctions2 : optional - table of InterpolatingFunction objects - if given, | + | |
| - | * options : possible Options are {" | + | |
| - | * " | + | |
| - | * " | + | |
| - | + | ||
| - | ===== Example ===== | + | |
| - | + | ||
| - | ### | + | |
| - | The example below shows how to create | + | |
| ### | ### | ||
| ==== Input ==== | ==== Input ==== | ||
| <code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
| - | orbitallabels = {" | + | -- the Hartree-Fock potential of the [Ar] core of Fe on its 3d and 4s orbitals |
| - | ind, NF = CreateAtomicIndicesList(orbitallabels,{ {" | + | G, F, Atom = CalculateAtomicBasisFunctions(26) |
| - | G, F = ReadFPLOBasisFunctions(orbitallabels,"+fval.001.1", "+fval.001.2") | + | ind, NF = CreateAtomicIndicesList(Atom.Labels, {{" |
| + | NCore = 7 -- 1s, 2s, 2p1/2, 2p3/2, 3s, 3p1/2, 3p3/2 | ||
| + | kappasCore, kappasValence | ||
| + | for i = 1, #ind do | ||
| + | if i <= NCore then kappasCore[i] = ind.kappas[i] else kappasValence[i - NCore] = ind.kappas[i] end | ||
| + | end | ||
| + | U = NewOperator(" | ||
| + | Ucore = NewOperator("AU", NF, ind, G, F, kappasCore, kappasValence) | ||
| - | U = NewOperator(" | + | -- the core filled, without and with one valence electron |
| - | + | core = {} | |
| - | -- now occupation of the s-orbitals shall be conserved | + | for i = 1, NCore do for _, k in ipairs(ind[i]) do core[k + 1] = true end end |
| - | + | function Determinant(extra) | |
| - | function Take(list,n1,n2) | + | local s = {} |
| - | local result={} | + | |
| - | if n2== nil then | + | |
| - | if n1 > 0 then | + | end |
| - | | + | psiCore = Determinant(-1) |
| - | result[i]=list[i] | + | for i = NCore + 1, #ind do |
| - | | + | psi = Determinant(ind[i][1]) |
| - | else | + | |
| - | for i=1,-n1 do | + | |
| - | result[i]=list[#list+n1+i] | + | |
| - | | + | |
| - | end | + | |
| - | else | + | |
| - | | + | |
| - | result[i+1-n1] = list[i] | + | |
| - | end | + | |
| - | | + | |
| - | | + | |
| end | end | ||
| - | |||
| - | n0 = 3 | ||
| - | n1 = 4 | ||
| - | |||
| - | indConserved = Take(ind, | ||
| - | indConserved.kappas = Take(ind.kappas, | ||
| - | GConserved = Take(G, | ||
| - | FConserved = Take(F, | ||
| - | |||
| - | indNonCnsrvd = Take(ind, | ||
| - | indNonCnsrvd.kappas = Take(ind.kappas, | ||
| - | GNonCnsrvd = Take(G, | ||
| - | FNonCnsrvd = Take(F, | ||
| - | |||
| - | U0 = NewOperator(" | ||
| - | |||
| - | U1 = NewOperator(" | ||
| - | |||
| - | U2 = NewOperator(" | ||
| - | |||
| - | Uconserved = U0 + U1 + U2 | ||
| </ | </ | ||
| + | <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> | ||
| + | |||