使用英特尔尔集成众核MIC卡进行LAMMPS运算。

LAMMPS即Large-scale Atomic/Molecular Massively Parallel Simulator,可以翻译为大规模原子分子并行模拟器,主要用于分子动力学相关的一些计算和模拟工作,一般来讲,分子动力学所涉及到的领域,LAMMPS代码也都涉及到了。

使用英特尔的集成众核卡MIC进行LAMMPS运算的步骤如下:

  1. 安装MPSS

  2. 安装Intel Composer.

  3. 安装Intel MPI

  4. 解压LAMMPS

  5. 修改makefile文件.

  6. 编译出可执行文件

  7. 传输文件到MIC上。包括需要的库文件。

  8. 配置password-less。免密码登陆。

  9. 使用MIC进行运算

  10. Scp    /opt/intel/impi/4.1.3.049/mic/bin/pmi_proxy mic0:/opt/intel/impi/4.1.3.049/intel64/bin/pmi_proxy

  11. Scp */mic/* mic0:*/intel64/*

  12. 注意文件的永久性问题,scp并不能满足。MIC的文件如果想常驻卡上,一般通过配置common.fileslist


 


注意:ERROR: Invalid atom style一般是需要启用其他的包如:molecule等。


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是使用LAMMPS语言进行分子动力学模拟三维梯度纳米材料的一个示例: ``` # 初始化 units lj dimension 3 boundary p p p atom_style atomic read_data data.gradient # 定义势函数 pair_style lj/cut 2.5 pair_coeff * * 1.0 1.0 2.5 variable ecoh equal -4.0 variable r0 equal 2.5 variable alpha equal 1.0 variable rmin equal {r0}/pow(2,1/6) variable rmax equal {rmin}*{alpha} variable rc equal {rmax}+1.0 neighbor 2.0 bin neigh_modify every 1 delay 0 check yes # 定义梯度势函数 variable Uc1 atom -((x-5.0)**2+(y-5.0)**2)/2.0 variable Uc2 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/4.0)**2 variable Uc3 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/2.0)**2 variable Uc4 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/1.0)**2 variable Uc5 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.5)**2 variable Uc6 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.25)**2 variable Uc7 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.125)**2 variable Uc8 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.0625)**2 variable Uc9 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.03125)**2 variable Uc10 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.015625)**2 variable Uc11 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.0078125)**2 variable Uc12 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.00390625)**2 variable Uc13 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.001953125)**2 variable Uc14 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.0009765625)**2 variable Uc15 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.00048828125)**2 variable Uc16 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.000244140625)**2 variable Uc17 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.0001220703125)**2 variable Uc18 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.00006103515625)**2 variable Uc19 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.000030517578125)**2 variable Uc20 atom -((x-5.0)**2+(y-5.0)**2)/2.0-((z-5.0)/0.0000152587890625)**2 pair_coeff * * v_Uc1 pair_coeff * * v_Uc2 pair_coeff * * v_Uc3 pair_coeff * * v_Uc4 pair_coeff * * v_Uc5 pair_coeff * * v_Uc6 pair_coeff * * v_Uc7 pair_coeff * * v_Uc8 pair_coeff * * v_Uc9 pair_coeff * * v_Uc10 pair_coeff * * v_Uc11 pair_coeff * * v_Uc12 pair_coeff * * v_Uc13 pair_coeff * * v_Uc14 pair_coeff * * v_Uc15 pair_coeff * * v_Uc16 pair_coeff * * v_Uc17 pair_coeff * * v_Uc18 pair_coeff * * v_Uc19 pair_coeff * * v_Uc20 # 定义时间演化 timestep 0.001 thermo 100 thermo_style custom step temp press pe ke etotal vol lx ly lz fix 1 all npt temp 1.0 1.0 100.0 iso 0.0 0.0 1000.0 run 10000 ``` 该程序使用LAMMPS语言,通过分子动力学模拟方法,模拟了三维梯度纳米材料的时间演化过程。程序中包括了读取数据文件、定义势函数、定义梯度势函数、定义时间演化等步骤。程序可以输出模拟过程中的温度、压力、能量等信息,并根据需要进行修改和扩充,实现更加复杂的梯度纳米材料模拟。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值