24СʱÈÈÃŰæ¿éÅÅÐаñ    

Znn3bq.jpeg
²é¿´: 2609  |  »Ø¸´: 1
¡¾ÐüÉͽð±Ò¡¿»Ø´ð±¾ÌûÎÊÌ⣬×÷ÕßÖÜÈý°¡½«ÔùËÍÄú 10 ¸ö½ð±Ò

ÖÜÈý°¡

Ìú³æ (СÓÐÃûÆø)

[ÇóÖú] Mismatched compute in variable formula ÒÑÓÐ1È˲ÎÓë

¸÷λ´óÀкã¬ÎÒÔÚʹÓÃILPÊÆ¼ÆËãÁ½²ãÔ­×ÓÖ®¼äµÄÊÆÄÜ£¬¹ÙÍøÉÏËµÊÆÄܼÆËã¿ÉÒÔ·ÖΪÅųâºÍÎüÒýÁ½²¿·Ö£¬²¢ÇÒ¿ÉÒÔµ¥¶À·ÃÎÊ£¬Óï¾äÈçÏÂ

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


µ«ÊÇÎÒÔÚ¼ÆËãʱȴ³öÏÖ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
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

zhizhuceyici

½ð³æ (³õÈëÎÄ̳)

¡¾´ð°¸¡¿Ó¦Öú»ØÌû

ÄãºÃ ÎÒÒ²Óöµ½ÁËÒ»ÑùµÄÎÊÌâ
ÎҸоõÓ¦¸ÃÊÇÒòΪʹÓÃÁËеÄouyangµÄÊÆ Òò´Ëilp/graphene/hbnµÄ¼ÆËãÖ»ÊÇÒ»¸ö±êÁ¿¶ø·ÇÊý×é
ÔçÆÚµÄexampleÀïÃæµÄÀý×ÓºÍmanualÒ»Ñù£¬·Ö³ÉÁËÁ½Ïî
µ«ÊÇÎÒĿǰÏÂÔØµÄlammpsÀïÃæµÄexampleµÄÀý×ÓÒѾ­Ö»¼ÆËãÒ»Ïî
compute   2 all pair ilp/graphene/hbn
variable  EILP     equal c_2
ÎÒÃDz»¼Æ½ÏÂóËëµÄ±¥ÂúÊÇÔÚÄÄÒ»Ìì¡£
2Â¥2020-10-19 17:11:11
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ ÖÜÈý°¡ µÄÖ÷Ìâ¸üÐÂ
²»Ó¦Öú È·¶¨»ØÌûÓ¦Öú (×¢Ò⣺ӦÖú²Å¿ÉÄܱ»½±Àø£¬µ«²»ÔÊÐí¹àË®£¬±ØÐëÌîд15¸ö×Ö·ûÒÔÉÏ)
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] ¿ÒÇëÓÐѧУÊÕÁô +4 ¿Â»´È» 2026-04-12 4/200 2026-04-15 20:33 by ºÚ¿Æ¼¼»¨¸ÚÑÒ
[¿¼ÑÐ] 307ÖÐÒ½¿¼Ñе÷¼Á +4 ÓÚÒÔ²ÉÞÀ 2026-04-14 4/200 2026-04-15 19:14 by ANÁ÷800
[¿¼ÑÐ] 335Çóµ÷¼Á +19 ÏëÉϰ¶Ñ½£¡£¡ 2026-04-12 21/1050 2026-04-14 16:23 by Art1977
[¿¼ÑÐ] ±¾¿Æ211£¬±¨¿¼085601-310·Ö +16 ararak 2026-04-13 16/800 2026-04-14 14:55 by Delta2012
[¿¼ÑÐ] ¿¼ÑÐÇóµ÷¼Á +6 ban°àСÆß 2026-04-11 6/300 2026-04-14 14:06 by ¶ßÀ²AÃÎÖ»ÊǸöÃÎ
[¿¼ÑÐ] 105500ҩѧÇóµ÷¼Á +4 x_skys 2026-04-12 4/200 2026-04-14 13:37 by rndfc
[¿¼ÑÐ] 085408¹âµçÐÅÏ¢¹¤³Ìר˶355Ò»Ö¾Ô¸³¤´º¹â»úËùµ÷¼Á +6 Íõymaa 2026-04-13 13/650 2026-04-14 11:33 by Íõymaa
[¿¼ÑÐ] Çóµ÷¼Á +3 ÎÒ°®¸ßÊý¸ßÊý°®Î 2026-04-12 3/150 2026-04-14 01:00 by Íõ¬Bè±
[¿¼ÑÐ] 302Çóµ÷¼Á +10 Ò×£¡? 2026-04-13 10/500 2026-04-13 19:04 by lbsjt
[¿¼ÑÐ] Ò»Ö¾Ô¸Î÷½»»úеר˶Çóµ÷¼Á +9 ÇóÉϰ¶µÄСÍõ 2026-04-10 9/450 2026-04-13 16:08 by jiangguiquan11
[¿¼ÑÐ] ÉúÎïѧµ÷¼Á£¬Ò»Ö¾Ô¸Î÷ÄÏ´óѧ348£¬TopÆÚ¿¯Ò»Çø¶þ×÷¡¢¶þÇøÈý×÷£¬ÈýµÈ½±Ñ§½ðÈý´Î +5 candyyyi 2026-04-09 5/250 2026-04-13 09:02 by ¿Éµ­²»¿ÉÍü
[¿¼ÑÐ] Ò»Ö¾Ô¸Õã´óÉúÎï325·ÖÇóµ÷¼Á +9 zysheng 2026-04-12 9/450 2026-04-12 22:31 by yuyin1233
[¿¼ÑÐ] 0860004 Çóµ÷¼Á 309·Ö +9 Yin DY 2026-04-08 9/450 2026-04-11 22:55 by dongdian1
[¿¼ÑÐ] ²ÄÁϹ¤³ÌÈÕÓÉúÇóµ÷¼Á +7 0856?µ÷¼Á 2026-04-10 7/350 2026-04-11 21:33 by À¶ÔÆË¼Óê
[¿¼ÑÐ] 270Çóµ÷¼Á +14 ÑîÀÖ369 2026-04-11 14/700 2026-04-11 20:16 by À¶ÔÆË¼Óê
[¿¼ÑÐ] 342µç×ÓÐÅϢר˶Çóµ÷¼Á +9 ÄãÈÃÎÒÔõôÀóÖ¦ 2026-04-10 10/500 2026-04-11 08:33 by zhq0425
[¿¼ÑÐ] Ò»Ö¾Ô¸±±Àí¹¤298Ó¢Ò»Êý¶þÒÑÉϰ¶£¬¸Ðл¸÷λÀÏʦ +14 Reframe 2026-04-10 16/800 2026-04-10 23:07 by caotw2020
[¿¼ÑÐ] µ÷¼Á +19 СÕÅZA 2026-04-10 20/1000 2026-04-10 22:08 by Öí»á·É
[¿¼ÑÐ] Çóµ÷¼Á +5 ²»»á·ÉµÄÓã@ 2026-04-10 5/250 2026-04-10 19:07 by chemisry
[¿¼ÑÐ] Òѵ÷¼Á +18 ²ñ¿¤Ã¨_ 2026-04-09 19/950 2026-04-09 22:10 by ²ñ¿¤Ã¨_
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û