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 [2019/08/28 11:35] – Martin Brass | documentation:standard_operators:atomic_coulomb_repulsion [2026/11/12 23:07] (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 in the release of October 2019 | + | |
| ### | ### | ||
| NewOperator(" | NewOperator(" | ||
| Line 12: | Line 12: | ||
| * 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 {" | * options : possible Options are {" | ||
| - | * " | + | * " |
| * " | * " | ||
| + | |||
| + | ### | ||
| + | The radial wave-functions can be read from FPLO with // | ||
| + | ### | ||
| ===== Example ===== | ===== Example ===== | ||
| ### | ### | ||
| - | 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, x, 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, 0, { {string.rep("1", NF), 1} }) |
| - | + | print(string.format("< | |
| - | function Take(list,n1,n2) | + | |
| - | 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 | + | |
| - | | + | |
| - | end | + | |
| - | end | + | |
| - | return result | + | |
| - | end | + | |
| - | + | ||
| - | n0 = 3 | + | |
| - | n1 = 4 | + | |
| - | + | ||
| - | indConserved = Take(ind, | + | |
| - | indConserved.kappas = Take(ind.kappas,1,n0-1) | + | |
| - | GConserved = Take(G,1,n0-1) | + | |
| - | FConserved = Take(F,1,n0-1) | + | |
| - | + | ||
| - | indNonCnsrvd = Take(ind, | + | |
| - | indNonCnsrvd.kappas = Take(ind.kappas, | + | |
| - | GNonCnsrvd = Take(G, | + | |
| - | FNonCnsrvd = Take(F, | + | |
| - | + | ||
| - | U0 = NewOperator("AU", | + | |
| - | + | ||
| - | U1 = NewOperator(" | + | |
| - | + | ||
| - | U2 = NewOperator(" | + | |
| - | + | ||
| - | Uconserved = U0 + U1 + U2 | + | |
| </ | </ | ||
| + | <file Quanty_Output Example.out> | ||
| + | < | ||
| + | </ | ||
| ===== Table of contents ===== | ===== Table of contents ===== | ||
| {{indexmenu> | {{indexmenu> | ||
| + | |||
| + | |||