| ²é¿´: 2160 | »Ø¸´: 18 | |||
zhaohuxianľ³æ (ÕýʽдÊÖ)
|
[ÇóÖú]
Çë´óÏÀ°ïæ¿´Ò»ÏÂÏÂÃæµÄ ³ÌÐò
|
||
|
program angle !Define the parameters implicit real*8(a-h,o-z) parameter (x=10000) parameter (y=10000) parameter (radtodeg=57.29577951d0) integer i, j, atomkind, lower, upper integer iatom(x) dimension rv(3,3),temp(6) dimension dx(x,y), dy(x,y), dz(x,y) character(len=132) line, system character*4 lable(x), latom(x,y) double precision lattice logical eof, con, out eof=.false. con=.false. out=.false. ! Check the required files inquire(file='OUTCAR',exist=out) inquire(file='CONTCAR',exist=con) if (.not. out) then print *, "OUTCAR: file not exist." stop end if if (.not. con) then print *, "CONTCAR: file not exist." stop end if ! Read the species in OUTCAR open(unit=out,file='OUTCAR',status='OLD') atomkind=0 do while(.not.eof) read(out,*,end=10) line if(index(line,'VRHFIN').ne.0) then atomkind=atomkind+1 upper=index(line,':')-1 lower=index(line,'=')+1 lable(atomkind)=line(lower:upper) end if end do close(out) 10 continue ! Read POSCAR to process lattice information and amount of each kind open(unit=con,file='CONTCAR',status='OLD') read(con,*,end=20) system read(con,*,end=20) lattice read(con,*,end=20) rv(1,1), rv(2,1), rv(3,1) read(con,*,end=20) rv(1,2), rv(2,2), rv(3,2) read(con,*,end=20) rv(1,3), rv(2,3), rv(3,3) read(con,*,end=20), (iatom(i), i=1,atomkind) ! Process the label list do i=1,atomkind do j=1,iatom(i) latom(j,i)=lable(i) end do end do do i=1,3 temp(i)=0.0 do j=1,3 temp(i)=temp(i)+rv(j,i)**2 end do temp(i)=sqrt(temp(i)) end do a=temp(1) b=temp(2) c=temp(3) do i=1,3 temp(3+i)=0.0 end do do j=1,3 temp(4)=temp(4)+rv(j,2)*rv(j,3) temp(5)=temp(5)+rv(j,1)*rv(j,3) temp(6)=temp(6)+rv(j,1)*rv(j,2) end do temp(4)=temp(4)/(temp(2)*tem(3)) temp(5)=temp(5)/(temp(1)*tem(3)) temp(6)=temp(6)/(temp(1)*tem(2)) alpha=radtodeg*acos(temp(4)) beta=radtodeg*acos(temp(5)) gamma=radtodeg*acos(temp(6)) 20 continue ! Open file for record, and write open (11,file=opsition) write(11,300) system write(11,300) "lattice lengths: " write(11,300) "a=", a write(11,300) "b=", b write(11,300) "c=", c write(11,300) "lattice angles: " write(11,300) "alpha=", alpha write(11,300) "beta=", beta write(11,300) "gamma=", gamma close(con) ! Read OUTCAR to process the coordinates open(unit=out,file='OUTCAR',status='OLD') do while(.not.eof) read(out,*,end=30) line if (index(line,'POSITION').ne.0) then read(out,*,end=30) line do i=1,atomkind do j=1,iatom(i) read(out,*,end=30) dx(j,i), dy(j,i), dz(j,i) write(11,300) latom(j,i), dx(j,i), dy(j,i), dz(j,i) end do end do end if end do close(out) 30 continue 300 format(a4,1x,3f15.9,1x,a4,1x,i4,2(1x,a2),1x,f8.4,1x,i4) stop end ±àÒëͨ¹ýÁË£¬µ«ÊÇÔÆÐĵÄʱºò±¨´í£º --------------------Configuration: adf - Win32 Debug-------------------- Linking... main.obj : error LNK2001: unresolved external symbol _TEM@4 Debug/adf.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. ÀàËÆµÄÁíÍâÒ»¸ö³ÌÐòÔËÐÐûÓÐÎÊÌâ |
» ²ÂÄãϲ»¶
346Çóµ÷¼Á[0856]
ÒѾÓÐ7È˻ظ´
һ־Ըɽ´ó07»¯Ñ§ 332·Ö ËÄÁù¼¶Òѹý ±¾¿ÆÉ½¶«Ë«·Ç Çóµ÷¼Á£¡
ÒѾÓÐ3È˻ظ´
310Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
»úеר˶299Çóµ÷¼ÁÖÁ²ÄÁÏ
ÒѾÓÐ4È˻ظ´
070300»¯Ñ§319Çóµ÷¼Á
ÒѾÓÐ7È˻ظ´
08¹¤¿Æ 320×Ü·Ö Çóµ÷¼Á
ÒѾÓÐ6È˻ظ´
Ò»Ö¾Ô¸Ìì½ò´óѧ»¯Ñ§¹¤ÒÕרҵ£¨081702£©315·ÖÇóµ÷¼Á
ÒѾÓÐ12È˻ظ´
307Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
265Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
301Çóµ÷¼Á
ÒѾÓÐ10È˻ظ´
» ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:
ÄÜ´ø¼ÆËãʱÎÞ·¨ÉèÖÃNBANDS£¬¸÷λ´óÏÀ°ï濴һϣ¡
ÒѾÓÐ7È˻ظ´
Çë´óÏÀ°ïæ¿´Ò»ÏÂÕâ¸ö°ü×°ºÍÄÚº¬µÄÊÇʲô²ÄÁÏ
ÒѾÓÐ7È˻ظ´
ÄÄλ´óÏÀ°ïæ¿´¿´ÎÒ±àµÄNewton²åÖµ³ÌÐò´íÔÚÄÄÀ
ÒѾÓÐ3È˻ظ´
Çë´óÏÀ°ï¿´Ò»ÏÂ74¸öÔ×ÓENCUT²âÊÔÓ¦¸ÃÑ¡ÄĸöÖµ£¿
ÒѾÓÐ9È˻ظ´
Çë¸÷λ´óÏÀ°ïæ¿´Ò»ÏÂÎÒµÄÒºÏàÉ«Æ×ͼ¾¿¾¹ÔõôÁË£¿
ÒѾÓÐ13È˻ظ´
дÁËÒ»¸öfortran90µÄС³ÌÐò£¬±àÒëͨ²»¹ý£¬Çë´óÏÀ°ïæ
ÒѾÓÐ59È˻ظ´
¡¾ÇóÖú¡¿Çë´óÏÀ°ï濴һϻ¹ÔµÄÎÊÌ⣬ллÁË
ÒѾÓÐ7È˻ظ´
¡¾ÇóÖú/½»Á÷¡¿ÓÐ×ö¹ýµ¥¿Ë¡¿¹Ìå´¿»¯µÄ´óÏÀ°ïæ¸ø¿´Ò»ÏÂ
ÒѾÓÐ5È˻ظ´
ÎÄÕ»ØÀ´£¬Çë´óÏÀ°ïæ¿´¿´
ÒѾÓÐ8È˻ظ´
snoopyzhao
ÖÁ×ðľ³æ (Ö°Òµ×÷¼Ò)
- ³ÌÐòÇ¿Ìû: 16
- Ó¦Öú: 157 (¸ßÖÐÉú)
- ¹ó±ö: 0.02
- ½ð±Ò: 18844.7
- ºì»¨: 29
- Ìû×Ó: 3803
- ÔÚÏß: 1422.4Сʱ
- ³æºÅ: 183750
- ×¢²á: 2006-02-13
- רҵ: ÎÛȾÉú̬»¯Ñ§
¡¾´ð°¸¡¿Ó¦Öú»ØÌû
¡ï ¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
jjdg(½ð±Ò+2): ¸ÐлӦÖú 2012-03-08 01:56:40
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
jjdg(½ð±Ò+2): ¸ÐлӦÖú 2012-03-08 01:56:40
|
ÄãµÄ cvf ºÃÇ¿°¡¡¡ Äã¿´Ò»ÏÂÏÂÃæµÄ±àÒë´íÎóÌáʾ£º |
» ±¾ÌûÒÑ»ñµÃµÄºì»¨£¨×îÐÂ10¶ä£©
5Â¥2012-03-07 23:17:32
lurencyj
ľ³æ (ÖøÃûдÊÖ)
- Ó¦Öú: 159 (¸ßÖÐÉú)
- ½ð±Ò: 2869.2
- É¢½ð: 520
- ºì»¨: 8
- ɳ·¢: 10
- Ìû×Ó: 1244
- ÔÚÏß: 148.3Сʱ
- ³æºÅ: 888093
- ×¢²á: 2009-10-29
- ÐÔ±ð: GG
- רҵ: Äý¾Û̬ÎïÐÔI:½á¹¹¡¢Á¦Ñ§ºÍ

