24小时热门版块排行榜    

Znn3bq.jpeg
查看: 2166  |  回复: 2

moirakaola

银虫 (小有名气)

[求助] 运行lammps错误——ERROR: Illegal units command

大家好!如题,在运行lammps时,报错:
LAMMPS (9 Dec 2014)
WARNING: OMP_NUM_THREADS environment is not set. (../comm.cpp:89)
  using 1 OpenMP thread(s) per MPI task
ERROR: Illegal units command (../input.cpp:1682)
yhrun: error: cn10249: tasks 0-23: Exited with exit code 1
自己在网上查,但是不知道如何改???还请高手指教,谢谢!
you get the illegal units command, because your
text file is actually not proper 7-bit ASCII text.
several characters that show up as blank characters
are not (in fortran notation) char(32) but rather char(160).
this confuses the input file parser. it has nothing
to do with the choice of units.

下面是我的in文件


#############################################################
## JOB DESCRIPTION                                         ##
#############################################################

# Minimization and Equilibration of structure
# need to edit file names "data.222quartz"


#############################################################
## Initialization                                          ##
#############################################################

units real ;#lj or real or metal or si or cgs or electron or micro or nano
boundary    p p p
atom_style    full ;#before read_data

#############################################################
## Atom definition                                         ##
#############################################################

##lattice construction & pair style
read_data    data.222quartz

## Potencial

#pair_style    lj

#############################################################
## Seting                                                  ##
#############################################################

neighbor    2.0 bin ;#for lj unit
neigh_modify    delay 10


fix    1 all nvt temp 298.0 298.0 100.0
thermo    10
timestep    1 ;#fs

##Output options
dump    222quartz all atom 10 dump.atom

#dump    2 all image 10 image.*.jpg element element &
#    axes yes 0.8 0.02 view 60 -30
#dump_modify    2 pad 3 element Si C

#############################################################
## Run a simulation                                        ##
#############################################################

##Energy minimization

minimize      1.0e-4 1.0e-6 100 1000 ;#etol ftol maxiter maxeval
min_style     cg                     ;#cg or hftn or sd or quickmin or fire
#min_modify   ;#This command sets parameters that affect the energy minimization algorithms selected by the min_style command.

##Molecular dynamics simulation
run      100
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Nater1ver

木虫 (正式写手)

井号前面多了个分号,井号及其后面的内容会被程序无视,但是前面的不行

发自小木虫Android客户端
2楼2019-10-12 19:09:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

moirakaola

银虫 (小有名气)

引用回帖:
2楼: Originally posted by Nater1ver at 2019-10-12 19:09:38
井号前面多了个分号,井号及其后面的内容会被程序无视,但是前面的不行

十分感谢。是我把NAMD和lammps中的一些语法弄混了
3楼2019-10-14 10:41:52
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 moirakaola 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 评审有感 +15 popular289 2026-05-18 24/1200 2026-05-21 06:04 by dandongli
[考博] 云南大学材料与能源学院解琳课题组钙钛矿博士招生 +4 光伏爱好者 2026-05-17 6/300 2026-05-21 01:37 by 17520222914
[有机交流] 反应很差,大量原料没有反应 5+3 Mr.Zot 2026-05-19 8/400 2026-05-20 22:19 by Equinoxhua
[基金申请] 面上本子正文33页,违规吗?会被低分嘛? +11 1234567wang 2026-05-17 13/650 2026-05-20 18:55 by tanfancy
[基金申请] 提交了我也来说说感想 +6 fummck 2026-05-20 6/300 2026-05-20 17:29 by 姜太公烤鱼
[论文投稿] Sci. Bull. 悲剧经验 +6 jyang1999 2026-05-16 7/350 2026-05-20 16:39 by feng6531
[基金申请] 今年审到国自然15份,谈谈感受 +19 国自然国社科中 2026-05-17 20/1000 2026-05-20 14:14 by 仲夏夜的星星
[基金申请] 国自然评分 +3 无名者登山 2026-05-20 4/200 2026-05-20 13:29 by vito刘
[考博] 如果工作了想读博,可以边工作边读全日制嘛? 30+3 铁达火车 2026-05-18 5/250 2026-05-20 09:33 by tfang
[有机交流] 如何实现卤原子转化 +3 BT20230424 2026-05-15 8/400 2026-05-20 09:32 by xtlilibin
[基金申请] 河北省自然科学基金 +3 Peterchao 2026-05-18 3/150 2026-05-20 08:57 by 霸_霸
[文学芳草园] 献血感触 +6 呀呀好傻 2026-05-19 11/550 2026-05-19 22:26 by 而立得乐
[基金申请] 2026山东省优青 +3 luckinging 2026-05-14 4/200 2026-05-19 16:15 by 52wls
[考博] 找博士生导师 +6 小代想上岸 2026-05-15 7/350 2026-05-19 10:22 by free_fisher
[考博] 26/27申博自荐-锂/钠电池方向 5+3 狗头军师. 2026-05-15 4/200 2026-05-19 09:10 by moonboat
[考博] 2026博士还有哪些学校有名额 +7 小王求读研 2026-05-15 8/400 2026-05-19 08:27 by zhyzzh
[考博] 博士申请 +5 星…… 2026-05-18 6/300 2026-05-18 23:49 by 糊糊涂涂好
[基金申请] 国自然上会要求 +5 无名者登山 2026-05-18 9/450 2026-05-18 17:50 by BlakeReary
[有机交流] 求助2,4-二氯-5-嘧啶甲醛的合成方法 20+3 光吃不拉 2026-05-14 6/300 2026-05-16 19:46 by Equinoxhua
[硕博家园] 申请博士 +3 呃?呃 2026-05-15 3/150 2026-05-16 11:01 by a4742549
信息提示
请填处理意见