伊辛(ising)模型MATLAB源程序.ppt_第1页
伊辛(ising)模型MATLAB源程序.ppt_第2页
伊辛(ising)模型MATLAB源程序.ppt_第3页
伊辛(ising)模型MATLAB源程序.ppt_第4页
免费预览已结束,剩余1页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

clearall closeall clcN 16 Te 0 0 2 5 imax 500000 MT zeros 1 length Te Cv zeros 1 length Te xx zeros 1 length Te L 1 k 1 forT TeMt zeros 1 imax step 100000 spin round rand N 2 1 subplot 3 2 1 gspin pcolor spin colormap gray 2 title 自旋分布情况 Mt zeros 1 imax subplot 3 2 2 gMt plot 1 imax Mt axis 0imax 1 11 1 title 固定温度下的磁矩 xlabel 时间 ylabel Mt initialenergyidx repmat ndims spin 1 idx 1 N1 N 1 Etotal spin idx idx repmat ndims spin 1 idx 2 N1 N 1 Etotal Etotal spin idx idx repmat ndims spin 1 idx 1 2 N1 Etotal Etotal spin idx idx repmat ndims spin 1 idx 2 2 N1 Etotal Etotal spin idx Etotal spin Etotal Et0 zeros 1 imax Et0 1 sum sum Etotal 2 subplot 3 2 3 gEt plot 1 imax Et0 Ett Et0 1 title 固定温度下的能量 xlabel 时间 ylabel Et energyendsubplot 3 2 4 gMT plot Te MT o axis 0max Te 01 1 title 磁矩随温度T的变化 xlabel T ylabel MT subplot 3 2 5 gCv plot Te Cv o axis 0max Te 0700 title 热容随温度T的变化 xlabel T ylabel Cv subplot 3 2 6 gxx plot Te xx o axis 0max Te 00 1 title 磁导率随温度T的变化 xlabel T ylabel X fori 2 imaxa ceil rand 1 2 N ifa 1 1xl N elsexl a 1 1 endifa 1 Nxr 1 elsexr a 1 1 endifa 2 1yd N elseyd a 2 1 endifa 2 Nyu 1 elseyu a 2 1 endds spin a 1 yu spin a 1 yd spin xl a 2 spin xr a 2 de 2 spin a 1 a 2 ds ifrand exp de T spin a 1 a 2 spin a 1 a 2 Ett Ett de endMt i sum sum spin N 2 Et0 i Ett ifmod i step 0set gspin Cdata double spin set gMt Ydata Mt set gEt Ydata Et0 drawnowendendCv L 1 T 2 mean Et0 2 mean Et0 2 xx L 1 T mean Mt 2 mean Mt 2 MT L mean abs Mt 0 9 imax imax set

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论