24小时热门版块排行榜    

Znn3bq.jpeg
汕头大学海洋科学接受调剂
查看: 2141  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 085600材料与化工329分求调剂 +19 叶zilin 2026-04-13 20/1000 2026-04-14 00:23 by 福农资环_环境基
[考研] 310求调剂 +15 666真好 2026-04-11 17/850 2026-04-13 22:27 by pies112
[考研] 调剂求收留 +31 果然有我 2026-04-10 32/1600 2026-04-13 21:35 by gretl
[考研] 085801电气专硕272求调剂 +12 电气李 2026-04-13 13/650 2026-04-13 21:12 by gretl
[考研] +10 李多米lee. 2026-04-12 11/550 2026-04-12 22:58 by yuyin1233
[考研] 一志愿西北工业大学289 085602 +33 yang婷 2026-04-10 34/1700 2026-04-12 08:11 by Art1977
[考研] 305求调剂 +6 77Qi 2026-04-07 6/300 2026-04-12 02:30 by 秋豆菜芽
[考研] 化工调剂求导师收留!一志愿失利,踏实肯干,有植物提取科研经历 +20 yzyzx 2026-04-09 21/1050 2026-04-12 00:12 by 小小小小啦啦啦
[考研] 求调剂,一志愿大连理工大学354分 +5 雨声余生 2026-04-11 6/300 2026-04-11 16:12 by 雨声余生
[考研] 283求调剂 +22 那个噜子 2026-04-09 22/1100 2026-04-11 10:41 by 逆水乘风
[考研] 中药学调剂 初试324 +4 洋甘菊、 2026-04-10 6/300 2026-04-11 09:41 by gong120082
[考研] 0854调剂 +4 长弓傲 2026-04-09 4/200 2026-04-11 09:18 by 猪会飞
[考研] 368求调剂 +3 17385968172 2026-04-10 3/150 2026-04-10 20:12 by 电子奥德彪
[考研] 085404,285分求调剂 +12 薇薇考研 2026-04-07 14/700 2026-04-09 23:10 by parmtree
[考研] 材料专硕初试分332一志愿西北工业大学, +12 故人?? 2026-04-09 12/600 2026-04-09 18:34 by Ccclqqq
[论文投稿] 求助文献原文 10+3 18500821399 2026-04-08 3/150 2026-04-09 16:56 by 北京莱茵润色
[考研] 311求调剂 +6 surte 2026-04-08 13/650 2026-04-09 14:00 by surte
[考研] 086004 求调剂 309 +7 Yin DY 2026-04-08 7/350 2026-04-09 13:59 by Delta2012
[考研] 材料工程专业日语生求调剂 +9 111623 2026-04-07 9/450 2026-04-07 23:31 by 一只好果子?
[考研] 一志愿西南090202求调剂 +4 在线求有学上 2026-04-07 4/200 2026-04-07 19:47 by biomichael
信息提示
请填处理意见