2Â¥2012-03-07 21:23:48
zhaohuxian
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 3090.5
- É¢½ð: 2
- Ìû×Ó: 314
- ÔÚÏß: 94.6Сʱ
- ³æºÅ: 474887
- ×¢²á: 2007-12-06
- ÐÔ±ð: MM
- רҵ: Äý¾Û̬ÎïÐÔ II £ºµç×ӽṹ
3Â¥2012-03-07 21:29:07
uboat
Òø³æ (³õÈëÎÄ̳)
- Ó¦Öú: 3 (Ó×¶ùÔ°)
- ½ð±Ò: 397
- Ìû×Ó: 44
- ÔÚÏß: 25.4Сʱ
- ³æºÅ: 627033
- ×¢²á: 2008-10-15
- ÐÔ±ð: GG
- רҵ: ÉúÎïµç×ÓѧÓëÉúÎïÐÅÏ¢´¦Àí
4Â¥2012-03-07 22:25:17
lwk205
ÖÁ×ðľ³æ (ÖøÃûдÊÖ)
- Ó¦Öú: 7 (Ó×¶ùÔ°)
- ½ð±Ò: 11155.9
- É¢½ð: 198
- ºì»¨: 16
- Ìû×Ó: 1655
- ÔÚÏß: 1223.7Сʱ
- ³æºÅ: 648089
- ×¢²á: 2008-11-07
- רҵ: Äý¾Û̬ÎïÐÔ II £ºµç×ӽṹ
¡¾´ð°¸¡¿Ó¦Öú»ØÌû
¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
jjdg(½ð±Ò+1): ¸ÐлӦÖú 2012-03-08 01:56:44
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
jjdg(½ð±Ò+1): ¸ÐлӦÖú 2012-03-08 01:56:44
| ûÓж¨ÒåtemΪÊý×é |
» ±¾ÌûÒÑ»ñµÃµÄºì»¨£¨×îÐÂ10¶ä£©
6Â¥2012-03-08 01:11:45
lurencyj
ľ³æ (ÖøÃûдÊÖ)
- Ó¦Öú: 159 (¸ßÖÐÉú)
- ½ð±Ò: 2869.2
- É¢½ð: 520
- ºì»¨: 8
- ɳ·¢: 10
- Ìû×Ó: 1244
- ÔÚÏß: 148.3Сʱ
- ³æºÅ: 888093
- ×¢²á: 2009-10-29
- ÐÔ±ð: GG
- רҵ: Äý¾Û̬ÎïÐÔI:½á¹¹¡¢Á¦Ñ§ºÍ

