Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:functions:createatomicindiceslist [2018/06/21 15:16] – created Simon Heinze | documentation:language_reference:functions:createatomicindiceslist [2018/08/02 14:17] (current) – Added Option "kappas" Simon Heinze | ||
---|---|---|---|
Line 2: | Line 2: | ||
### | ### | ||
- | alligned paragraph text | + | CreateAtomicIndicesList(orbs) takes a list of strings and tries to interpret each as an atomic orbital by checking the last characters. If these are either ' |
+ | |||
+ | The function then assigns quantum numbers to these states. | ||
+ | |||
+ | Compare // | ||
### | ### | ||
===== Input ===== | ===== Input ===== | ||
- | * bla : Integer | + | * // |
- | * bla2 : Real | + | * Possible Options are: |
+ | * " | ||
===== Output ===== | ===== Output ===== | ||
- | * bla : real | + | * // |
+ | * //NF//: The number of fermionic states in the system. | ||
===== Example ===== | ===== Example ===== | ||
### | ### | ||
- | description text | + | A small Example: |
### | ### | ||
==== Input ==== | ==== Input ==== | ||
<code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
- | -- some example code | + | orbitalsNonRel = {" |
+ | orbitalsRel = {" | ||
+ | |||
+ | IndNonRel, NFNonRel = CreateAtomicIndicesList(orbitalsNonRel) | ||
+ | IndRel, NFRel = CreateAtomicIndicesList(orbitalsRel) | ||
+ | |||
+ | print(" | ||
+ | print(IndNonRel) | ||
+ | |||
+ | print(" | ||
+ | print(NFNonRel) | ||
+ | |||
+ | print(" | ||
+ | print(IndRel) | ||
+ | |||
+ | print(" | ||
+ | print(NFRel) | ||
</ | </ | ||
==== Result ==== | ==== Result ==== | ||
<file Quanty_Output> | <file Quanty_Output> | ||
- | text produced as output | + | IndNonRel: |
+ | { { 0 } , | ||
+ | { 1 } , | ||
+ | { 2 } , | ||
+ | { 3 } , | ||
+ | { 4 , 6 , 8 } , | ||
+ | { 5 , 7 , 9 } , | ||
+ | { 10 } , | ||
+ | { 11 } , | ||
+ | { 12 , 14 , 16 , 18 , 20 } , | ||
+ | { 13 , 15 , 17 , 19 , 21 } } | ||
+ | |||
+ | NFNonRel: | ||
+ | 22 | ||
+ | |||
+ | IndRel: | ||
+ | { { 0 , 1 } , | ||
+ | { 2 , 3 } , | ||
+ | { 4 , 5 } , | ||
+ | { 6 , 7 } , | ||
+ | { 8 , 9 , 10 , 11 } , | ||
+ | { 12 , 13 , 14 , 15 } , | ||
+ | { 16 , 17 , 18 , 19 , 20 , 21 } } | ||
+ | |||
+ | NFRel: | ||
+ | 22 | ||
</ | </ | ||