Znn3bq.jpeg
²é¿´: 2204  |  »Ø¸´: 2

ÄÎÂäÖ®Ò¹

ľ³æ (ÕýʽдÊÖ)

[ÇóÖú] ¹ØÓÚlammps ÖÊÐÄËÙ¶Èvcm£¨£©ÈçºÎÊä³öÎÊÌâ

ÐÂÊÖ¸Õѧ£¬ÒªÊä³öÖÊÐÄËÙ¶È ÏëÓÃvcmÕâ¸öº¯Êý  ¸ù¾Ý˵Ã÷Êé ÎÒÏȶ¨ÒåÁ˱äÁ¿ variable  v_m  equal  vcm(motion,v_m)  motionÊÇÒ»¸ögroup È»ºóÊä³ö  dump     v_data motion cfg 10 dump.snap.*.cfg $v_m   ¿ÉÄܺܶàÓï·¨´íÎó   manualÀïÃævcm£¨group£¬dim£©Ç°ÃæÓ¦¸ÃÊǶ¨ÒåµÄ×飬ºóÃæµÄ×Ô±äÁ¿²»ÖªµÀÊÇʲô¶¨ÁË£¬Ò²²»ÖªµÀ¸ÃÔõôÊä³ö
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

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

bluewhale

Ìú¸Ëľ³æ (ÕýʽдÊÖ)

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

¡ï ¡ï ¡ï ¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
ÔÂÖ»À¶: ½ð±Ò+2, ¸Ðлָµ¼£¡ 2013-11-01 08:35:56
ÄÎÂäÖ®Ò¹: ½ð±Ò+2, ¡ïÓаïÖú 2013-11-01 09:10:33
²ÎÕÕÏÂÃæµÄÀý×Ó£º

heated Brownian particle

# typical input script used to investigate the Brownian motion of a heated nanoparticle. The diffusion coefficient is computed as the plateau value of the integral of the velocity autocorrelation function. Details in:
# L. Joly, S. Merabia and J.-L. Barrat, EPL 94, 50007 (2011)
# http://iopscience.iop.org/0295-5075/94/5/50007/

# the data file is generated by the perl script 'data.pl'.
# fix ave/sph is similar to fix ave/spatial but using spherical bins (enclosed sources might be broken with latest lammps versions).

# to apply a rescaling thermostat only to liquid atoms lying beyond 15 sigma from the center of the particle (see article for details), fix recenter is used to constrain the center-of-mass of the particle to remain at the origin, with keyword 'shift all' so that it does not alter the dynamics of the system.

atom_style bond
read_data data.brown

group liq type 1
group sol type 2
region far sphere 0.0 0.0 0.0 15.9 side out units box
region int1 sphere 0.0 0.0 0.0 14.4 side out units box
region int2 sphere 0.0 0.0 0.0 15.9 units box
region int intersect 2 int1 int2 units box
region ins sphere 0.0 0.0 0.0 14.4 units box
compute Tsol sol temp/com
compute Tfar liq temp/region far
compute Tint liq temp/region int
group far region far
group int region int
group ins region ins
group insliq intersect ins liq

neigh_modify delay 0 every 1 check yes
pair_style lj/cut 2.5
pair_modify shift yes
bond_style fene
special_bonds fene
mass * 1.0
pair_coeff * * 1.0 1.0
bond_coeff * 30.0 1.5 1.0 1.0

variable ts equal step
variable vx equal vcm(sol,x)-vcm(liq,x)
variable vy equal vcm(sol,y)-vcm(liq,y)
variable vz equal vcm(sol,z)-vcm(liq,z)
fix 3 all print 5 "${ts} ${vx} ${vy} ${vz}" file print.brown screen no title "# ts vx vy vz"
fix 4vx all ave/correlate 5 2401 1200000 v_vx type full ave running start 200000 file cvx.brown
fix 4vy all ave/correlate 5 2401 1200000 v_vy type full ave running start 200000 file cvy.brown
fix 4vz all ave/correlate 5 2401 1200000 v_vz type full ave running start 200000 file cvz.brown

thermo_style custom step cpu c_Tsol c_Tint c_Tfar press vol
thermo 1000
compute KEatom all ke/atom
variable Tatom atom (2.0/3.0)*c_KEatom
fix 5 all ave/sph 100 2000 200000 x origin 0.1 density/number v_Tatom units box file sph.brown

fix 1 liq nph aniso 0.015 0.015 5.0 dilate partial
fix 1far liq temp/rescale 1 0.75 0.75 0.0 1.0
fix_modify 1far temp Tfar
fix 1int liq temp/rescale 1 0.75 0.75 0.0 1.0
fix_modify 1int temp Tint
fix 1sol sol nvt temp 3.5 3.5 0.5
fix_modify 1sol temp Tsol

variable vol equal vol
fix avevol all ave/time 10 8000 160000 v_vol
variable l equal 0.5*((f_avevol)^(1./3.))

fix 2 sol recenter 0.0 0.0 0.0 shift all units box
velocity sol create 0.75 36582 dist gaussian mom yes rot yes
velocity int create 0.75 36582 dist gaussian mom yes rot yes
velocity far create 0.75 36582 dist gaussian mom yes rot yes
velocity insliq create 0.75 36582 dist gaussian mom yes rot yes
run 160000