7Â¥2012-03-08 03:10:21
zhaohuxian
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 3090.5
- É¢½ð: 2
- Ìû×Ó: 314
- ÔÚÏß: 94.6Сʱ
- ³æºÅ: 474887
- ×¢²á: 2007-12-06
- ÐÔ±ð: MM
- רҵ: Äý¾Û̬ÎïÐÔ II £ºµç×ӽṹ
8Â¥2012-03-08 09:15:35
zhaohuxian
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 3090.5
- É¢½ð: 2
- Ìû×Ó: 314
- ÔÚÏß: 94.6Сʱ
- ³æºÅ: 474887
- ×¢²á: 2007-12-06
- ÐÔ±ð: MM
- רҵ: Äý¾Û̬ÎïÐÔ II £ºµç×ӽṹ
ËÍÏÊ»¨Ò»¶ä |
ллÄúµÄÈÈÐİïÖú£¬¸ù¾ÝÌû×ÓÀïµÄ´íÎóÐÅÏ¢£¬ÎÒ¸ÄÁ˳ÌÐò£º program angle !Define the parameters parameter (x=1000) parameter (y=1000) parameter (radtodeg=57.29577951d0) integer i, j, atomkind, lower, upper integer iatom(x) dimension rv(3,3),temp(6) dimension dx(x,y), dy(x,y), dz(x,y) character(len=132) line, system character*4 lable(x), latom(x,y) double precision lattice logical eof, con, out eof=.false. con=.false. out=.false. ! Check the required files inquire(file='OUTCAR',exist=out) inquire(file='CONTCAR',exist=con) if (.not. out) then print *, "OUTCAR: file not exist." stop end if if (.not. con) then print *, "CONTCAR: file not exist." stop end if ! Read the species in OUTCAR open(unit=12,file='OUTCAR',status='OLD') atomkind=0 do while(.not.eof) read(12,*,end=10) line if(index(line,'VRHFIN').ne.0) then atomkind=atomkind+1 upper=index(line,':')-1 lower=index(line,'=')+1 lable(atomkind)=line(lower:upper) end if end do close(12) 10 continue ! Read POSCAR to process lattice information and amount of each kind open(unit=12,file='CONTCAR',status='OLD') read(12,*,end=20) system read(12,*,end=20) lattice read(12,*,end=20) rv(1,1), rv(2,1), rv(3,1) read(12,*,end=20) rv(1,2), rv(2,2), rv(3,2) read(12,*,end=20) rv(1,3), rv(2,3), rv(3,3) read(12,*,end=20), (iatom(i), i=1,atomkind) ! Process the label list do i=1,atomkind do j=1,iatom(i) latom(j,i)=lable(i) end do end do do i=1,3 temp(i)=0.0 do j=1,3 temp(i)=temp(i)+rv(j,i)**2 end do temp(i)=sqrt(temp(i)) end do a=temp(1) b=temp(2) c=temp(3) do i=1,3 temp(3+i)=0.0 end do do j=1,3 temp(4)=temp(4)+rv(j,2)*rv(j,3) temp(5)=temp(5)+rv(j,1)*rv(j,3) temp(6)=temp(6)+rv(j,1)*rv(j,2) end do temp(4)=temp(4)/(temp(2)*temp(3)) temp(5)=temp(5)/(temp(1)*temp(3)) temp(6)=temp(6)/(temp(1)*temp(2)) alpha=radtodeg*acos(temp(4)) beta=radtodeg*acos(temp(5)) gamma=radtodeg*acos(temp(6)) 20 continue ! Open file for record, and write open (11,file=opsition) write(11,300) system write(11,300) "lattice lengths: " write(11,300) "a=", a write(11,300) "b=", b write(11,300) "c=", c write(11,300) "lattice angles: " write(11,300) "alpha=", alpha write(11,300) "beta=", beta write(11,300) "gamma=", gamma close(con) ! Read OUTCAR to process the coordinates open(unit=16,file='OUTCAR',status='OLD') do while(.not.eof) read(16,*,end=30) line if (index(line,'POSITION').ne.0) then read(16,*,end=30) line do i=1,atomkind do j=1,iatom(i) read(1,*,end=30) dx(j,i), dy(j,i), dz(j,i) write(11,300) latom(j,i), dx(j,i), dy(j,i), dz(j,i) end do end do end if end do close(16) 30 continue 300 format(a4,1x,3f15.9,1x,a4,1x,i4,2(1x,a2),1x,f8.4,1x,i4) stop end |
9Â¥2012-03-08 10:54:37
zhaohuxian
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 3090.5
- É¢½ð: 2
- Ìû×Ó: 314
- ÔÚÏß: 94.6Сʱ
- ³æºÅ: 474887
- ×¢²á: 2007-12-06
- ÐÔ±ð: MM
- רҵ: Äý¾Û̬ÎïÐÔ II £ºµç×ӽṹ
ËÍÏÊ»¨Ò»¶ä |
µ«ÊÇÔËÐеÄʱºòdebug³öÏÖÁËÕâÑùµÄÐÅÏ¢£¬ÏëÎÊÒ»ÏÂΪʲô£¬ÊǵÚÒ»´Î³ÌÐò£¬Ð»Ð»ÈÈÐİïÖú Loaded 'ntdll.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\imagehlp.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\dbghelp.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\secur32.dll', no matching symbolic information found. The program 'E:\SSC_date\temp\ADF\Debug\main.exe' has exited with code 0 (0x0). |
10Â¥2012-03-08 10:55:39













»Ø¸´´ËÂ¥