| 2 | 1/1 | 返回列表 |
| 查看: 2559 | 回復: 1 | ||
| 【懸賞金幣】回答本帖問題,作者周三啊將贈送您 10 個金幣 | ||
周三啊鐵蟲 (小有名氣)
|
[求助]
Mismatched compute in variable formula 已有1人參與
|
|
|
各位大佬好,我在使用ILP勢計算兩層原子之間的勢能,官網(wǎng)上說勢能計算可以分為排斥和吸引兩部分,并且可以單獨訪問,語句如下 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 但是我在計算時卻出現(xiàn)ERROR: Variable ILP: Mismatched compute in variable formula (../variable.cpp:1580)的錯誤。希望大家可以解答一下,謝謝。。。。! ![]() 我的腳本如下: # 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ā)表 | |
|---|---|---|---|---|
|
[考研] 301求調(diào)劑 +7 | 朝天椒的雙馬尾 2026-03-05 | 7/350 |
|
|---|---|---|---|---|
|
[考研] 材料專碩調(diào)劑 +4 | 慕辰123 2026-03-05 | 7/350 |
|
|
[考研] 考研282分求調(diào)劑,接受跨專業(yè) +4 | 劉淄博 2026-03-04 | 7/350 |
|
|
[考研] 271求調(diào)劑 +7 | 月色c 2026-03-05 | 8/400 |
|
|
[考研] 歡迎采礦、地質(zhì)、巖土、計算機、人工智能等專業(yè)的同學報考 +10 | pin8023 2026-02-28 | 13/650 |
|
|
[考研] 283求調(diào)劑 +10 | 鹿沫笙 2026-03-02 | 11/550 |
|
|
[考研] 材料類考研調(diào)劑 +7 | gemmgemm 2026-03-01 | 8/400 |
|
|
[考研] 304求調(diào)劑 +3 | 曼殊2266 2026-03-04 | 3/150 |
|
|
[考研] 中國科學技術大學材料與化工281求調(diào)劑,有科研和獲獎經(jīng)歷 +11 | wsxw 2026-03-02 | 12/600 |
|
|
[考研] 環(huán)境工程專碩307 一志愿211 四六級已過 求調(diào)劑 +5 | ccc! 2026-03-03 | 6/300 |
|
|
[考研] 一志愿西交化工專碩288專業(yè)課93求調(diào)劑 +6 | 好運好運接接 2026-03-04 | 6/300 |
|
|
[考研] 化學 0703求調(diào)劑 總分293 一志愿211 +9 | 土土小蟲 2026-03-03 | 11/550 |
|
|
[考研] 264求調(diào)劑 +8 | 26調(diào)劑 2026-03-03 | 8/400 |
|
|
[考研] 347分電子信息專碩求調(diào)劑 +3 | 咕嘟咕嘟1 2026-03-03 | 3/150 |
|
|
[考研] 085600求調(diào)劑 +4 | LRZZZZZZ 2026-03-02 | 6/300 |
|
|
[考博] 26申博 求博導 +3 | 愛讀書的小帥 2026-02-28 | 5/250 |
|
|
[考研] 化工270求調(diào)劑 +10 | 什么名字qwq 2026-03-02 | 10/500 |
|
|
[考研] 課題組接收材料類調(diào)劑研究生 +6 | gaoxiaoniuma 2026-02-28 | 9/450 |
|
|
[考研] 11408,學碩276求調(diào)劑 +3 | 崔wj 2026-03-02 | 5/250 |
|
|
[考研] 303求調(diào)劑 +5 | 今夏不夏 2026-03-01 | 5/250 |
|