-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spinless hamiltonian (zero hopping) #46
Comments
Dear rp092 Would you please provide us the scenario_gf.in ? Best regards, |
Also, |
Sure. I' write down here the new bash code that I'm using. If you put Q_start = Q_end and Delta_start = Delta_end the code runs only one time at fixed Q and Delta. In my formalism I use Q as the wave vector of the excitation. Next I'm using a python script to plot the GF. ################################################################################# #!/bin/bash if [ $# -ne 7 ] input=$1 Delta_Start=$2 Q_start=$5 cat $input | grep -v Eigenvec > $input_gf SpectrumQW = 0 OmegaIM = -0.1 L=cat $input | grep "L" | awk -F "=" '{name=$1; value=$2; gsub(" ", "", name); gsub(" ", "", value); if (name == "L") print value}' mkdir -p Results cp $input_gf Results for delta in seq $Delta_Start $Delta_Delta $Delta_End for i in range($L): cp trans.def trans.def.bak HPhi -e namelist.def > output_e_$delta for q in echo "Running scenario $delta | $q..." HPhi -e namelist.def > GF_calc_output_$delta_$q energy= cat > shift_gf.py <<EOF from numpy import * new_data = zeros( ( len(w), 2)) savetxt("green_function_D${delta}_Q$q.dat", new_data) ################################################################################# if len(sys.argv) != 5: d_ENERGY = float(sys.argv[1]) NQ = 101 datas = [] w = datas[0][:,0] for i, data in enumerate(datas): savetxt("GF_im.dat", GF_im) show() |
Dear rp092 Thank you. Also, did you try SpectrumType = "up" (or "down") ? Best regards, |
Here is my input file scenario.in: L = 6 U = 0 EigenvecIO = "out" I didn't try any other spectrum type beyond the density one. |
Why do you focus on the density-density correlation function ? |
Because I would like to study the electron-hole pair excitations spectrum on varying the hopping term t and the Coulomb repulsion V>0. |
What do you mean by n_{R0}? |
Sorry, I wrote too indirectly, and I modified the above formula.
|
Thanks a lot. R. |
Good evening, this one is the spinless hamiltonian I would like to run on HPhi
H = Δ Σ_ j (-1)^j n_j + V Σ_ j n_ j n_ j+1
with Δ = 1 and V = 1. Here is a sketch of the excitations of the system.
![eccitazioni](https://user-images.githubusercontent.com/38993526/44003702-6bc8aadc-9e57-11e8-85de-7522bdbcf194.jpg)
In the case L=6 nelec = 3 I'm expecting two kinds of excitations:
the first one with energy E = 2Δ + 2V, the second one with energy E= 2Δ + V.
So in the spectrum there would be two peaks, the first at E = 4 and the second E = 3 with double spectral weight respect to the first. I insert the staggered potential trought the trans.def file like this:
`
NTransfer 48
========i_j_s_tijs======
and I calculate the density-density dynamical GF using that BASH code:
#!/bin/bash
export LC_NUMERIC="en_US.UTF-8"
Q_start=0
Q_end=0.5
Dq=0.01
mkdir GF
for q in
seq $Q_start $Dq $Q_end
do
cat scenario_gf.in | sed 's/SpectrumQL = .*/SpectrumQL = '$q'/g' > scenario_$q.in
echo "Running scenario $q..."
HPhi -sdry scenario_$q.in > tmp
rm trans.def
cp Delta1/trans.def trans.def
HPhi -e namelist.def
cp output/zvo_DynamicalGreen.dat GF/dyn_gf_$q.dat
done
given that the output of the calculation is that spectrum
(it is in logartimic scale + an ε to avoid any divergence)
If you look at q=π (0.5 in fractional coordinates) and q=0 there are no excitations apart from the "elastic" terms of the GF at ω = 0. Are there any errors among my inputs or am I misunderstanding something in the calculation of the GF with HPhi?
Thanks a lot.
R.
The text was updated successfully, but these errors were encountered: