沿着高对称线计算磁化率

首先计算出布里渊区规则区域的磁化率

kx=load('KX.grd');      
ky=load('KY.grd'); 
Ed =load('BAND.B9.grd');
Ep = load('BAND.B8.grd');
mu = 0;
T = 0.01;             
delta = 0.001;             
nx = length(kx);
ny = length(ky);
chi = zeros(nx,ny);
for i = 1:nx
    for j = 1:ny
        for k=1:nx
            for l=1:ny
                index_kq_x = mod(i+k,nx)+1;
                index_kq_y = mod(j+l,ny)+1;
                Ek = Ed(k,l);
                Ekq = Ed(index_kq_x,index_kq_y);
                %chi(i,j) = chi(i,j) + (Fermi_funtion(Ek,mu,T)-Fermi_funtion(Ekq,mu,T))/(Ek-Ekq+1i*delta);
                chi(i,j) = chi(i,j) + delta_function(Ek)*delta_function(Ekq);
            end
        end
    end
end

然后截取我们需要的磁化率,这里有如下技巧可以让我们顺利拿到所需数据

 

 

chi = real(chi)/nx/ny;
chi_line_Gammar_M = chi(1:nx/2,1);
chi_line = diag(chi);
chi_line_M_Gammar = flip(chi_line(1:nx/2));
chi_line_plot = [chi_line_Gammar_M;chi_line_M_Gammar];

plot([25 25], [0 25],'-b');
hold on
plot([50 50], [0 25],'-k');
plot([60 60], [0 25],'-b');
plot([66 66], [0 25],'-k');
plot([79 79], [0 25],'-b');
plot(chi_line_plot);

其中delta函数用洛伦兹分布近似

function f=Fermi_funtion(E,u,T)
f=(exp((E-u)/T)+ones(length(E),1)).^-1;
end

function delta =  delta_function(x)
a = 0.01;
delta = 1/pi*a/(a^2+x^2);
end

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值