Global variables
These are global variables of the edipy2 module. They form a subset of the global variables of the EDIpack2 library. Along with all the other global variables, they can be set in the input file, and are read when calling the edipy2.global_env.read_input()
function.
The exposed global variables can be accessed as methods of the edipy2.global_env
class.
import numpy as np
from edipy2 import global_env as ed
ed.Nspin = 1 # set a global variable
mylocalvar = ed.Nspin # assing to a local variable (the value of mylocalvar will not change if ed.Nspin changes)
print(ed.Nspin) # all functions can have global variables as arguments
np.arange(ed.Nspin)
- edipy2.global_env.beta
Value of the inverse temperature, at T=0 is used as a IR cut-off
- Type:
- Default:
1000.0
- edipy2.global_env.ed_total_ud
Flag to select which type of quantum numbers have to be considered: T (default) total Nup-Ndw, F orbital based Nup-Ndw
- Type:
- Default:
True
- edipy2.global_env.ed_twin
Flag to reduce (T) or not (F,default) the number of visited sector using twin symmetry
- Type:
- Default:
False
- edipy2.global_env.Nbath
Number of bath levels. See the specifics of the bath geometries
- Type:
- Default:
6
- edipy2.global_env.Norb
Number of correlated orbitals. Maximum 5 orbitals are supported
- Type:
- Default:
1
- edipy2.global_env.nread
Value of the target density for fixed density calculations. If valued 0, it is discarded.
- Type:
- Default:
0.0
- edipy2.global_env.Nspin
Number of explicitly defined spin degrees of freedom. If Nspin=1, the two spin block of the Hamiltonian, Green’s function, Self-Energy and so on are assumed equal. If Nspin=2 they may differ (e.g. for non-SU(2) or magnetic systems). The superconductive variant of the code requires Nspin=1
- Type:
- Default:
1
- edipy2.global_env.Nsuccess
Number of successive iterations below threshold for convergence
- Type:
- Default:
1
- edipy2.global_env.sb_field
Value of a symmetry breaking field for magnetic solutions
- Type:
- Default:
0.1
- edipy2.global_env.Uloc
Values of the local interaction per orbital (max 5). If less values are provided, the array is filled in increasing order
- Type:
- Default:
[2.0, 0.0, 0.0, 0.0, 0.0]
- edipy2.global_env.xmin
Value for the smallest position for the lattice PDF
- Type:
- Default:
-3.0