24小时热门版块排行榜    

查看: 2126  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 354求调剂 +7 Tyoumou 2026-03-18 10/500 2026-03-22 11:11 by 人来盛
[考研] 333求调剂 +5 87639 2026-03-21 7/350 2026-03-21 19:31 by ColorlessPI
[考研] 材料与化工(0856)304求B区调剂 +3 邱gl 2026-03-20 7/350 2026-03-21 19:05 by 15709483992
[考研] 311求调剂 +3 勇敢的小吴 2026-03-20 3/150 2026-03-21 17:40 by ColorlessPI
[考研] 277材料科学与工程080500求调剂 +6 自由煎饼果子 2026-03-16 6/300 2026-03-21 17:21 by 学员8dgXkO
[考研] 材料与化工(0856)304求 B区 调剂 +3 邱gl 2026-03-21 3/150 2026-03-21 13:47 by lature00
[考研] 化学求调剂 +4 临泽境llllll 2026-03-17 5/250 2026-03-21 02:23 by JourneyLucky
[考研] 材料 336 求调剂 +3 An@. 2026-03-18 4/200 2026-03-21 01:39 by JourneyLucky
[考研] 323求调剂 +3 洼小桶 2026-03-18 3/150 2026-03-20 22:54 by JourneyLucky
[考研] 北科281学硕材料求调剂 +5 tcxiaoxx 2026-03-20 5/250 2026-03-20 21:35 by laoshidan
[考研] 260求调剂 +3 朱芷琳 2026-03-20 3/150 2026-03-20 20:35 by 学员8dgXkO
[考研] 353求调剂 +3 拉钩不许变 2026-03-20 3/150 2026-03-20 19:56 by JourneyLucky
[考研] 一志愿中国海洋大学,生物学,301分,求调剂 +5 1孙悟空 2026-03-17 6/300 2026-03-19 23:46 by zcl123
[考研] 一志愿福大288有机化学,求调剂 +3 小木虫200408204 2026-03-18 3/150 2026-03-19 13:31 by houyaoxu
[考研] 085601专硕,总分342求调剂,地区不限 +5 share_joy 2026-03-16 5/250 2026-03-18 14:48 by haxia
[考研] 308求调剂 +4 是Lupa啊 2026-03-16 4/200 2026-03-17 17:12 by ruiyingmiao
[考研] 085601求调剂 +4 Du.11 2026-03-16 4/200 2026-03-17 17:08 by ruiyingmiao
[论文投稿] 有没有大佬发小论文能带我个二作 +3 增锐漏人 2026-03-17 4/200 2026-03-17 09:26 by xs74101122
[考研] 11408 一志愿西电,277分求调剂 +3 zhouzhen654 2026-03-16 3/150 2026-03-17 07:03 by laoshidan
[考研] 中科院材料273求调剂 +4 yzydy 2026-03-15 4/200 2026-03-16 15:59 by Gaodh_82
信息提示
请填处理意见