Changeset bd2278d for eninteract.f
- Timestamp:
- 09/05/08 11:49:42 (16 years ago)
- Branches:
- master
- Children:
- fafe4d6
- Parents:
- 2ebb8b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
eninteract.f
r2ebb8b6 rbd2278d 1 c*********************************************************************2 cThis file contains eninteract3 c 4 cCopyright 2007 Frank Eisenmenger, U.H.E. Hansmann,5 cJan H. Meinke, Sandipan Mohanty6 c 7 c 8 cDescription: Calculates the interaction energy between molecules9 cThe function assumes that all molecules are up-to-date. If in doubt10 ccall energy first.11 cThe energy function is based on the ECEPP/3 dataset.12 c 13 cTODO: Intermolecular interaction energy for FLEX and ECEPP/21 ! ********************************************************************* 2 ! This file contains eninteract 3 ! 4 ! Copyright 2007 Frank Eisenmenger, U.H.E. Hansmann, 5 ! Jan H. Meinke, Sandipan Mohanty 6 ! 7 ! 8 ! Description: Calculates the interaction energy between molecules 9 ! The function assumes that all molecules are up-to-date. If in doubt 10 ! call energy first. 11 ! The energy function is based on the ECEPP/3 dataset. 12 ! 13 ! TODO: Intermolecular interaction energy for FLEX and ECEPP/2 14 14 real*8 function eninteract() 15 15 … … 26 26 do jres= irsml1(jml), irsml2(jml) 27 27 do iat = iatrs1(ires), iatrs2(ires) 28 cAtom class of current atom28 ! Atom class of current atom 29 29 ity=ityat(iat) 30 cPoint charge at current atom30 ! Point charge at current atom 31 31 cqi=conv*cgat(iat) 32 cCartesian coordinates of current atom32 ! Cartesian coordinates of current atom 33 33 xi=xat(iat) 34 34 yi=yat(iat) … … 36 36 37 37 do jat = iatrs1(jres), iatrs2(jres) 38 cAtom type of partner38 ! Atom type of partner 39 39 jty=ityat(jat) 40 cDifferences in cartesian coordinates40 ! Differences in cartesian coordinates 41 41 xj=xat(jat) 42 42 yj=yat(jat) … … 46 46 yij=yat(jat)-yi 47 47 zij=zat(jat)-zi 48 cCartesian distance and higher powers48 ! Cartesian distance and higher powers 49 49 rij2=xij*xij+yij*yij+zij*zij 50 50 rij4=rij2*rij2 51 51 rij6=rij4*rij2 52 52 rij=sqrt(rij2) 53 cAre we using a distance dependent dielectric constant?53 ! Are we using a distance dependent dielectric constant? 54 54 if(epsd) then 55 55 sr=slp*rij … … 58 58 ep = 1.0d0 59 59 end if 60 cCoulomb interaction60 ! Coulomb interaction 61 61 eyeli=eyeli+cqi*cgat(jat)/(rij*ep) 62 cIf the two atoms cannot form a hydrogen bond use 6-12 Lennard-Jones potential62 ! If the two atoms cannot form a hydrogen bond use 6-12 Lennard-Jones potential 63 63 if (ihbty(ity,jty).eq.0) then 64 64 eyvwi=eyvwi+aij(ity,jty)/(rij6*rij6) 65 #-cij(ity,jty)/rij665 & -cij(ity,jty)/rij6 66 66 else 67 cFor hydrogen bonding use 10-12 Lennard-Jones potential67 ! For hydrogen bonding use 10-12 Lennard-Jones potential 68 68 eyhbi=eyhbi+ahb(ity,jty)/(rij6*rij6) 69 #-chb(ity,jty)/(rij6*rij4)69 & -chb(ity,jty)/(rij6*rij4) 70 70 endif 71 71 enddo
Note:
See TracChangeset
for help on using the changeset viewer.