| 4 | 1/1 | 返回列表 |
| 查看: 3047 | 回復: 3 | ||
xiehui0608金蟲 (小有名氣)
|
[求助]
求,vasp計算自旋密度作圖方法,急! 已有1人參與
|
| 本人是vasp初學者,最近在算一個帶有自旋的體系,想做一下它的自旋密度圖,在網(wǎng)上看了很多,看到有人說用CHGCAR 文件通過VESTA軟件可以做成,但是沒有具體的步驟方法,還是不會做,有哪位高手指點一下,急需要!謝謝! |
新蟲 (正式寫手)
|
在網(wǎng)上下載chgsplit.pl腳本,將CHGCAR生成CHGCAR_mag以及CHGCAR_tot.直接用VESTA打開CHGCAR_mag,這個是Alpha-Beta。調(diào)節(jié)VESTA工具欄objects的property里的isosurface。調(diào)節(jié)這個值顯示的更清楚。懶得傳附件了,chgsplit.pl腳本直接復制過來. #!/usr/bin/env perl #;-*- Perl -*- @ARGV>=1 || die "usage: chgsplit.pl <CHGCAR> \n"; open (IN1,$ARGV[0]) || die ("Can't open file $!" ;open (OUT,">CHGCAR_tot" ;# read the header of the CHGCAR for ($i=0; $i<6; $i++) { $line1 = <IN1>; $header1 .= $line1; } $atoms1 = <IN1>; $header1 .= $atoms1; @atoms1 = split(/\s+/,$atoms1); $sum1 += $_ for @atoms1; print "Atoms in file: ".$sum1."\n"; for ($i=0; $i<$sum1+2; $i++) { $header1 .= <IN1>; } # start reading the total charge density (spin up plus spin down) part $points1 = <IN1>; $header1 .= $points1; @points1 = split(/\s+/,$points1); $psum1 = 1; for ($i=1; $i<@points1; $i++) { $psum1 *= $points1[$i]; } print "Points in total charge density: ".$psum1."\n"; print OUT $header1; for ($i=0; $i<$psum1/5; $i++) { $line1 = <IN1>; @line1 = split(/\s+/,$line1); printf OUT "%18.11E %18.11E %18.11E %18.11E %18.11E\n",$line1[1],$line1[2],$line1[3],$line1[4],$line1[5]; } close(OUT); # start reading the magnetization density (spin up minus spin down) part open (OUT,">CHGCAR_mag" ;$line1 = <IN1>; while($line1 != $points1){ $line1 = <IN1>; } $points2 = $line1; @points2 = split(/\s+/,$points2); $psum2 = 1; for ($i=1; $i<@points2; $i++) { $psum2 *= $points2[$i]; } print "Points in magnetization density: ".$psum2."\n"; if ($psum1 != $psum2) {die ("Number of points not same in two parts!" ;}print OUT $header1; for ($i=0; $i<$psum1/5; $i++) { $line1 = <IN1>; @line1 = split(/\s+/,$line1); printf OUT "%18.11E %18.11E %18.11E %18.11E %18.11E\n",$line1[1],$line1[2],$line1[3],$line1[4],$line1[5]; } close(OUT); close(IN1); . |
新蟲 (正式寫手)
| 內(nèi)容已刪除 |
金蟲 (正式寫手)
碩士研究生

| 4 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 0817 化學工程 299分求調(diào)劑 有科研經(jīng)歷 有二區(qū)文章 +10 | rare12345 2026-03-18 | 10/500 |
|
|---|---|---|---|---|
|
[考研] 一志愿 西北大學 ,070300化學學碩,總分287,雙非一本,求調(diào)劑。 +3 | 晨昏線與星海 2026-03-19 | 3/150 |
|
|
[考研] 321求調(diào)劑 +7 | 何潤采123 2026-03-18 | 7/350 |
|
|
[考研] 346求調(diào)劑[0856] +3 | WayneLim327 2026-03-16 | 6/300 |
|
|
[考研] 一志愿中海洋材料工程專碩330分求調(diào)劑 +7 | 小材化本科 2026-03-18 | 7/350 |
|
|
[考研] 286求調(diào)劑 +6 | lemonzzn 2026-03-16 | 9/450 |
|
|
[考研] 288求調(diào)劑,一志愿華南理工大學071005 +4 | ioodiiij 2026-03-17 | 4/200 |
|
|
[考研] 考研求調(diào)劑 +3 | 橘頌. 2026-03-17 | 4/200 |
|
|
[考研] 考研化學學碩調(diào)劑,一志愿985 +4 | 張vvvv 2026-03-15 | 6/300 |
|
|
[考研] 275求調(diào)劑 +4 | 太陽花天天開心 2026-03-16 | 4/200 |
|
|
[考研]
|
zhouzhen654 2026-03-16 | 3/150 |
|
|
[考研] [導師推薦]西南科技大學國防/材料導師推薦 +3 | 尖角小荷 2026-03-16 | 6/300 |
|
|
[考研] 藥學383 求調(diào)劑 +3 | 藥學chy 2026-03-15 | 4/200 |
|
|
[考研] 中科院材料273求調(diào)劑 +4 | yzydy 2026-03-15 | 4/200 |
|
|
[考研] 085600材料與化工 求調(diào)劑 +13 | enenenhui 2026-03-13 | 14/700 |
|
|
[考研] 一志愿哈工大材料324分求調(diào)劑 +5 | 閆旭東 2026-03-14 | 5/250 |
|
|
[考研] 330求調(diào)劑 +3 | ?醬給調(diào)劑跪了 2026-03-13 | 3/150 |
|
|
[考研] [0860]321分求調(diào)劑,ab區(qū)皆可 +4 | 寶貴熱 2026-03-13 | 4/200 |
|
|
[考研] 求調(diào)劑 +5 | 一定有學上- 2026-03-12 | 5/250 |
|
|
[考研] 070303一志愿西北大學學碩310找調(diào)劑 +3 | d如愿上岸 2026-03-13 | 3/150 |
|