24小时热门版块排行榜    

查看: 1054  |  回复: 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的回帖
相关版块跳转 我要订阅楼主 创意笑笑 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿070300浙大化学358分,求调剂! +3 酥酥鱼.. 2026-03-21 3/150 2026-03-22 11:31 by 杨杨杨紫
[考研] 生物学一志愿985,分数349求调剂 +4 zxts12 2026-03-21 7/350 2026-03-22 09:57 by zxts12
[考研] 资源与环境 调剂申请(333分) +5 holy J 2026-03-21 5/250 2026-03-21 22:42 by Catalysis25
[考研] 280求调剂 +11 咕噜晓晓 2026-03-18 12/600 2026-03-21 22:40 by ACS Nano——
[考研] 初试 317 +7 半拉月丙 2026-03-20 7/350 2026-03-21 22:26 by peike
[考研] 一志愿深大,0703化学,总分302,求调剂 +4 七月-七七 2026-03-21 4/200 2026-03-21 18:20 by 学员8dgXkO
[考研] 313求调剂 +4 肆叁贰壹22 2026-03-19 4/200 2026-03-21 17:33 by ColorlessPI
[考研] 一志愿山大07化学 332分 四六级已过 本科山东双非 求调剂! +3 不想理你 2026-03-16 3/150 2026-03-21 03:59 by JourneyLucky
[考研] 295求调剂 +4 一志愿京区211 2026-03-18 6/300 2026-03-20 23:41 by JourneyLucky
[考研] 考研调剂求学校推荐 +3 伯乐29 2026-03-18 5/250 2026-03-20 22:59 by JourneyLucky
[考研] 北科281学硕材料求调剂 +5 tcxiaoxx 2026-03-20 5/250 2026-03-20 21:35 by laoshidan
[考研] 一志愿武理材料工程348求调剂 +3  ̄^ ̄゜汗 2026-03-19 4/200 2026-03-20 21:01 by zhukairuo
[考研] 一志愿华中农业071010,总分320求调剂 +3 困困困困坤坤 2026-03-20 3/150 2026-03-20 20:38 by 学员8dgXkO
[考研] 260求调剂 +3 朱芷琳 2026-03-20 3/150 2026-03-20 20:35 by 学员8dgXkO
[考研] 一志愿 南京航空航天大学大学 ,080500材料科学与工程学硕 +5 @taotao 2026-03-20 5/250 2026-03-20 20:16 by JourneyLucky
[考研] 环境工程调剂 +9 大可digkids 2026-03-16 9/450 2026-03-20 17:38 by 醉在风里
[考研] 一志愿中国海洋大学,生物学,301分,求调剂 +5 1孙悟空 2026-03-17 6/300 2026-03-19 23:46 by zcl123
[考研] 生物学调剂招人!!! +3 山海天岚 2026-03-17 4/200 2026-03-19 21:34 by 怎么释怀
[考研] 301求调剂 +4 A_JiXing 2026-03-16 4/200 2026-03-17 17:32 by ruiyingmiao
[考博] 26申博 +4 八6八68 2026-03-16 4/200 2026-03-17 13:00 by 轻松不少随
信息提示
请填处理意见