±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 2080  |  »Ø¸´: 6

ChemiAndy

ľ³æ (ÕýʽдÊÖ)


[ÇóÖú] DFT ScanÖ®ºóʹÓÃMP2¼ÆËãÄÜÁ¿£¬ÈçºÎ½¨Á¢ÅúÁ¿ÊäÈëÎļþ£¿

ÈçÌ⣬ʹÓÃB3LYP ScanÓÅ»¯Á˺ܶ๹ÐÍ£¬È»ºóÐèҪʹÓÃMP2ÒÀ´Î¼ÆËãËùÓй¹Ð͵ĽáºÏÄÜ¡£ÓÉÓÚµãºÜ¶à£¬Ò»¸öÒ»¸ö¹¹Ðͽ¨Á¢ÊäÈëÎļþ²¢ÔËÐÐÌ«Âé·³¡£ÇëÎÊÓÐûÓмòµ¥µÄ°ì·¨½¨Á¢Ò»¸öÊäÈëÎļþʵÏÖÉÏÊö¹¦ÄÜ£¿Ð»Ð»¡£
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

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

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

ZDBWHZ

½ð³æ (ÕýʽдÊÖ)

ȥѧѧshell°É
2Â¥2011-12-30 00:02:54
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

ChemiAndy

ľ³æ (ÕýʽдÊÖ)


лл£¬ÕýÔÚ¸ãShell
3Â¥2011-12-31 01:28:46
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

zeozhou

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

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

¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
ChemiAndy(½ð±Ò+20): ¡ï¡ï¡ïºÜÓаïÖú ºÃÖ÷Ò⣬ÎÒÊÔÊÔ 2012-01-02 14:04:16
¿ÉÒÔ³¢ÊÔÔÚÊäÈëÖÐʹÓÃ
----link1---
½«¹¹Ð͸ô¿ª¡£È»ºó£¬¿ÉÒÔ°ÑËùÓй¹ÐͶ¼·Åµ½Ò»¸öInputÖÐ
×¢Òâmp2ͨ³£chkÎļþ±È½Ï´ó£¬Èç¹ûµ£ÐÄÊä³öÎļþÌ«´óµÄ»°£¬¿ÉÒÔ¾ù·ÖΪ¼¸¸öÊäÈëÎļþÍê³É

²»ÖªµÀÕâ¸ö·½·¨Êʲ»ÊʺÏÄ㣿
4Â¥2011-12-31 17:27:31
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

ChemiAndy

ľ³æ (ÕýʽдÊÖ)


¡ï ¡ï ¡ï ¡ï ¡ï
Сºì¶¹(½ð±Ò+5): ¸Ðл·ÖÏí 2012-01-16 21:43:23
дÁËÒ»¸öbash½Å±¾£¨Ö»ÄÜÔÚlinux, bashÀàÐ͵ÄshellÏÂÔËÐУ©£¬¹©²Î¿¼£º

ÏÂÃæµÄ½Å±¾°Ñ¸ß˹MP2µ¥µãScan(×¢Òâ²»ÊÇScanÓÅ»¯)Éú³ÉµÄÊä³öÎļþÖеĽṹȫ²¿¶Á³ö£¬Éú³ÉDFTBËùÐèµÄÊäÈëÎļþ¡£Äã¿ÉÒÔÐÞ¸ÄËüʵÏÖÆäËüÄ¿µÄ¡£
ÒýÓûØÌû:

#!/bin/bash

#

# 1. Extract 21 configurations from scan-calculation of gaussian

# 2. Create 21 DFTB 'gen' files

# 3. Create 21 tinker 'xyz' files (TBA)

#

# Xijun Wang, Jan. 5, 2012

# xijun(at)cermm.concordia.ca

# Ref:1.Cu G. Phung, Gaustool, http://www.ccl.net/cca/software/UNIX/gaussian-utilities/README



MOL='g-w'   // here you name your system

NATOM=13    // here you control how many atoms in the system

NMOL=21    //  here you control how many configurations will be read from the gaussian file

