| 2 | 1/1 | 返回列表 |
| 查看: 2561 | 回復(fù): 1 | ||
| 【懸賞金幣】回答本帖問題,作者周三啊將贈(zèng)送您 10 個(gè)金幣 | ||
周三啊鐵蟲 (小有名氣)
|
[求助]
Mismatched compute in variable formula 已有1人參與
|
|
|
各位大佬好,我在使用ILP勢(shì)計(jì)算兩層原子之間的勢(shì)能,官網(wǎng)上說勢(shì)能計(jì)算可以分為排斥和吸引兩部分,并且可以單獨(dú)訪問,語(yǔ)句如下 This pair style tallies a breakdown of the total interlayer potential energy into sub-categories, which can be accessed via the compute pair command as a vector of values of length 2. The 2 values correspond to the following sub-categories: E_vdW = vdW (attractive) energy E_Rep = Repulsive energy To print these quantities to the log file (with descriptive column headings) the following commands could be included in an input script: compute 0 all pair ilp/graphene/hbn variable Evdw equal c_0[1] variable Erep equal c_0[2] thermo_style custom step temp epair v_Erep v_Evdw 但是我在計(jì)算時(shí)卻出現(xiàn)ERROR: Variable ILP: Mismatched compute in variable formula (../variable.cpp:1580)的錯(cuò)誤。希望大家可以解答一下,謝謝!。。。! ![]() 我的腳本如下: # Initialization units metal boundary p p p atom_style full processors * * 1 # domain decomposition over x and y # System and atom definition # we use 2 atom types so that inter- and intra-layer # interactions can be specified separately # read lammps data file read_data 3.2_.data mass 1 12.0107 # carbon mass (g/mole) | membrane mass 2 12.0107 # carbon mass (g/mole) | adsorbate # Separate atom groups group membrane type 1 group adsorbate type 2 ######################## Potential defition ######################## pair_style hybrid/overlay rebo ilp/graphene/hbn 16.0 #################################################################### pair_coeff * * rebo CH.airebo NULL C # chemical pair_coeff * * ilp/graphene/hbn BNCH.ILP C C # long range #################################################################### # Neighbor update settings neighbor 2.0 bin neigh_modify every 1 neigh_modify delay 0 neigh_modify check yes # calculate the COM variable adsxcom equal xcm(adsorbate,x) variable adsycom equal xcm(adsorbate,y) variable adszcom equal xcm(adsorbate,z) variable adsvxcom equal vcm(adsorbate,x) variable adsvycom equal vcm(adsorbate,y) variable adsvzcom equal vcm(adsorbate,z) #### Simulation settings #### timestep 0.001 velocity adsorbate create 300.0 12345 fix subf membrane setforce 0.0 0.0 0.0 fix thermostat all nve compute 0 all pair rebo compute 1 all pair ilp/graphene/hbn variable REBO equal c_0 variable ILP equal c_1 variable Evdw equal c_1[1] variable Erep equal c_1[2] ############################ # Output thermo 100 thermo_style custom step etotal pe ke v_REBO v_ILP v_Erep v_Evdw temp v_adsxcom v_adsycom v_adszcom v_adsvxcom v_adsvycom v_adsvzcom thermo_modify line one format float %.10f thermo_modify flush yes norm no lost warn dump 1 all custom 100 traj.lammpstrj id mol type xu yu zu dump_modify 1 format line "%7d %3d %3d %15.10g %15.10g %15.10g" flush yes ###### Run molecular dynamics ###### run 1000 |
金蟲 (初入文壇)

| 2 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 接受26屆調(diào)劑生 +15 | 豬豬豬毛 2026-03-06 | 15/750 |
|
|---|---|---|---|---|
|
[碩博家園] 售瀆SCI文章,我:8⊙ 55 1⊙ 54。備注【⊙=0】 +3 | dp852vdfql 2026-03-06 | 5/250 |
|
|
[考博] 售瀆SCI文章,我:8⊙ 55 1⊙ 54。備注【⊙=0】 +4 | ipys00zm58 2026-03-05 | 9/450 |
|
|
[考研] 0817化學(xué)工程與技術(shù)312分求調(diào)劑 +4 | T123 tt 2026-03-04 | 4/200 |
|
|
[考博] 26申博-目前4篇SCI一作 +4 | chen_2024 2026-03-02 | 4/200 |
|
|
[考研] 301求調(diào)劑 +4 | 李LJR 2026-03-04 | 4/200 |
|
|
[考研] 283求調(diào)劑 +10 | 鹿沫笙 2026-03-02 | 11/550 |
|
|
[考研] 347求調(diào)劑 +6 | 啊歐歐歐 2026-03-03 | 8/400 |
|
|
[考研] 中國(guó)科學(xué)技術(shù)大學(xué)材料與化工281求調(diào)劑,有科研和獲獎(jiǎng)經(jīng)歷 +11 | wsxw 2026-03-02 | 12/600 |
|
|
[考研] 281電子信息求調(diào)劑 +5 | jhtfeybgj 2026-03-02 | 9/450 |
|
|
[考研] 材料328求調(diào)劑 +10 | 一個(gè)蘿卜02 2026-03-03 | 10/500 |
|
|
[基金申請(qǐng)] 沒有青基直接申請(qǐng)面上,感覺自己瘋了 +6 | kevin63t 2026-03-02 | 12/600 |
|
|
[考研] 一志愿中科大080500總分324求調(diào)劑 +3 | jorna 2026-03-03 | 6/300 |
|
|
[考研] 295求調(diào)劑 +6 | 等春來, 2026-03-04 | 6/300 |
|
|
[考研] 武理材料工程302調(diào)劑 +3 | Doleres 2026-03-03 | 6/300 |
|
|
[考研] 復(fù)試調(diào)劑 +4 | 杰尼龜aaa 2026-03-03 | 4/200 |
|
|
[考研] 291求調(diào)劑 +4 | Afy123456 2026-03-03 | 7/350 |
|
|
[考研] 271求調(diào)劑 +4 | Ricardo1113 2026-03-02 | 4/200 |
|
|
[考研] 一志愿山東大學(xué)材料與化工325求調(diào)劑 +5 | 半截的詩(shī)0927 2026-03-02 | 5/250 |
|
|
[考研] 一志愿東北大學(xué)材料專碩328,求調(diào)劑 +3 | shs1083 2026-03-02 | 3/150 |
|