²é¿´: 1381  |  »Ø¸´: 3

ЦЦ³î

½ð³æ (СÓÐÃûÆø)

δ֪

[ÇóÖú] ÈçºÎ°ÑlammpsµÄ¹ì¼£Îļþת»¯ÎªÊÓÆµÄØ£¿ ÒÑÓÐ2È˲ÎÓë

ÈçÌ⣬лл£¡
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:

ÓÐÖ¾Õߣ¬Ê¾¹³É¡£
ÒÑÔÄ   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

Èã´ËÎÞÉù

ľ³æ (СÓÐÃûÆø)

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

¡ï ¡ï ¡ï ¡ï ¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
ÔÂÖ»À¶: ½ð±Ò+2, ¸Ðлָµ¼ 2014-01-11 07:32:05
ЦЦ³î: ½ð±Ò+3, ¡ï¡ï¡ïºÜÓаïÖú 2014-01-11 14:40:13
ÔÚvmdÖÐÓиöÖÆ×÷ÊÓÆµµÄ£¬°ÑͼÏñÎļþµ¼³öÀ´£¬ÔÙÀûÓÃVMÖÆ×÷¡£

[ ·¢×ÔСľ³æ¿Í»§¶Ë ]
ÈËÀàһ˼¿¼£¬Éϵ۾ͷ¢Ð¦¡£
2Â¥2014-01-11 00:17:13
ÒÑÔÄ   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

lsloneil

ר¼Ò¹ËÎÊ (ÕýʽдÊÖ)

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

¡ï ¡ï ¡ï ¡ï ¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
ÔÂÖ»À¶: ½ð±Ò+2, ¹ÄÀø½»Á÷ 2014-01-12 09:24:59
ЦЦ³î: ½ð±Ò+3, ¡ï¡ï¡ïºÜÓаïÖú 2014-01-12 11:09:23
------- To view a lammps trajectory in VMD --------





1) Build a PSF file for use in viewing with VMD.



This step works with VMD 1.9 and topotools 1.2.  

(Older versions, like VMD 1.8.6, don't support this.)





a) Start VMD

b) Menu  Extensions->Tk Console

c) Enter:



(I assume that the the DATA file is called "system.data"



   topo readlammpsdata system.data full

   animate write psf system.psf



2)



Later, to Load a trajectory in VMD:



  Start VMD

  Select menu: File->New Molecule

-Browse to select the PSF file you created above, and load it.

  (Don't close the window yet.)

-Browse to select the trajectory file.

  If necessary, for "file type" select: "LAMMPS Trajectory"

  Load it.



   ----  A note on trajectory format: -----

If the trajectory is a DUMP file, then make sure the it contains the

information you need for pbctools (see below.  I've been using this

command in my LAMMPS scripts to create the trajectories:



  dump 1 all custom 5000 DUMP_FILE.lammpstrj id mol type x y z ix iy iz



It's a good idea to use an atom_style which supports molecule-ID numbers

so that you can assign a molecule-ID number to each atom.  (I think this

is needed to wrap atom coordinates without breaking molecules in half.)



Of course, you don't have to save your trajectories in DUMP format,

(other formats like DCD work fine)  I just mention dump files

because these are the files I'm familiar with.



3) -----  Wrap the coordinates to the unit cell

          (without cutting the molecules in half)



a) Start VMD

b) Load the trajectory in VMD (see above)

c) Menu  Extensions->Tk Console

d) Try entering these commands:



    pbc wrap -compound res -all

    pbc box



    ----- Optional ----

    Sometimes the solvent or membrane obscures the view of the solute.

    It can help to shift the location of the periodic boundary box

    To shift the box in the y direction (for example) do this:



    pbc wrap -compound res -all -shiftcenterrel {0.0 0.15 0.0}

    pbc box -shiftcenterrel {0.0 0.15 0.0}



    Distances are measured in units of box-length fractions, not Angstroms.



    Alternately if you have a solute whose atoms are all of type 1,

    then you can also try this to center the box around it:



    pbc wrap -sel type=1 -all -centersel type=2 -center com



4)

    You should check if your periodic boundary conditions are too small.

    To do that:

       select Graphics->Representations menu option

       click on the "Periodic" tab, and

       click on the "+x", "-x", "+y", "-y", "+z", "-z" checkboxes.



5) Optional: If you like, change the atom types in the PSF file so

   that VMD recognizes the atom types, use something like:



sed -e 's/   1    1      /   C    C      /g' < system.psf > temp1.psf

sed -e 's/   2    2      /   H    H      /g' < temp1.psf  > temp2.psf

sed -e 's/   3    3      /   P    P      /g' < temp2.psf  > system.psf



(If you do this, it might effect step 2 above.)