echo "MOL name is $MOL, NMOL is $MOL, NATOM is $NATOM"



rm $MOL*   // delete residue files of previous running



# Extract configurations from gaussian output file;

# Only Z-matrix orientation coordinates will be extracted;

sed '/Z-Matrix orientation/,/Distance/!d' $1 >> temp1

echo "Gaussian structure has been extracted ..."



# Delete un-useful lines

grep -v 'Num' temp1|grep -v 'Dis'|grep -v '\-\-\-'|grep -v 'Z'|grep -v 'Center' >> temp2

echo "Some lines have been deleted ..."



# Replace element number with their types: 6-C; 7-N; 1-H; 8-O;

# Examine the gaussian file for details of the replace below:

sed -i -e 's/6           0 /C /g' -e 's/7           0 /N /g' \

       -e 's/1           0 /H /g' -e 's/8           0 /O /g'  temp2

echo "Element number has been replaced by element name ..."



# change element type: C-1; N-2; H-3; O-4;

sed -i -e 's/C/1/g' -e 's/N/2/g' -e 's/H/3/g' -e 's/O/4/g' temp2

echo "Element name have been replaced by number in order of C, N, H, O ..."



# Separate temp2 into 21 files with name g-w.xx.gen

for ((IMOL=0;IMOL<$NMOL;IMOL++)); do

  let  m=13*$IMOL+1

  let  n=$m+$NATOM-1

  let  fn=$IMOL+1

# Add the first two lines to the gen file

  echo "  $NATOM C" > $MOL.$fn.gen   

  echo "  C N H O" >> $MOL.$fn.gen

  echo "Print from lines $m to line $n into file $MOL.$fn.gen..."

  sed -n''"$m"','"$n"'p' temp2 >> $MOL.$fn.gen

done

rm temp*

exit



This script only works for gausian output of single-point scan calculations. PAY ATTENTION that it does not work for optimization calc. since all structures during the optimization will be output.

Use of the script: Save it with name like g2gen.sh

$ chmod +x g2gen.sh           // make it executable

$ g2gen.sh gaussianfile.out      // replace "gaussianfile.out" with your gaussian output file

Send me email if you have problem.
[/FONT]

http://hi.baidu.com/xijunw/blog/ ... 6efb5dfbf2c01f.html
5Â¥2012-01-16 10:21:54
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

ChemiAndy

ľ³æ (ÕýʽдÊÖ)


¡ï ¡ï ¡ï ¡ï ¡ï
Сºì¶¹(½ð±Ò+5): ¸Ðл²ÎÓëÓ¦Öú 2012-01-16 21:43:36
ÁíÍâÒ»¸ö¸ü¼ÓͨÓõãµÄ½Å±¾

¸Ã½Å±¾Äܹ»¶ÁÈ¡Gaussian03/09Êä³öÎļþÖеÄ×îºóÒ»¸ö½á¹¹£¬Éú³Éxyz×ø±êÎļþ£¬È»ºóÀûÓÃopenBabelת»»³ÉGaussianÊäÈëÎļþ¡£Òò´ËʹÓÃǰÇëÈ·±£°²×°OpenBabelÏÈ¡£

1. Éú³ÉµÄgaussianÊäÈëÎļþΪCartessian×ø±ê¡£ÓûµÃµ½Z-Matrix×ø±êµÄÊäÈëÎļþ£¬¿ÉÐÞ¸ÄBabelÐÐΪ¡°babel -ixyz $name.xyz -ogzmat $name.gjf¡±

