24小时热门版块排行榜    

查看: 3652  |  回复: 11

张牧童

新虫 (正式写手)

[求助] in文件运行失败(lost atoms)求助!!

刚刚接触lammps没多久,写个小的in文件试试手,运行中丢失原子,无法输出想要的结果~求指导!最好请大神运行下,给点建议!谢谢~
#3d contact simulation
units        metal
dimension     3
boundary      p p s
atom_style    atomic
neighbor      3.0 bin
neigh_modify  delay 5
# create geometry
region box block 0 80 0 80 0 100 units box
create_box 3 box
mass   1 64
mass   2 12
#atom region
region boundary block INF INF INF INF INF 35 units box
region coating block INF INF INF INF 35 40 units box
region tool cone z 40 40 0 18 40 60 units box
lattice fcc 3.6149
create_atoms 1 region boundary units box
lattice diamond 3.57
create_atoms 2 region coating units box
lattice diamond 3.57
create_atoms 3 region tool units box
# Eam Potentials
pair_style eam
pair_coeff * * Ni_u3.eam
# define groups
group boundary region boundary
group mobile subtract all boundary
group tool region tool
set group boundary type 1
set group mobile type 2
#initial velocities
compute new mobile temp/partial 0 0 1
velocity mobile create 0.1 482748 temp new
velocity tool set 0 0 -5 sum yes
# fixes
fix 1 all nve
fix 2 boundary setforce 0 0 0
fix 3 mobile temp/rescale 100 0.1 0.1 0.02 1.0
fix_modify 3 temp new
# Run
timestep 0.01
thermo 100
thermo_modify temp new
dump 1 all atom 500 dump.yahen.lammpstrj
run 2000
回复此楼

» 猜你喜欢

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

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
回帖支持 ( 显示支持度最高的前 50 名 )

王者111111

木虫 (著名写手)

【答案】应助回帖

dimension 3
boundary  s s p
newton  on

units metal
atom_style atomic

neighbor 2.0 bin
neigh_modify delay 5

lattice fcc  3.52 orient x 1 0 0 orient y 0 1 0 orient z 0 0 1
region  box1 block 0 30 0 15 -3.0 3.0  side in units lattice
region  1    sphere 15.0 20.0 0.0 2.0 side in units lattice
region  box2 block 0 30 15 22 -3.0 3.0 units lattice
region  box3 block 0 0.5 15 22 -3.0 3.0
region  box4 block 29.5 30 15 22 -3.0 3.0
region  box  union 5 box1 1 box2 box3 box4 units lattice

create_box   3  box

mass 1 58.71
mass 2 58.71
mass 3 12

region 2 block INF INF INF 0.5 INF INF units lattice
region 3 block INF 0.5  INF INF INF INF units lattice
region 4 block 29.5 INF INF INF INF INF units lattice

create_atoms 1 region box1 units lattice
create_atoms 2 region 2 units lattice
create_atoms 2 region 3 units lattice
create_atoms 2 region 4 units lattice

delete_atoms region box3
delete_atoms region box4

lattice none
lattice diamond 3.57 orient x 1 0 0 orient y 0 1 0 orient z 0 0 1

create_atoms 3  region 1 units lattice

pair_style eam  
pair_coeff * *  Ni_u3.eam

# define groups


group        sphere         region 1
group               lower          region 2
group        leftboundary  region 3
group        rightboundary   region 4

group       boundary union lower rightboundary leftboundary
group                mobile subtract all boundary

set         group mobile type 1
set              group lower type 2
set         group leftboundary type 2
set         group rightboundary  type 2
set         group sphere type 3

# initial velocities


compute        new mobile temp
velocity        mobile create 0.1E-4  482748 temp new

fix                1 all nve
fix                2 boundary  setforce 0.0 0.0 0.0
fix                3 all temp/rescale 100 0.1E-4 0.1E-4 0.1E-7 1.0

# run with indenter

timestep        0.001
variable    y equal "0.8*ylat - step*dt*1.6*ylat"

fix                4 sphere move variable NULL v_y NULL NULL NULL NULL

thermo                100
thermo_modify          temp new

compute stress mobile stress/atom pair
compute displ mobile displace/atom
compute centro mobile centro/atom fcc
compute pe mobile pe/atom

dump 1 all custom 100 dump.*.trajectory id type xs ys zs c_stress[1]  c_stress[2] c_stress[3] c_centro c_pe c_displ[1] c_displ[2] c_displ[3]  c_displ[4]

run                3000

# run without indenter

variable    dy equal "step*dt*1.6*ylat-20.0"

fix                6 sphere move variable NULL v_dy NULL NULL NULL NULL
run                1000
我的源程序!
9楼2013-05-15 23:15:45
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通回帖

ddll_slsl

木虫 (正式写手)

【答案】应助回帖

★ ★
感谢参与,应助指数 +1
jiaoyixiong: 金币+2, 鼓励交流 2013-05-13 21:41:10
应该是有原子太过靠近,造成作用力太大,原子就飞了出去。 先用minimize优化,再跑nve。

