I'm just compiled the qchem-charmm interface and ran my first QM/MM script provided with charmm package in the test sub-directory - alanine_qchem.inp.
There are a couple of things I don't fully understand.
1)The analytic and finite difference of the first derivative vary considerably for the QM/MM calculation.
2) When I run it with all atoms selected for the QM calculation the forces are very different as compared to when I select all atoms for the MM calculation.
Here is part of the input and output file below. Any insight into this would be greatly appreciated.
..............
read sequ ala 1
gene mpep setup
........
mini abnr nstep 1000 nprint 1000
addl qqh mpep 1 c mpep 1 ca
!---------- Needed to define Q-Chem env. vars. ----------
envi qchemcnt "../data/qchem.inp"
envi qcheminp "q1.inp"
envi qchemexe "qchem"
envi qchemout "qchem.out"
!--------------------------------------------------------
define qm sele atom mpep 1 c .or. atom mpep 1 ot1 -
.or. atom mpep 1 ot2 end
qchem remove sele qm end
...........
energy
...........
scal xcomp = x
scal ycomp = y
scal zcomp = z
scal x = dx
scal y = dy
scal z = dz
open write card unit 1 name @9/test2.frc
write coor card unit 1
* forces after qchem
*
! restore forces
scal x = xcomp
scal y = ycomp
scal z = zcomp
test first tol 0.0 step 0.0005
stop
When it gets to
>test first tol 0.0 step 0.0005I get the following output.
CHARMM> test first tol 0.0 step 0.0005
TESTFD: Parameters: STEP= 0.00050 MASSweighting= 0
TESTFD: The following first derivatives differ by more than TOL= 0.000000
DIM. ATOM ANALYTIC FINITE-DIFF DEVIATION
1 X ( MPEP 1 ALA N ) -25.60395646 -2.81441381 -22.78954265
1 Y ( MPEP 1 ALA N ) -61.48556283 -3.91825670 -57.56730613
1 Z ( MPEP 1 ALA N ) 7.71936465 0.58564852 7.13371613
2 X ( MPEP 1 ALA HT1 ) -15.13274527 -0.64366373 -14.48908153
2 Y ( MPEP 1 ALA HT1 ) 3.52494396 0.30699349 3.21795047
2 Z ( MPEP 1 ALA HT1 ) 1.01922610 -0.52711260 1.54633870
3 X ( MPEP 1 ALA HT2 ) 27.04379801 -0.44955000 27.49334801
3 Y ( MPEP 1 ALA HT2 ) 13.22514800 1.37404358 11.85110442
3 Z ( MPEP 1 ALA HT2 ) -2.25123940 -0.15046120 -2.10077820
4 X ( MPEP 1 ALA HT3 ) -11.81808050 -0.61318582 -11.20489467
4 Y ( MPEP 1 ALA HT3 ) -45.62655549 0.45260243 -46.07915792
4 Z ( MPEP 1 ALA HT3 ) 4.48234812 0.41055298 4.07179514
5 X ( MPEP 1 ALA CA ) 0.02135112 0.02130879 0.00004233
5 Y ( MPEP 1 ALA CA ) -0.11916342 -0.11913049 -0.00003293
5 Z ( MPEP 1 ALA CA ) -0.75963003 -0.75962092 -0.00000911
6 X ( MPEP 1 ALA HA ) 0.89230779 0.55309189 0.33921590
6 Y ( MPEP 1 ALA HA ) 4.84779599 2.03572382 2.81207217
6 Z ( MPEP 1 ALA HA ) -2.63247901 -0.83904761 -1.79343139
7 X ( MPEP 1 ALA CB ) -1.25577086 -0.96197687 -0.29379399
7 Y ( MPEP 1 ALA CB ) -11.71623815 -4.20655012 -7.50968803
7 Z ( MPEP 1 ALA CB ) -3.55996716 -0.50714018 -3.05282697
8 X ( MPEP 1 ALA HB1 ) 0.27721486 0.11549017 0.16172469
8 Y ( MPEP 1 ALA HB1 ) 1.64560931 0.01947563 1.62613368
8 Z ( MPEP 1 ALA HB1 ) 0.25701250 -0.09946911 0.35648161
9 X ( MPEP 1 ALA HB2 ) 0.44623685 0.20086324 0.24537361
9 Y ( MPEP 1 ALA HB2 ) 1.98284551 0.25557868 1.72726683
9 Z ( MPEP 1 ALA HB2 ) 1.19780304 -0.28476115 1.48256418
10 X ( MPEP 1 ALA HB3 ) -0.16279571 0.34492357 -0.50771928
10 Y ( MPEP 1 ALA HB3 ) 2.76551953 0.34327316 2.42224637
10 Z ( MPEP 1 ALA HB3 ) 0.82897966 -0.14127715 0.97025681
11 X ( MPEP 1 ALA C ) -1.65613199 -55.17516611 53.51903412
11 Y ( MPEP 1 ALA C ) 9.16764803 -152.94164515 162.10929318
11 Z ( MPEP 1 ALA C ) 3.23332492 22.48995446 -19.25662953
12 X ( MPEP 1 ALA OT1 ) -12.95704517 46.24019520 -59.19724036
12 Y ( MPEP 1 ALA OT1 ) -26.36381216 -15.76495801 -10.59885415
12 Z ( MPEP 1 ALA OT1 ) 3.90709232 3.78861713 0.11847519
13 X ( MPEP 1 ALA OT2 ) -0.05299862 -35.97013504 35.91713642
13 Y ( MPEP 1 ALA OT2 ) -1.18242367 14.58055076 -15.76297443
13 Z ( MPEP 1 ALA OT2 ) 0.42239897 -1.55231109 1.97471006
14 X ( MPEP 1 ALA QQH1) 0.00000000 49.15219163 -49.15219163
14 Y ( MPEP 1 ALA QQH1) 0.00000000 157.58225640 -157.58225640
14 Z ( MPEP 1 ALA QQH1) 0.00000000 -22.41357257 22.41357257
TESTFD: A total of 0 elements were within the tolerance
Thanks.