ÒÔÉÏΪlammps mailing listijλ´óÉñµÄ»ØÌû¹ØÓÚvmdÈçºÎ¶ÁÈëlammps trajectory£¬¶ÁÈëÖ®ºó¾Í¿ÉÒÔÖÆ×÷¶¯»­ÁË¡£
3Â¥2014-01-12 00:23:33
ÒÑÔÄ   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
VMD
4Â¥2014-01-14 17:14:18
ÒÑÔÄ   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ ЦЦ³î µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[»ù½ðÉêÇë] ÄÄλ¸ßÈËÖÐÁË£¬°Ñ²éѯµ½µÄ½ØÍ¼Ìù³öÀ´ÈÃÎÒ¿´¿´£¬ÈÃÎÒ³¤³¤¼ûʶ +5 yuleib84 2026-08-26 6/300 2026-08-28 00:02 by yudaoqian88
[»ù½ðÉêÇë] »ù½ð²»ÖУ¬¹²Ãã +10 eulota 2026-08-26 10/500 2026-08-27 17:23 by lqllinqiaoli
[»ù½ðÉêÇë] »ù½ðδÖУ¬ÕâÖÖ´ð¸´ÊÇÄ£°åÂ𣿠+5 zhaosm1982 2026-08-27 6/300 2026-08-27 16:00 by lfy8008
[»ù½ðÉêÇë] Ôõô¿´Çà»ùÖÐÁËûÓа¡ +5 Ò¶¾Å΢ 2026-08-26 5/250 2026-08-27 10:35 by l_zh2008
[ÎÄѧ·¼²ÝÔ°] ÃÎÏë +3 myrtle 2026-08-26 3/150 2026-08-27 10:01 by angelyueyi
[»ù½ðÉêÇë] Ϊʲô ¹ú¼Ê(µØÇø)ºÏ×÷Óë½»Á÷ÏîÄ¿ ûÓзŰñ£¿ 10+3 majunge000 2026-08-26 11/550 2026-08-27 08:42 by ±±¾©À³Òð±à¼­
[½Ìʦ֮¼Ò] ÊÛSCIÒ»ÇøÎÄÕ£¬ÎÒ:8.O.551.O.5.4,¿ÆÄ¿È«,¿ÉÙ¤¼± +3 LIbGuocjEEYw 2026-08-26 4/200 2026-08-27 04:33 by Ie9AyIAvGbvs
[˶²©¼ÒÔ°] ÊÛSCIÒ»ÇøT0PÎÄÕ£¬ÎÒ:8.O.55.1.O.54,¿ÆÄ¿ÆëÈ«,¿É+¼± +3 LIbGuocjEEYw 2026-08-26 4/200 2026-08-27 02:01 by Ie9AyIAvGbvs
[»ù½ðÉêÇë] ÎÒ²»Àí½â£¡ +15 Edward_pc 2026-08-26 23/1150 2026-08-26 20:34 by zzuzxg
[»ù½ðÉêÇë] 2026ÄêµÄ¹ú¼ÒÉç¿Æ»ù½ðÏîĿͨѶÆÀÉóµÄйæÔòÓëж¯Ïò¡¢ÐÂÌôÕ½ +7 process2012 2026-08-23 10/500 2026-08-26 19:23 by hmhminy
[»ù½ðÉêÇë] 2026¹ú×ÔÈ»º¯ÆÀ·Ñµ½ÕË +22 ÑòÑü°å 2026-08-21 25/1250 2026-08-26 15:00 by zuocuiping
[»ù½ðÉêÇë] ÄÜ·ñÍ˳ö²ÎÓëµÄÃæÉÏÏîÄ¿½â³ýÏÞÏî +23 koalala 2026-08-24 26/1300 2026-08-26 14:29 by ±¦±´³æ×Ó
[»ù½ðÉêÇë] ³öÀ´ÁË +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by ±¦±´³æ×Ó
[»ù½ðÉêÇë] ÏîÄ¿ÐÅÏ¢ºÍ¾­·ÑÐÅÏ¢ÔÚϵͳÀï¶¼¿ÉÒÔ¿´µ½ÁË +6 wittyboy 2026-08-26 14/700 2026-08-26 10:55 by wittyboy
[»ù½ðÉêÇë] ¹úºÏ¿É²éÁË +3 paperzjh 2026-08-26 3/150 2026-08-26 10:41 by LemmonTr
[Ö°³¡ÈËÉú] ѧÉúײ¼û¸¨µ¼Ô±ËÍÍâÂô£¬µÚ¶þÌìÈ«°à¶¼³ÁĬÁË +3 ¾¨ÓãÈÚ½ð_Õã½­_É 2026-08-22 3/150 2026-08-26 09:01 by zzuzxg
[»ù½ðÉêÇë] ¹úºÏÏÖÔڲ鲻µ½ÁËÂ𣿠+10 chengyan1220 2026-08-24 20/1000 2026-08-26 08:57 by peasantsprig
[»ù½ðÉêÇë] Å£À´£¡Ã×À´£¡ÃæÀ´£¡ +8 beefly 2026-08-26 8/400 2026-08-26 08:37 by xuzhipiao
[»ù½ðÉêÇë] ÔÚ¼á±ù»¹¸Ç×ű±º£µÄʱºò£¬ÎÒ¿´µ½ÁËÅ­·ÅµÄ÷»¨¡£ (½ð±Ò+10) +6 ziyangfang 2026-08-25 9/450 2026-08-25 20:26 by huagongfeihu
[»ù½ðÉêÇë] Ã÷ÌìÓ¦¸Ã¿É²éÁË£¡£¿ +6 chengyan1220 2026-08-23 6/300 2026-08-25 19:45 by zfd97
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û