unfix 1
fix 1 liq nve
fix dxyz liq deform 1 x final -$l $l y final -$l $l z final -$l $l units box
unfix 2
fix 2 sol recenter 0.0 0.0 0.0 shift all units box
run 10000
unfix dxyz
run 30000

#variable F equal 10.0
#variable Fs equal $F/count(sol)
#fix 9s sol addforce ${Fs} 0.0 0.0
#variable Fl equal -$F/count(liq)
#fix 9l liq addforce ${Fl} 0.0 0.0
#unfix 2
#fix 2 sol recenter 0.0 0.0 0.0 shift all units box

run 12000000
2Â¥2013-10-31 20:45:20
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

ÄÎÂäÖ®Ò¹

ľ³æ (ÕýʽдÊÖ)

ÒýÓûØÌû:
2Â¥: Originally posted by bluewhale at 2013-10-31 20:45:20
²ÎÕÕÏÂÃæµÄÀý×Ó£º

heated Brownian particle

# typical input script used to investigate the Brownian motion of a heated nanoparticle. The diffusion coefficient is computed as the plateau value of ...

ÊÇcomputeÊä³öÊý¾Ý°É  ÎÒ¾À½áÔÚdumpÉÏÁË
3Â¥2013-11-01 09:11:14
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ ÄÎÂäÖ®Ò¹ µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] ÉúÎïѧ308Çóµ÷¼Á +4 ÏàÐűػá¹ââÍòÕ 2026-04-11 4/200 2026-04-12 11:48 by babysonlkd
[¿¼ÑÐ] µçÆø¹¤³Ìר˶320Çóµ÷¼Á +5 СÂé×Ó111 2026-04-10 5/250 2026-04-12 10:47 by zhouyuwinner
[¿¼ÑÐ] 289 ·Ö105500ҩѧר˶Çóµ÷¼Á(ÕÒBÇøÑ§Ð£) +6 °×ÔÆ123456789 2026-04-09 8/400 2026-04-10 21:13 by zhouxiaoyu
[¿¼ÑÐ] 284Çóµ÷¼Á +19 èó@@ 2026-04-06 21/1050 2026-04-10 21:12 by zhouxiaoyu
[¿¼ÑÐ] 347²ÄÁÏר˶Çóµ÷¼Á +19 zj8215216 2026-04-06 19/950 2026-04-10 09:36 by 690616278
[¿¼ÑÐ] 085404£¬285·ÖÇóµ÷¼Á +12 Þ±Þ±¿¼ÑÐ 2026-04-07 14/700 2026-04-09 23:10 by parmtree
[¿¼ÑÐ] ²ÄÁϵ÷¼Á +10 18815505510 2026-04-09 11/550 2026-04-09 17:07 by 544594351
[¿¼ÑÐ] Çóµ÷¼Á²ÄÁÏ¿ÆÑ§Ó빤³ÌÒ»Ö¾Ô¸985³õÊÔ365·Ö +5 ²Ä»¯Àî¿É 2026-04-08 5/250 2026-04-09 17:00 by Lilly_Li
[¿¼ÑÐ] ²ÄÁÏÓ뻯¹¤×¨Ë¶306·ÖÕÒºÏÊʵ÷¼Á +27 ²×º£ÇáÖÛe 2026-04-06 28/1400 2026-04-08 22:06 by wdyheheeh
[¿¼ÑÐ] 285Çóµ÷¼Á +12 AZMK 2026-04-05 18/900 2026-04-08 20:43 by ÄæË®³Ë·ç
[¿¼ÑÐ] 298Çóµ÷¼Á +4 manman511 2026-04-05 4/200 2026-04-08 16:50 by tjzhao
[¿¼ÑÐ] Ò»Ö¾Ô¸ÄϾ©º½¿Õº½Ìì´óѧ ²ÄÁÏÓ뻯¹¤329·ÖÇóµ÷¼Á +11 Mr. Z 2026-04-05 12/600 2026-04-08 16:15 by luoyongfeng
[¿¼ÑÐ] 264Çóµ÷¼Á +11 ÂóС¶£µ± 2026-04-07 11/550 2026-04-08 16:05 by Ò»Ö»ºÃ¹û×Ó?
[¿¼ÑÐ] »¯Ñ§0703-Ò»Ö¾Ô¸211-338·ÖÇóµ÷¼Á +10 vants 2026-04-05 11/550 2026-04-08 16:02 by screening
[¿¼ÑÐ] µç×ÓÐÅÏ¢346 +4 zuoshaodian 2026-04-08 4/200 2026-04-08 11:54 by zzucheup
[¿¼ÑÐ] 307Çóµ÷¼Á +14 ³¬¼¶ÒÁ°º´óÍõ 2026-04-06 14/700 2026-04-08 07:03 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] Çóµ÷¼Á +11 wwwwabcde 2026-04-07 11/550 2026-04-07 23:16 by JourneyLucky
[¿¼ÑÐ] 22408 µ÷¼Á²ÄÁÏ +7 ÎÒ½Ðez 2026-04-06 8/400 2026-04-07 17:12 by À¶ÔÆË¼Óê
[¿¼ÑÐ] 307Çóµ÷¼Á +3 Youth@@ 2026-04-07 3/150 2026-04-07 09:25 by СºÚ²»ÅÂÄÑ
[¿¼ÑÐ] 22408 331·ÖÇóµ÷¼Á +4 y__1 2026-04-06 4/200 2026-04-06 17:26 by ÍÁľ˶ʿÕÐÉú
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û