24小时热门版块排行榜    

查看: 3629  |  回复: 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的回帖

王者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的回帖
查看全部 12 个回答

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的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 268求调剂 +6 一定有学上- 2026-03-14 7/350 2026-03-17 10:14 by Sammy2
[考研] 11408 一志愿西电,277分求调剂 +3 zhouzhen654 2026-03-16 3/150 2026-03-17 07:03 by laoshidan
[考研] 0854控制工程 359求调剂 可跨专业 +3 626776879 2026-03-14 9/450 2026-03-16 17:42 by 626776879
[考研] 304求调剂 +4 ahbd 2026-03-14 4/200 2026-03-16 16:48 by 我的船我的海
[考研] 0703化学调剂 290分有科研经历,论文在投 +7 腻腻gk 2026-03-14 7/350 2026-03-16 10:12 by houyaoxu
[考研] 328求调剂 +3 5201314Lsy! 2026-03-13 6/300 2026-03-14 15:31 by hyswxzs
[考研] 330求调剂 +3 ?酱给调剂跪了 2026-03-13 3/150 2026-03-14 10:13 by JourneyLucky
[考研] 求调剂,一志愿江南大学环境工程085701 +3 Djdjj12 2026-03-10 4/200 2026-03-14 00:31 by JourneyLucky
[考研] 308求调剂 +3 是Lupa啊 2026-03-10 3/150 2026-03-14 00:30 by JourneyLucky
[考研] 材料371求调剂 +9 鳄鱼? 2026-03-11 11/550 2026-03-13 22:53 by JourneyLucky
[考研] 材料专硕288分求调剂 一志愿211 +4 在家想你 2026-03-11 4/200 2026-03-13 22:49 by JourneyLucky
[考研] 304求调剂 +6 Mochaaaa 2026-03-12 7/350 2026-03-13 22:18 by 星空星月
[考研] 26调剂/材料/英一数二/总分289/已过A区线 +6 步川酷紫123 2026-03-13 6/300 2026-03-13 21:59 by 星空星月
[考研] 290求调剂 +7 ADT 2026-03-12 7/350 2026-03-13 15:17 by JourneyLucky
[考研] 工科调剂 +4 Jiang191123! 2026-03-11 4/200 2026-03-13 15:15 by Miko19
[考研] 一志愿山大07化学 332分 四六级已过 本科山东双非 求调剂! +3 不想理你 2026-03-12 3/150 2026-03-13 14:18 by JourneyLucky
[考研] 277求调剂 +4 anchor17 2026-03-12 4/200 2026-03-13 11:15 by 白夜悠长
[考研] 321求调剂(食品/专硕) +3 xc321 2026-03-12 6/300 2026-03-13 08:45 by xc321
[考研] 081200-11408-276学硕求调剂 +3 崔wj 2026-03-12 4/200 2026-03-12 19:33 by 求调剂zz
[考研] 大连大学化学专业研究生调剂 +3 琪久. 2026-03-10 8/400 2026-03-11 10:02 by 琪久.
信息提示
请填处理意见