24小时热门版块排行榜    

Znn3bq.jpeg
汕头大学海洋科学接受调剂
查看: 1063  |  回复: 1

创意笑笑

铁虫 (初入文坛)

[求助] 使用read_data后,如何建立模型group?

小弟最近在学习lammps软件进行分子模拟,自己建了一个polycrystal模型,想对模型进行group,但是运行后报错,应该是region语句的格式问题,但是刚开始学习不知道该怎么改,请虫友们指点,附件上是in文件(in.4txt),data文件(fetwin.lmp)和势函数(用的是铝的势函数,随便找了一个,应该不是势函数的问题)


这是in文件

# ------------------------ INITIALIZATION ----------------------------
units                 metal
dimension        3
boundary        p        p        p
atom_style        atomic
# variable latparam equal 4.05

# ----------------------- ATOM DEFINITION ----------------------------
# lattice                fcc ${latparam}
# region                whole block 0 10 0 10 0 10
# create_box        1 whole
# lattice         fcc ${latparam} orient x 1 0 0 orient y 0 1 0 orient z 0 0 1
# create_atoms        1 region whole


read_data       fetwin.data

region   up block -INF INF -INF INF 80 INF
region   low block -INF INF -INF INF -INF 20
group    up  region up
group    low region low

# ------------------------ FORCE FIELDS ------------------------------
pair_style        eam/alloy
pair_coeff        * * Al99.eam.alloy Al

# ------------------------- SETTINGS ---------------------------------
compute csym all centro/atom fcc
compute peratom all pe/atom
compute stress  all stress/atom NULL

######################################

reset_timestep        0
timestep 0.001
velocity all create 300 12345 mom yes rot no
fix 1 all npt temp 300 300 1 iso 0 0 1 drag 1

# Set thermo output
thermo 10
thermo_style custom step lx ly lz press pxx pyy pzz pe temp

run 500
unfix 1

# Store final cell length for strain calculations
variable tmp equal "lx"
variable L0 equal ${tmp}
print "Initial Length, L0: ${L0}"




报错的内容::
PS C:\Users\xxpc-office\Desktop\tensile-twin> lmp_mpi -in in.4txt
LAMMPS (11 Aug 2017)
OMP_NUM_THREADS environment is not set. Defaulting to 1 thread. (../comm.cpp:90)
  using 1 OpenMP thread(s) per MPI task
Reading data file ...
  orthogonal box = (0 0 0) to (100 100 100)
  1 by 1 by 1 MPI processor grid
  reading atoms ...
  84355 atoms
ERROR: Expected floating point parameter in input script or data file (../region_block.cpp:38)
Last command: region   up block -INF INF -INF INF 80 INF


data文件开头内容::

84355  atoms
           1  atom types

      0.00000000     100.00000000  xlo xhi
      0.00000000     100.00000000  ylo yhi
      0.00000000     100.00000000  zlo zhi

Masses

           1   55.84500000    # Fe

Atoms # atomic

         1    1       25.11560200      83.72774500      76.47610300
         2    1       28.27335500      85.32570400      75.71484200
         3    1       22.03587500      80.44872200      74.03231600
         4    1       21.11270900      82.67894400      74.88441700
         5    1       17.95495500      81.08098500      75.64567900
         6    1       23.57573800      82.08823300      75.25421000
         7    1       24.27046200      84.27690300      74.12315500
         8    1       28.96807900      87.51437300      74.58378700
         9    1       30.58597000      87.47282000      72.60063100
        10    1       27.42821600      85.87486200      73.36189300
        11    1       25.81032600      85.91641400      75.34504900
        12    1       32.12583300      89.11233200      73.82252500
        13    1       32.82055700      91.30100100      72.69147000
回复此楼

» 本帖附件资源列表

  • 欢迎监督和反馈:小木虫仅提供交流平台,不对该内容负责。
    本内容由用户自主发布,如果其内容涉及到知识产权问题,其责任在于用户本人,如对版权有异议,请联系邮箱:xiaomuchong@tal.com
  • 附件 1 : Al99.eam.alloy
  • 2018-07-03 10:24:26, 762.16 K
  • 附件 2 : fetwin.lmp
  • 2018-07-03 10:24:28, 5.55 M

» 猜你喜欢

» 本主题相关商家推荐: (我也要在这里推广)

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

创意笑笑

铁虫 (初入文坛)

补充in文件

» 本帖附件资源列表

  • 欢迎监督和反馈:小木虫仅提供交流平台,不对该内容负责。
    本内容由用户自主发布,如果其内容涉及到知识产权问题,其责任在于用户本人,如对版权有异议,请联系邮箱:xiaomuchong@tal.com
  • 附件 1 : in.4txt
  • 2018-07-03 10:30:42, 1.38 K
2楼2018-07-03 10:30:58
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 创意笑笑 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 284求调剂 +13 让我上岸吧阿西 2026-04-09 13/650 2026-04-13 20:23 by babysonlkd
[考研] 327求调剂 +13 Xxjc1107. 2026-04-13 14/700 2026-04-13 19:01 by Xxjc1107.
[考研] 一志愿沪9,326求生物学调剂 +9 刘墨墨 2026-04-13 9/450 2026-04-13 18:59 by lbsjt
[考研] 288求调剂,一志愿华南理工大学071005 +20 ioodiiij 2026-04-08 20/1000 2026-04-13 15:28 by xhd3152
[考研] 0854调剂 +10 长弓傲 2026-04-11 11/550 2026-04-13 10:38 by wp06
[考研] 322求调剂,08工科 +4 今天是个小号 2026-04-08 4/200 2026-04-13 00:20 by baobaoye
[考研] 求调剂 +16 张番茄不炒蛋 2026-04-10 17/850 2026-04-12 13:58 by 熬夜成!
[考研] 331求调剂 +5 王国帅 2026-04-11 5/250 2026-04-11 22:56 by 溪涧流水
[考研] 求调剂 +11 月@163.com 2026-04-07 13/650 2026-04-11 22:55 by BruceLiu320
[考研] 291分调剂 +5 上岸小莹加油 2026-04-09 6/300 2026-04-11 21:06 by 逆水乘风
[考研] 296求调剂 +8 汪!?! 2026-04-09 8/400 2026-04-11 21:02 by 逆水乘风
[考研] 311求调剂 +13 xyp想读书 2026-04-10 14/700 2026-04-11 09:41 by 猪会飞
[考研] 298求调剂 +9 钉叮咚冬瓜 2026-04-07 11/550 2026-04-11 09:35 by zhq0425
[考研] 071000生物学调剂求助 +17 zzzzwww 2026-04-09 20/1000 2026-04-10 15:55 by 求调剂zz
[考研] 285求调剂 +9 AZMK 2026-04-07 11/550 2026-04-10 15:24 by AZMK
[考研] 一志愿中科大070300化学,314分求调剂 +12 wakeluofu 2026-04-09 12/600 2026-04-10 09:57 by liuhuiying09
[考研] 353求调剂 +8 晴空万里air 2026-04-07 8/400 2026-04-09 00:18 by GouQ
[考研] 机械专硕273请求调剂 +6 庚申壬申 2026-04-07 6/300 2026-04-08 22:41 by bljnqdcc
[考研] 22408 266求调剂 +11 masss11222 2026-04-07 14/700 2026-04-08 11:06 by yulian1987
[考研] 机械调剂 +3 zzzbcb 2026-04-07 3/150 2026-04-07 22:19 by hemengdong
信息提示
请填处理意见