也可以看看log文件里面的能量变化,应该有反映的。
2楼2013-05-13 20:47:39
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

王者111111

木虫 (著名写手)

【答案】应助回帖

感谢参与,应助指数 +1
怎么没有设置C的作用势?
3楼2013-05-14 09:22:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

张牧童

新虫 (正式写手)

引用回帖:
2楼: Originally posted by ddll_slsl at 2013-05-13 20:47:39
应该是有原子太过靠近,造成作用力太大,原子就飞了出去。 先用minimize优化,再跑nve。

也可以看看log文件里面的能量变化,应该有反映的。

谢谢指导,我试试~
4楼2013-05-14 12:46:50
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

张牧童

新虫 (正式写手)

引用回帖:
3楼: Originally posted by 王者111111 at 2013-05-14 09:22:51
怎么没有设置C的作用势?

暂时刚接触,编个小程序试试,好多还不懂~
5楼2013-05-14 12:47:25
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

王者111111

木虫 (著名写手)

【答案】应助回帖

我也不懂,我做压痕,但是定义的球形压头在加载过程中会变形,老师说要定义金刚石的势函数,我弄了几天了,还是没进展!
6楼2013-05-14 14:14:13
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

xmcyeyanping

金虫 (初入文坛)

引用回帖:
6楼: Originally posted by 王者111111 at 2013-05-14 14:14:13
我也不懂,我做压痕,但是定义的球形压头在加载过程中会变形,老师说要定义金刚石的势函数,我弄了几天了,还是没进展!

请问下你的球形压头怎么建立的??望能指教
7楼2013-05-15 16:40:10
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

张牧童

新虫 (正式写手)

引用回帖:
7楼: Originally posted by xmcyeyanping at 2013-05-15 16:40:10
请问下你的球形压头怎么建立的??望能指教...

region tool cone z 40 40 0 18 40 60 units box
这个语句就是建立个锥形仿真区域,填充原子即可
8楼2013-05-15 21:20:09
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

王者111111

木虫 (著名写手)

【答案】应助回帖

里面有创建球形压头的命令!
10楼2013-05-15 23:16:27
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 张牧童 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 332求调剂 +3 ydfyh 2026-03-17 3/150 2026-03-19 10:14 by 功夫疯狂
[考研] 材料专业求调剂 +5 hanamiko 2026-03-18 5/250 2026-03-18 20:19 by 星空星月
[考研] 一志愿武理材料305分求调剂 +5 想上岸的鲤鱼 2026-03-18 6/300 2026-03-18 17:53 by 无际的草原
[考研] 26调剂/材料/英一数二/总分289/已过A区线 +7 步川酷紫123 2026-03-13 7/350 2026-03-18 17:12 by 尽舜尧1
[考研] 085601材料工程专硕求调剂 +6 慕寒mio 2026-03-16 6/300 2026-03-18 14:26 by 007_lilei
[考研] 材料,纺织,生物(0856、0710),化学招生啦 +3 Eember. 2026-03-17 9/450 2026-03-18 10:28 by Eember.
[考研] 268求调剂 +6 简单点0 2026-03-17 6/300 2026-03-18 09:04 by 无际的草原
[基金申请] 被我言中:新模板不强调格式了,假专家开始管格式了 +4 beefly 2026-03-14 4/200 2026-03-17 22:04 by 黄鸟于飞Chao
[考研] 268求调剂 +8 一定有学上- 2026-03-14 9/450 2026-03-17 17:47 by laoshidan
[考研] 290求调剂 +6 孔志浩 2026-03-12 11/550 2026-03-17 14:41 by 周舟舟77
[考研] 东南大学364求调剂 +5 JasonYuiui 2026-03-15 5/250 2026-03-16 21:28 by 木瓜膏
[考研] 304求调剂 +5 素年祭语 2026-03-15 5/250 2026-03-16 17:00 by 我的船我的海
[考研] 304求调剂 +4 ahbd 2026-03-14 4/200 2026-03-16 16:48 by 我的船我的海
[考研] 080500,材料学硕302分求调剂学校 +4 初识可乐 2026-03-14 5/250 2026-03-14 21:08 by peike
[考研] 材料与化工 323 英一+数二+物化,一志愿:哈工大 本人本科双一流 +4 自由的_飞翔 2026-03-13 5/250 2026-03-14 19:39 by hmn_wj
[考研] 材料080500调剂求收留 +3 一颗meteor 2026-03-13 3/150 2026-03-14 10:54 by peike
[考研] 材料与化工求调剂一志愿 985 总分 295 +8 dream…… 2026-03-12 8/400 2026-03-13 22:17 by 星空星月
[考研] 求材料调剂 085600英一数二总分302 前三科235 精通机器学习 一志愿哈工大 +4 林yaxin 2026-03-12 4/200 2026-03-13 22:04 by 星空星月
[考研] 求调剂 +5 一定有学上- 2026-03-12 5/250 2026-03-13 18:31 by ms629
[考研] 290求调剂 +7 ADT 2026-03-12 7/350 2026-03-13 15:17 by JourneyLucky
信息提示
请填处理意见