Skip to content

Commit

Permalink
Minor update in example
Browse files Browse the repository at this point in the history
  • Loading branch information
j-otsuki committed Feb 27, 2018
1 parent 0bff608 commit 5bf763c
Showing 1 changed file with 7 additions and 52 deletions.
59 changes: 7 additions & 52 deletions example/2band.atom.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,19 @@
# Number of Matsubara frequencies for GF calculation
n_iw = 1024
# Number of imaginary time slices for GF calculation
n_tau = 10001
n_tau = 2001

# Energy window for real frequency GF calculation
energy_window = (-5, 5)
# Number of frequency points for real frequency GF calculation
n_w = 1000

# Number of bosonic Matsubara frequencies for G^2 calculations
g2_n_iw = 5
g2_n_wb = 5
# Number of fermionic Matsubara frequencies for G^2 calculations
g2_n_inu = 10
g2_n_wf = 10
# Number of Legendre coefficients for G^2 calculations
g2_n_l = 10
# Block index combinations for G^2 calculations
g2_blocks = set([("up", "up"), ("up", "dn"), ("dn", "up")])
# g2_n_l = 10

gf_struct = {"up" : orb_names, "dn" : orb_names}
print "Block structure of single-particle Green's functions:", gf_struct
Expand Down Expand Up @@ -90,8 +88,8 @@
common_g2_params = {'channel' : "PH",
'gf_struct' : gf_struct,
'beta' : beta,
'n_f' : 5,
'n_b' : 1, }
'n_f' : g2_n_wf,
'n_b' : g2_n_wb, }

###############################
# G^{(2)}(i\omega;i\nu,i\nu') #
Expand All @@ -107,24 +105,6 @@
# block_order = "AABB",
# n_inu = g2_n_inu,
# **common_g2_params)
#
# # Compute G^{(2),ph}(i\omega;i\nu,i\nu'), ABBA block order
# G2_iw_inu_inup_ph_ABBA = ed.G2_iw_inu_inup(channel = "PH",
# block_order = "ABBA",
# n_inu = g2_n_inu,
# **common_g2_params)
#
# # Compute G^{(2),pp}(i\omega;i\nu,i\nu'), AABB block order
# G2_iw_inu_inup_pp_AABB = ed.G2_iw_inu_inup(channel = "PP",
# block_order = "AABB",
# n_inu = g2_n_inu,
# **common_g2_params)
#
# # Compute G^{(2),pp}(i\omega;i\nu,i\nu'), ABBA block order
# G2_iw_inu_inup_pp_ABBA = ed.G2_iw_inu_inup(channel = "PP",
# block_order = "ABBA",
# n_inu = g2_n_inu,
# **common_g2_params)

#########################
# G^{(2)}(i\omega;l,l') #
Expand All @@ -135,24 +115,6 @@
# block_order = "AABB",
# n_l = g2_n_l,
# **common_g2_params)
#
# # Compute G^{(2),ph}(i\omega;l,l'), ABBA block order
# G2_iw_l_lp_ph_ABBA = ed.G2_iw_l_lp(channel = "PH",
# block_order = "ABBA",
# n_l = g2_n_l,
# **common_g2_params)
#
# # Compute G^{(2),pp}(i\omega;l,l'), AABB block order
# G2_iw_l_lp_pp_AABB = ed.G2_iw_l_lp(channel = "PP",
# block_order = "AABB",
# n_l = g2_n_l,
# **common_g2_params)
#
# # Compute G^{(2),pp}(i\omega;l,l'), ABBA block order
# G2_iw_l_lp_pp_ABBA = ed.G2_iw_l_lp(channel = "PP",
# block_order = "ABBA",
# n_l = g2_n_l,
# **common_g2_params)

################
# Save results #
Expand All @@ -163,11 +125,4 @@
ar['G_iw'] = G_iw
ar['G_tau'] = G_tau
ar['G_w'] = G_w
# ar['G2_iw_inu_inup_ph_AABB'] = G2_iw_inu_inup_ph_AABB
# ar['G2_iw_inu_inup_ph_ABBA'] = G2_iw_inu_inup_ph_ABBA
# ar['G2_iw_inu_inup_pp_AABB'] = G2_iw_inu_inup_pp_AABB
# ar['G2_iw_inu_inup_pp_ABBA'] = G2_iw_inu_inup_pp_ABBA
# ar['G2_iw_l_lp_ph_AABB'] = G2_iw_l_lp_ph_AABB
# ar['G2_iw_l_lp_ph_ABBA'] = G2_iw_l_lp_ph_ABBA
# ar['G2_iw_l_lp_pp_AABB'] = G2_iw_l_lp_pp_AABB
# ar['G2_iw_l_lp_pp_ABBA'] = G2_iw_l_lp_pp_ABBA
ar['G2_ph'] = G2_iw

0 comments on commit 5bf763c

Please sign in to comment.