2. ÓÉÓÚÐèÒªÌæ»»Ô­×ÓÐòÊýΪԭ×ÓÔªËØÃû³Æ£¬¶øÕâÀïֻת»»C,H,N,O,ClµÈ5¸öÔªËØ£¬Òò´Ë£¬ÄãµÄÌåϵÈç¹û°üº¬ÆäËüÔªËØ£¬Çë·ÂÕÕÔ­¸ñʽÐÞ¸ÄÆäÖеġ°# Change the numbers into elements names¡±²¿·Ö£¬Æäʵ¾ÍÊÇÔÚÄÇÒ»¾äÖÐÌí¼Ógsub(ÔªËØÐòºÅ,"ÔªËØÃû³Æ",$2);¼´¿É£¨Ë³ÐòÎ޹أ©£¬±ðÍüÁË;ºÅ¡£ÆäÊµÔªËØÐòºÅ/Ãû³Æ×ª»»Ò²¿ÉÒÔ´ÓÊä³öÎļþÖÐÌáÈ¡¡£Ö»ÊÇÔÝûʱ¼äÍê³ÉÕâÒ»²½¡£
ÒýÓûØÌû:


#!/bin/bash
#
# Xijun wang, 2012.01.14
# xijun(at)gmail.com

# get the prefix of the gaussian output file
name=`echo $1|sed "s/\..*$//"`

# Find charge and multiplicity, get the first value in case multiple results found
charge=`awk '/Charge =/{print $3}' $1|awk 'NR==1'`
multip=`awk '/Charge =/{print $6}' $1|awk 'NR==1'`

# Find the block of the coordination, delete extra lines
sed '/Input orientation/,/Distance/!d' $1| grep -v -E 'I|C|N|D|\-\-\-' > $name.temp.01

# Find how many atoms by reading the first string of the last line
NN=`awk 'END{print $1}' $name.temp.01`

# Output the last structure from all structures found in the output file
tail -$NN $name.temp.01 > $name.temp.02

# Change the numbers into elements names, to be inproved
awk '{gsub(1,"H",$2); gsub(6,"C",$2); gsub(7,"N",$2); gsub(8,"O",$2); gsub(17,"Cl",$2); \
      printf "%5s %10.6f %10.6f %10.6f\n", $2, $4, $5, $6}' $name.temp.02 > $name.temp.03

# Delete previous resulting file
rm $name.xyz $name.gjf

# Create xyz file
echo $NN >> $name.xyz
echo $name >> $name.xyz
cat $name.temp.03 >> $name.xyz

# Transform xyz file into gaussian input file using openBabel
babel -ixyz $name.xyz -ogjf $name.gjf

# Replace some content of the input files
sed '1 i %chk='"$name.chk"'\n%mem=1024MB' $name.gjf > $name.temp.gjf
sed -i 's/#Put Keywords Here, check Charge and Multiplicity./#MP2\/6-311++g** SCRF=(PCM, solvent=water, DoVacuum, ExternalIteration, SMD)/' $name.temp.gjf
sed -i "s/0  1/$charge $multip/" $name.temp.gjf

# Rename to get the final file and delete temp files
mv $name.temp.gjf $name.gjf
rm $name.temp.*

Use of the script:

save it as g2g.sh; add excutable: chmod +x g2g.sh

then: ./g2g gauss.out // replace gauss.out with your output file name.
6Â¥2012-01-16 10:24:18
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

ChemiAndy

ľ³æ (ÕýʽдÊÖ)


