24小时热门版块排行榜    

查看: 1598  |  回复: 5
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

yjhqdm

金虫 (小有名气)

[求助] lammps新手超简单程序疑问已有3人参与

写了一个简单的Lammps程序,但是问题多多,实在无法解答,求助。
我上传了附件,求大侠下载试试!
文件在附件中,执行操作如下:
E:\lammps>lmp_win_no-mpi -in example.input
LAMMPS (12 Apr 2013)
Reading data file ...
  orthogonal box = (-2 -2 -2) to (2 2 2)
  1 by 1 by 1 MPI processor grid
ERROR: Unknown identifier in data file: 1 12.01 (../read_data.cpp:343)
提示在Masses的第一行时错了,好奇怪,求大侠解疑。。。新手。
我在data文件中写了Header了,还是错误。。。。哪位下载下来直接运行看看我哪里错了

Lammps程序为:
variable        vz index 10 20
log                log_${vz}.txt
units                metal
dimension        3
boundary        f p s
atom_style        atomic
read_data        example.data
pair_style        tersoff
pair_coeff        * * SiCGe.tersoff C C C
group                a id == 1 3 5
group                 1 id == 2 4 6
group                 a1 union a 1
neighbor        2.0 bin
neigh_modify        delay 0
minimize        1.0e-6 1.0e-6 1000 1000
fix                 1 all nve
thermo                100
compute                1 all temp
compute                2 all ke/atom
compute         3 all pe/atom
variable        et atom c_2[]+c_3[]
fix                2 all ave/time 1 1 10 c_1 file temp_${vz}.dat
dump                1 all xyz 100 config_${vz}.dat
dump                2 all custom 100 etotal_${vz}.dat v_et
velocity all create 400.0 273237 units box
run                1000
clear
next                vz
jump                example.input

example.dat文件为:
LAMMPS data file

6 atoms

3 atoms types

-2 2 xlo xhi
-2 2 ylo yhi
-2 2 zlo zhi

Masses

1 12.01
2 12.01
3 12.01

Atoms

1 1  1.000000 0.000000 0.000000
2 2  0.500000 0.866025 0.000000
3 3 -0.500000 0.866025 0.000000
4 3 -1.000000 0.000000 0.000000
5 2 -0.500000 -0.866025 0.000000
6 1  0.500000 -0.866025 0.000000

以上data文件我写了Header了。
回复此楼

» 本帖附件资源列表

  • 欢迎监督和反馈:小木虫仅提供交流平台,不对该内容负责。
    本内容由用户自主发布,如果其内容涉及到知识产权问题,其责任在于用户本人,如对版权有异议,请联系邮箱:xiaomuchong@tal.com
  • 附件 1 : example.input
  • 2015-12-03 22:04:00, 686 bytes
  • 附件 2 : example.data
  • 2015-12-03 22:04:05, 342 bytes

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

tang_wei

金虫 (正式写手)

【答案】应助回帖

tang_wei

金虫 (正式写手)

相关版块跳转 我要订阅楼主 yjhqdm 的主题更新
信息提示
请填处理意见