24小时热门版块排行榜    

Znn3bq.jpeg
查看: 2167  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考博] 云南大学材料与能源学院解琳课题组钙钛矿博士招生 +4 光伏爱好者 2026-05-17 7/350 2026-05-24 10:20 by 光伏爱好者
[基金申请] 西安交大新媒学院副院长用撤稿论文结题 +3 bjvtcliu 2026-05-24 5/250 2026-05-24 10:16 by kudofaye
[教师之家] 论文撤稿了 +3 bjvtcliu 2026-05-24 5/250 2026-05-24 10:06 by Equinoxhua
[考博] 26/27申博自荐 10+4 ZXW0202 2026-05-22 9/450 2026-05-24 08:47 by bjvtcliu
[硕博家园] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +3 hvkbtfonbv 2026-05-23 3/150 2026-05-24 08:01 by 9ps9vgkqva
[硕博家园] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +3 pmo95bazuy 2026-05-23 7/350 2026-05-24 06:35 by fpo5ljpv91
[基金申请] 河北省自然科学基金 +5 Peterchao 2026-05-18 7/350 2026-05-23 16:57 by articlefan
[基金申请] 揭秘青基评审内幕:几个A才能顺利中标 +3 国自然国社科中 2026-05-23 4/200 2026-05-23 15:37 by 2000zf36392
[基金申请] 青B发送上会通知了吗 +5 chemBioBro 2026-05-22 7/350 2026-05-23 12:35 by zhuifengzhy
[考博] 博士申请 +3 焦晓明 2026-05-21 3/150 2026-05-23 11:26 by mlc840311
[论文投稿] 投稿求助,期刊 +4 希冀,有书读 2026-05-20 8/400 2026-05-22 10:16 by 希冀,有书读
[文学芳草园] 献血感触 +7 呀呀好傻 2026-05-19 13/650 2026-05-21 20:15 by 呀呀好傻
[基金申请] 面上本子正文33页,违规吗?会被低分嘛? +14 1234567wang 2026-05-17 16/800 2026-05-21 17:58 by 脆脆的饼干
[基金申请] 国自然评分 +4 无名者登山 2026-05-20 5/250 2026-05-21 16:35 by swuq
[基金申请] 国自然上会要求 +7 无名者登山 2026-05-18 11/550 2026-05-21 15:50 by draco1987
[基金申请] 提交了我也来说说感想 +9 fummck 2026-05-20 10/500 2026-05-21 14:17 by draco1987
[基金申请] 评审有感 +15 popular289 2026-05-18 26/1300 2026-05-21 10:35 by 西葫芦炒鸡蛋
[有机交流] 反应很差,大量原料没有反应 5+3 Mr.Zot 2026-05-19 8/400 2026-05-20 22:19 by Equinoxhua
[考博] 博士申请 +5 星…… 2026-05-18 6/300 2026-05-18 23:49 by 糊糊涂涂好
[硕博家园] 我在等一个没有答案的答案 +3 Love_MH 2026-05-17 3/150 2026-05-18 02:22 by 竹林孤影
信息提示
请填处理意见