ÉÏÃæµÚ¶þ¸ö½Å±¾Éú³ÉµÄgaussianÊäÈëÎļþËù´øµÄÔ¤Éè¹Ø¼ü´ÊÊÇÓÃPCMÄ£ÐͼÆËãÈܼÁ»¯×ÔÓÉÄܵġ£¼ÆËãºóÖ±½Ó¶ÁG(Sol)ÄÇÒ»ÐеÄÊýÖµ¡£
7Â¥2012-01-16 10:30:20
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ ChemiAndy µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] Ò»Ö¾Ô¸±±¾©2£¬²ÄÁÏÓ뻯¹¤308Çóµ÷¼Á +10 ÐܶþÏëÉϰ¶ 2026-04-04 10/500 2026-04-05 05:20 by houyaoxu
[¿¼ÑÐ] 306·Ö²ÄÁÏÓ뻯¹¤Çóµ÷¼Á +6 Àè°ÉÀ²À²ÄãºÜÓÐà 2026-04-03 6/300 2026-04-04 23:59 by ¹û¶³´óÍõ
[¿¼ÑÐ] ¿¼Ñе÷¼Á +6 15615482637 2026-04-04 6/300 2026-04-04 22:43 by yu221
[¿¼ÑÐ] µ÷¼Á +9 19945159693 2026-04-03 10/500 2026-04-04 20:16 by dongzh2009
[¿¼ÑÐ] 298Çóµ÷¼Á +5 zzz£¬£¬r 2026-04-02 8/400 2026-04-04 19:55 by À¶ÔÆË¼Óê
[¿¼ÑÐ] Çóµ÷¼Á +6 Ë·Ë·»° 2026-04-02 7/350 2026-04-04 19:16 by À¶ÔÆË¼Óê
[¿¼ÑÐ] ±¾¿Æ211£¬293·ÖÇëÇóµ÷¼Á +6 Á«²Ë¾ÍÊÇź°É 2026-04-03 7/350 2026-04-04 11:12 by Á«²Ë¾ÍÊÇź°É
[¿¼ÑÐ] 317·Ö Ò»Ö¾Ô¸½­ÄÏ´óѧ »¯Ñ§¹¤³Ìѧ˶ Çóµ÷¼Á +6 YinTai 2026-04-03 6/300 2026-04-03 22:30 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] 294Çóµ÷¼Á +6 Grey_Ey 2026-04-03 6/300 2026-04-03 20:46 by ÐÀϲ777
[¿¼ÑÐ] 070300Ò»Ö¾Ô¸211£¬312·ÖÇóµ÷¼ÁԺУ +16 С»ÆÑ¼±¦ 2026-03-30 16/800 2026-04-03 19:53 by lijunpoly
[¿¼ÑÐ] 293Çóµ÷¼Á +5 ĩδmm 2026-04-02 6/300 2026-04-03 15:20 by Íõ±£½Ü33
[¿¼ÑÐ] 286Çóµ÷¼Á +7 Faune 2026-03-30 7/350 2026-04-03 10:14 by linyelide
[¿¼ÑÐ] ÉúÎïѧ308·ÖÇóµ÷¼Á£¨Ò»Ö¾Ô¸»ª¶«Ê¦´ó£© +6 ÏàÐűػá¹ââÍòÕ 2026-03-31 7/350 2026-04-02 23:16 by JourneyLucky
[¿¼ÑÐ] Ò»Ö¾Ô¸¸´µ©²ÄÁÏ£¬Ó¢Ò»×¨Ë¶£¬×Ü·Ö357µ÷¼Á +4 1050389037 2026-04-02 5/250 2026-04-02 21:40 by dongzh2009
[¿¼ÑÐ] ²ÄÁÏ340·Öµ÷¼Á +7 ÏÄÒ¹Íí·ç_long 2026-04-02 9/450 2026-04-02 21:20 by dongzh2009
[¿¼ÑÐ] 348»·¾³¹¤³Ìµ÷¼Á +3 ÎâÑå׿24k 2026-04-01 3/150 2026-04-02 09:14 by nanaliuyun
[¿¼ÑÐ] 296Çóµ÷¼Á +4 Íô£¡£¿£¡ 2026-03-31 7/350 2026-04-01 22:04 by ¿Í¶ûÃÀµÂ
[¿¼ÑÐ] 350Çóµ÷¼Á +7 °¢¼Ñ¡« 2026-03-31 7/350 2026-04-01 16:12 by yanflower7133
[¿¼ÑÐ] ¡¾µ÷¼Á¡¿Ò»Ö¾Ô¸ÏôóÉúÎïÓëÒ½Ò©µ÷¼Á +3 EchoϺÃ× 2026-03-31 3/150 2026-04-01 08:40 by JourneyLucky
[¿¼ÑÐ] һ־Ը˫һÁ÷»úе285·ÖÇóµ÷¼Á +4 ÐÒÔ˵ÄÈýľ 2026-03-29 5/250 2026-03-29 14:49 by Miko19
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û