24小时热门版块排行榜    

Znn3bq.jpeg
查看: 327  |  回复: 0

forestwolf9291

木虫 (著名写手)

[求助] 计算隧穿谱出问题

将GhG-scf.nc文件放在当前目录下,利用如下脚本计算隧穿谱
结果报错,

Traceback (most recent call last):
  File "", line 21, in ?
OSError: [Errno 2] No such file or directory: 'GhG_trans.vnl'
Traceback (most recent call last):
  File "", line 21, in ?
NLInputOutputError: Unable to access file GhG_trans.vnl
Traceback (most recent call last):
  File "", line 21, in ?
OSError: [Errno 2] No such file or directory: 'GhG_trans.vnl'
Traceback (most recent call last):
  File "", line 21, in ?
OSError: [Errno 2] No such file or directory: 'GhG_trans.vnl'


脚本如下,向vnl文件里写数据先创建是'GhG_trans.vnl'
,为什么报错No such file or directory: 'GhG_trans.vnl'


from ATK.TwoProbe import *

# Restore initial density from old calculation
zero_bias = restoreSelfConsistentCalculation("GhG-scf.nc"

# Create a list of energies from -2 to 5 eV, with 0.1 eV spacing
import numpy
energy_list = numpy.arange(-2.0, 5.0, 0.1)*electronVolt

# Set k-points for transmission
bz_int_param = brillouinZoneIntegrationParameters( (1,5) )

# Calculate transmission spectrum
trans_spectrum = calculateTransmissionSpectrum(
    self_consistent_calculation = zero_bias,
    energies = energy_list,
    brillouin_zone_integration_parameters = bz_int_param
    )

vnl_file = VNLFile("GhG_trans.vnl"
vnl_file.addToSample(trans_spectrum,"GhG_trans"
回复此楼

» 猜你喜欢

已阅   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

找到一些相关的精华帖子,希望有用哦~

科研从小木虫开始,人人为我,我为人人
相关版块跳转 我要订阅楼主 forestwolf9291 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 0831生医工第一轮调剂失败求助 +14 小熊睿睿_s 2026-04-11 18/900 2026-04-16 20:41 by lpl364211
[考研] 271求调剂 +35 2261744733 2026-04-11 37/1850 2026-04-16 13:16 by jiahl2024
[考研] 279学硕食品专业求调剂院校 20+7 孤独的狼爱吃羊 2026-04-12 29/1450 2026-04-16 09:00 by screening
[考研] 求调剂学校 +14 不会吃肉 2026-04-13 16/800 2026-04-15 21:59 by noqvsozv
[考研] 通信工程求调剂!!! +6 zlb770521 2026-04-14 6/300 2026-04-15 20:00 by 学员JpLReM
[考研] 211本科材料化工求调剂 +19 YHLAH 2026-04-11 23/1150 2026-04-14 22:25 by fenglj492
[考研] 化工学硕294分,求导师收留 +32 yzyzx 2026-04-12 36/1800 2026-04-14 17:45 by lhj2009
[考研] 药学305求调剂 +10 玛卡巴卡boom 2026-04-10 10/500 2026-04-14 15:55 by zs92450
[教师之家] 转长聘了 +7 简单化xn 2026-04-13 7/350 2026-04-14 14:50 by xindong
[考研] 考研求调剂 +6 ban班小七 2026-04-11 6/300 2026-04-14 14:06 by 哆啦A梦只是个梦
[考研] 300分求调剂 (085501机械专硕,本科扬大) +9 xu@841019 2026-04-11 10/500 2026-04-14 08:48 by 木木mumu~
[考研] 求调剂 +12 璃茉一定上岸 2026-04-10 13/650 2026-04-14 00:08 by Equinoxhua
[考研] 本科西工大 324求调剂 +5 wysyjs25 2026-04-10 5/250 2026-04-13 23:08 by pies112
[考研] 求调剂,985材料与化工348分 +9 涵竹刘 2026-04-11 14/700 2026-04-13 22:26 by 涵竹刘
[考研] 材料考研调剂 +29 云木达达 2026-04-11 31/1550 2026-04-13 13:32 by lyh鲁老师
[考研] 344 材料专业 求调剂211 无地域要求 +8 hualkop 2026-04-11 8/400 2026-04-12 22:24 by fqwang
[考研] 求调剂,一志愿材料科学与工程985,365分, +8 材化李可 2026-04-11 10/500 2026-04-12 08:42 by 852137818
[考研] 0859,337求调剂 +4 研s. 2026-04-10 4/200 2026-04-11 11:34 by caotw2020
[考研] 085600材料与化工329分求调剂 +16 叶zilin 2026-04-10 16/800 2026-04-11 11:04 by may_新宇
[考研] 346,工科0854求调剂,专硕 +7 moser233 2026-04-10 8/400 2026-04-11 08:52 by 猪会飞
信息提示
请填处理意见