24小时热门版块排行榜    

查看: 2286  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[论文投稿] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +4 mzU8LdVQMwOf 2026-11-26 4/200 2026-11-26 23:10 by J9NGDvAaPB9L
[考博] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 1VHV9UkX7sid 2026-11-26 7/350 2026-11-26 23:03 by 9TqLDMgchvGU
[博后之家] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +3 1VHV9UkX7sid 2026-11-26 4/200 2026-11-26 22:57 by N80hyqiqCeT2
[教师之家] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +3 1VHV9UkX7sid 2026-11-26 4/200 2026-11-26 22:56 by N80hyqiqCeT2
[博后之家] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +4 1VHV9UkX7sid 2026-11-26 6/300 2026-11-26 22:52 by N80hyqiqCeT2
[教师之家] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +4 1VHV9UkX7sid 2026-11-26 4/200 2026-11-26 22:48 by N80hyqiqCeT2
[论文投稿] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +4 1VHV9UkX7sid 2026-11-26 6/300 2026-11-26 22:46 by N80hyqiqCeT2
[公派出国] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +5 1VHV9UkX7sid 2026-11-26 9/450 2026-11-26 22:45 by N80hyqiqCeT2
[考博] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 1VHV9UkX7sid 2026-11-26 4/200 2026-11-26 22:41 by N80hyqiqCeT2
[基金申请] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +4 1VHV9UkX7sid 2026-11-26 10/500 2026-11-26 22:41 by N80hyqiqCeT2
[论文投稿] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +3 1VHV9UkX7sid 2026-11-26 7/350 2026-11-26 22:37 by N80hyqiqCeT2
[硕博家园] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 1VHV9UkX7sid 2026-11-26 7/350 2026-11-26 22:35 by N80hyqiqCeT2
[找工作] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +4 1VHV9UkX7sid 2026-11-26 6/300 2026-11-26 21:39 by N80hyqiqCeT2
[找工作] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 1VHV9UkX7sid 2026-11-26 3/150 2026-11-26 21:29 by N80hyqiqCeT2
[考博] 申博求助 10+3 charles.ww 2026-11-24 6/300 2026-11-26 21:27 by 13961805515
[考研] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 1VHV9UkX7sid 2026-11-26 3/150 2026-11-26 21:13 by N80hyqiqCeT2
[考博] ⚽求2027博士自荐 求材料/催化/绿色化学/环境 方向博导 +3 Hutao6 2026-11-23 5/250 2026-11-26 20:29 by greychen00
[考博] 27博士申请自荐-材料 +4 kipmo 2026-11-22 6/300 2026-11-26 20:17 by greychen00
[教师之家] 凡是私自破坏我们组规则的研究生,必须赶走 +6 苏东坡二世 2026-11-20 7/350 2026-11-26 17:42 by beefly
[硕博家园] 博士申请求助 +3 nico77 2026-11-21 3/150 2026-11-26 16:18 by 13961805515
信息提示
请填处理意见