24小时热门版块排行榜    

CyRhmU.jpeg
查看: 3496  |  回复: 10

heibeidedong

木虫 (正式写手)

[求助] 关于lammps中的in文件运行时的错误问题查找

最近刚接触lammps,写了一个in文件,可是出现了一个这样的错误:
ERROR: Unknown command: {\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset134 \'cb\'ce\'cc\'e5;}}
自己弄了半天也没找到 解决方法。首先问一下这个错误该怎样查啊,然后该怎样解决。先谢过了。

[ Last edited by heibeidedong on 2013-1-11 at 11:03 ]
回复此楼
努力提高和完善自己
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
回帖支持 ( 显示支持度最高的前 50 名 )

sdzjc1988

木虫 (小有名气)

引用回帖:
7楼: Originally posted by heibeidedong at 2013-01-11 16:04:09
你的意思是这样写势函数:
pair_style  tersoff
pair_coeff  * * SiC.tersoff Si Si Si C,但我的还是不能运行。...

没有,是这样的,
pair_style  tersoff
pair_coeff  * * SiC.tersoff C

你只有一种原子类型C,没有Si,只需要把C写出来就可以了,你的那种写法是说原子类型有四种,前三种是Si,第四种是C

» 本帖已获得的红花(最新10朵)

8楼2013-01-12 02:03:34
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通回帖

jiaoyixiong

荣誉版主 (职业作家)

【答案】应助回帖

★ ★ ★ ★ ★
感谢参与,应助指数 +1
heibeidedong: 金币+3, 有帮助 2013-01-11 16:44:38
zh1987hs: 金币+2, 谢谢 2013-01-19 14:05:18
Unknown command

你的in文件的命令写的不对,你看看log文件里的介绍

» 本帖已获得的红花(最新10朵)

2楼2013-01-11 13:52:24
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

heibeidedong

木虫 (正式写手)

送鲜花一朵
引用回帖:
2楼: Originally posted by jiaoyixiong at 2013-01-11 13:52:24
Unknown command

你的in文件的命令写的不对,你看看log文件里的介绍

log文件这样写的:LAMMPS (12 Apr 2012)
{\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset134 \'cb\'ce\'cc\'e5;}}
ERROR: Unknown command: {\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset134 \'cb\'ce\'cc\'e5;}}
(input.cpp:203),还是看不懂,求解释。
努力提高和完善自己
3楼2013-01-11 14:09:43
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

ddll_slsl

木虫 (正式写手)

【答案】应助回帖

感谢参与,应助指数 +1
把你的in文件也帖出来。 另外,把log文件整个帖出来
4楼2013-01-11 14:31:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

heibeidedong

木虫 (正式写手)

in文件
#3d indenter simulation with minimization instead of dynamics  

units        metal   
dimension      3
boundary      p s p

atom_style    atomic
neighbor      0.3 bin
neigh_modify  delay 5

# create geometry

lattice       diamond 3.567
region          box block 0 15 0 18 0 20
create_box    1 box
create_atoms  1 box

mass               1 12

#Potential Settings

newton      on
pair_style  tersoff
pair_coeff  * * C.tersoff C

# minimize with indenter

thermo              10
thermo_style custom step press
dump              1  all atom 10 dump.atom
dump_modify  1  scale no

fix          4 all indent 5000.0 sphere 8.0 9.0 23.0 3.0
fix_modify   4 energy yes

#minimize    1.0e-6 1000 1000
minimize     1.0e-6 1.0e-4 1000 1000

fix          4 all indent 5000.0 sphere 8.0 9.0 22.0 3.0
fix_modify   4 energy yes

minimize     1.0e-6 1.0e-4 1000 1000

fix          4 all indent 5000.0 sphere 8.0 9.0 21.5 3.0
fix_modify   4 energy yes

minimize     1.0e-6 1.0e-4 1000 1000

fix          4 all indent 5000.0 sphere 8.0 9.0 20.8 3.0
fix_modify   4 energy yes

minimize     1.0e-6 1.0e-4 1000 1000

fix          4 all indent 5000.0 sphere 8.0 9.0 20.2 3.0
fix_modify   4 energy yes

minimize     1.0e-6 1.0e-4 1000 1000

fix          4 all indent 5000.0 sphere 8.0 9.0 20.0 3.0
fix_modify   4 energy yes

minimize     1.0e-6 1.0e-4 1000 1000

log文件
LAMMPS (12 Apr 2012)
{\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset134 \'cb\'ce\'cc\'e5;}}
ERROR: Unknown command: {\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset134 \'cb\'ce\'cc\'e5;}}
(input.cpp:203)
努力提高和完善自己
5楼2013-01-11 14:37:15
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

sdzjc1988

木虫 (小有名气)

【答案】应助回帖

★ ★
感谢参与,应助指数 +1
heibeidedong: 金币+2, ★★★很有帮助 2013-01-11 16:45:11
你确定势函数是C.tersoff吗?我改成SiC.tersoff以后在我的系统里可以运行.
6楼2013-01-11 15:05:29
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

heibeidedong

木虫 (正式写手)

引用回帖:
6楼: Originally posted by sdzjc1988 at 2013-01-11 15:05:29
你确定势函数是C.tersoff吗?我改成SiC.tersoff以后在我的系统里可以运行.

你的意思是这样写势函数:
pair_style  tersoff
pair_coeff  * * SiC.tersoff Si Si Si C,但我的还是不能运行。
努力提高和完善自己
7楼2013-01-11 16:04:09
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

heibeidedong

木虫 (正式写手)

送鲜花一朵
引用回帖:
8楼: Originally posted by sdzjc1988 at 2013-01-12 02:03:34
没有,是这样的,
pair_style  tersoff
pair_coeff  * * SiC.tersoff C

你只有一种原子类型C,没有Si,只需要把C写出来就可以了,你的那种写法是说原子类型有四种,前三种是Si,第四种是C...

我试试,谢谢。
努力提高和完善自己
9楼2013-01-12 13:08:50
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

莫名。

新虫 (初入文坛)


月只蓝: 金币+1, 鼓励交流! 2014-03-31 17:03:16
楼主问题最后怎么解决的啊?我也遇到了类似的问题。我是照着别人的代码粘贴下来的   结果都有问题 错误信息为:LAMMPS (12 Apr 2013)
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fcharset134 \'cb\'ce\'cc\'e5;}}
ERROR: Unknown command: {\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fcharset134 \'cb\'ce\'cc\'e5;}} (../input.cpp:204)

多多指教啊!我怀疑是写in文件的工具问题,我用记事本和写字板试过,结果两种错误还不一样,记事本直接是unknown command
祸患积于忽微
10楼2014-03-30 23:26:40
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 heibeidedong 的主题更新
信息提示
请填处理意见