Hello,<br><br>Thank you for the help. At the moment I don't feel sufficiently comfortable with writing a qm/mm tutorial, since I just started using cp2k. As soon as things start to crystallize, I'm going to write a draft, that other, more experience people, can polish. Until then it's possible that I'm going to spam the list with other questions :-).<br>
<br>Marius<br><br><div class="gmail_quote">On Wed, Mar 18, 2009 at 8:06 PM, Teodoro Laino <span dir="ltr"><<a href="mailto:teodor...@gmail.com">teodor...@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi Marius,<br>
<br>
we discussed so many time about the documentation that is almost an<br>
exhausted thread :-).<br>
Anyway.. Axel started with the pages on the google forum and they are<br>
exactly in the state he left them..<br>
Why don't you take over and contribute to them?<br>
<br>
Let's just go back now to your question..<br>
When you want to do a PERIODIC QMMM calculation, conceptually speaking<br>
you have to decouple and recouple the QM images with the proper periodicity.<br>
have a look at:<br>
QMMM/QS/regtest-4/crys_per_qmmm.inp, which is true that it is a regtest<br>
but is still ok as a starting point..<br>
<br>
First don't forget in all QMMM runs that use quickstep to add<br>
COMMENSURATE to the MGRID section. It is mandatory!<br>
<br>
Second if you do fully periodic QMMM you don't have to specify any<br>
poisson section in the DFT section (since the decoupling is handled<br>
directly with the re-coupling).<br>
In the CELL section of the QMMM section you have to enable fully<br>
PERIODIC (i.e. delete possible PERIODIC NONE in both cell sections) and<br>
add to the QMMM section the PERIODIC section:<br>
<br>
<br>
&PERIODIC<br>
GMAX 0.5 (is a reasonable value.. but depends on the GEEP expansion ..<br>
USE_GEEP_LIB 10 is good enough)<br>
&MULTIPOLE<br>
EWALD_PRECISION 1.0E-6<br>
RCUT CELL/2 (is good enough)<br>
&END<br>
&END<br>
<br>
at the moment the only way to decouple and recouple is with the<br>
MULTIPOLE scheme.<br>
You can start from these hints and check the set of parameters better<br>
for you.<br>
And in case you have still time and willingness put down a couple of<br>
pages on how to use the QMMM in cp2k.<br>
Future users will be extremely glad. ;-)<br>
Cheers<br>
Teo<br>
<div><div></div><div class="h5"><br>
Marius Retegan wrote:<br>
> Hello again,<br>
><br>
> I was a little hasty with my previous email, since some things are a<br>
> little unclear.<br>
> I looked at the PERIODIC section in QMMM but sincerely that was of<br>
> very little help.<br>
> So if I want to do periodic QMMM, I should remove the decoupling from<br>
> the QM part and add CELL information in the QMMM part. Additionally in<br>
> the QMMM part I should also add PERIODIC. If this is correct, I'm<br>
> stuck since I don't know what parameters to chose next.<br>
><br>
> Usually, I'm not used to asking so many questions regarding the<br>
> softwares that I used, since I try as much as possible to find the<br>
> answer alone. With cp2k (especially the QM/MM part) this is very<br>
> difficult, mostly due to the its particular nature (plainwaves,<br>
> original techniques for computing QM/MM electrostatic potential, etc...).<br>
> I saw many times being said on the list, that the test are hardly<br>
> something to take as viable production runs, since they are made for<br>
> speed. The manual is OK for constructing your input, but it provides<br>
> very little help in choosing the "right" parameters for your system. I<br>
> understand that parameters depend on the system studied, but some<br>
> heads-up on what is safe to use would be nice. What happend with the<br>
> wiki based documentation proposal? I think that having a great<br>
> software is important, but giving new users a place to start is<br>
> equally important.<br>
><br>
> Please don't take this email as hostility towards cp2k (very far from<br>
> my intentions), but more as lines coming from a "frustrated" user who<br>
> tries to see the light at the end of the tunnel :).<br>
><br>
> Thanks<br>
> Marius<br>
><br>
> On Wed, Mar 18, 2009 at 5:18 PM, Marius Retegan<br>
</div></div><div class="im">> <<a href="mailto:marius.s...@gmail.com">marius.s...@gmail.com</a> <mailto:<a href="mailto:marius.s...@gmail.com">marius.s...@gmail.com</a>>> wrote:<br>
><br>
> Thanks a lot for all your comments.<br>
><br>
> Marius<br>
><br>
><br>
> On Wed, Mar 18, 2009 at 5:14 PM, Teodoro Laino<br>
</div><div><div></div><div class="h5">> <<a href="mailto:teodor...@gmail.com">teodor...@gmail.com</a> <mailto:<a href="mailto:teodor...@gmail.com">teodor...@gmail.com</a>>> wrote:<br>
><br>
><br>
> The bug (which was depending on the way of reading natively<br>
> AMBER prmtop<br>
> files) is now fixed in the CVS (thanks for reporting)!<br>
> Just few comments about your QMMM setup.<br>
> 1) The way it is setup you will hardly have a conserved energy<br>
> (you have<br>
> a PERIODIC MM) but you don't use the periodic QMMM version<br>
> (see PERIODIC<br>
> in QMMM). Alternatively you may think about using a spherical<br>
> cutoff for<br>
> the electrostatic (that is tapering the interaction after a<br>
> certain cutoff).<br>
> 2) you may want to specify proper covalent radius for the QMMM<br>
> electrostatic interactions (at the moment you rely on the<br>
> default which<br>
> is 0.78 (if I'm not wrong) for all atoms).<br>
><br>
> Have a nice QMMM.<br>
> Teo<br>
><br>
> p.s.: about the xc_deriv and xc_smooth_rho I would not suggest<br>
> you to<br>
> use them unless you really know what you are doing. Most of<br>
> the time you<br>
> don't need to specify those keywords (only for few<br>
> pathological cases.<br>
> CH4 or H2O are definitely not one of them).<br>
><br>
><br>
> Marius Retegan wrote:<br>
> > Hi,<br>
> ><br>
> > In my continuing saga of using cp2k for running qm/mm<br>
> calculations I<br>
> > have encounter yet another bump.<br>
> > While using the input below I get this error "FORCEFIELD|<br>
> Missing Bond<br>
> > ( CT, HC)" and angle ...<br>
> ><br>
> > &GLOBAL<br>
> > PROJECT mebox_qmmm<br>
> > RUN_TYPE MD<br>
> > PRINT_LEVEL LOW<br>
> > &END GLOBAL<br>
> ><br>
> > &MOTION<br>
> > &MD<br>
> > ENSEMBLE NVT<br>
> > STEPS 1000<br>
> > TIMESTEP 1.0<br>
> > TEMPERATURE 298<br>
> > &THERMOSTAT<br>
> > REGION GLOBAL<br>
> > TYPE CSVR<br>
> > &CSVR<br>
> > TIMECON 100<br>
> > &END CSVR<br>
> > &END THERMOSTAT<br>
> > &END MD<br>
> > &PRINT<br>
> > &RESTART OFF<br>
> > &END RESTART<br>
> > &RESTART_HISTORY OFF<br>
> > &END RESTART_HISTORY<br>
> > &END PRINT<br>
> > &END MOTION<br>
> ><br>
> > &FORCE_EVAL<br>
> > METHOD QMMM<br>
> ><br>
> > &DFT<br>
> > CHARGE 0<br>
> > BASIS_SET_FILE_NAME GTH_BASIS_SETS<br>
> > POTENTIAL_FILE_NAME GTH_POTENTIALS<br>
> > &MGRID<br>
> > CUTOFF 280<br>
> > COMMENSURATE<br>
> > &END MGRID<br>
> > &SCF<br>
> > MAX_SCF 20<br>
> > EPS_SCF 1.0E-6<br>
> > &OT T<br>
> > PRECONDITIONER FULL_ALL<br>
> > MINIMIZER DIIS<br>
> > &END OT<br>
> > &PRINT<br>
> > &RESTART OFF<br>
> > &END RESTART<br>
> > &RESTART_HISTORY OFF<br>
> > &END RESTART_HISTORY<br>
> > &END PRINT<br>
> > &END SCF<br>
> > &QS<br>
> > EPS_DEFAULT 1.0E-12<br>
> > MAP_CONSISTENT<br>
> > EXTRAPOLATION ASPC<br>
> > EXTRAPOLATION_ORDER 3<br>
> > &END QS<br>
> > &XC<br>
> > &XC_GRID<br>
> > XC_SMOOTH_RHO NN10<br>
> > XC_DERIV NN10_SMOOTH<br>
> > &END XC_GRID<br>
> > &XC_FUNCTIONAL BLYP<br>
> > &END XC_FUNCTIONAL<br>
> > &END XC<br>
> > &POISSON<br>
> > POISSON_SOLVER MULTIPOLE<br>
> > PERIODIC NONE<br>
> > &END POISSON<br>
> > &END DFT<br>
> ><br>
> > &MM<br>
> > &FORCEFIELD<br>
> > VDW_SCALE14 0.5<br>
> > EI_SCALE14 0.8333333<br>
> > SCALE_CUTOFF .FALSE.<br>
> > PARM_FILE_NAME mebox.prmtop<br>
> > PARMTYPE AMBER<br>
> > &SPLINE<br>
> > EMAX_SPLINE 1.0<br>
> > RCUT_NB 10<br>
> > &END<br>
> > &END FORCEFIELD<br>
> > &POISSON<br>
> > &EWALD<br>
> > EWALD_TYPE SPME<br>
> > ALPHA .36<br>
> > GMAX 23 23 23<br>
> > &END EWALD<br>
> > &END POISSON<br>
> > &END MM<br>
> ><br>
> > &QMMM<br>
> > E_COUPL GAUSS<br>
> > USE_GEEP_LIB 7<br>
> > &CELL<br>
> > ABC 8.0 8.0 8.0<br>
> > PERIODIC NONE<br>
> > &END CELL<br>
> > &QM_KIND C<br>
> > MM_INDEX 1<br>
> > &END QM_KIND<br>
> > &QM_KIND H<br>
> > MM_INDEX 2 3 4 5<br>
> > &END QM_KIND<br>
> > &END QMMM<br>
> ><br>
> > &SUBSYS<br>
> > &CELL<br>
> > ABC [angstrom] 23.2782522 22.7141099 23.2326917<br>
> > PERIODIC XYZ<br>
> > &END CELL<br>
> > &TOPOLOGY<br>
> > COORDINATE PDB<br>
> > COORD_FILE_NAME mebox_npt.pdb<br>
> > CONNECTIVITY AMBER<br>
> > CONN_FILE_NAME mebox.prmtop<br>
> > &END<br>
> > &KIND C<br>
> > BASIS_SET DZVP-GTH<br>
> > POTENTIAL GTH-BLYP-q4<br>
> > &END KIND<br>
> > &KIND H<br>
> > BASIS_SET DZVP-GTH<br>
> > POTENTIAL GTH-BLYP-q1<br>
> > &END KIND<br>
> > &END SUBSYS<br>
> > &END FORCE_EVAL<br>
> ><br>
> > If I change QMMM with FIST the input runs.<br>
> ><br>
> > I also have some additional questions, but on somewhat<br>
> different matters.<br>
> ><br>
> > In the latest papers that I could find that use cp2k to do qm/mm<br>
> > calculations (<a href="http://dx.doi.org/10.1021/ja076081h" target="_blank">http://dx.doi.org/10.1021/ja076081h</a> and<br>
> > <a href="http://dx.doi.org/10.1021/jp074858n" target="_blank">http://dx.doi.org/10.1021/jp074858n</a>) the authors used a<br>
> integration<br>
> > step of 0.5 and 0.48. Unfortunately, they did not discussed<br>
> their<br>
> > choice. I'm used to running qm/mm md with other packages,<br>
> but I've<br>
> > always used an integration step of 1 fs. Is cp2k different :-)?<br>
> ><br>
> > Is there any place where I can find information regarding the<br>
> > parameters xc_deriv and xc_smooth_rho and are "good" choices?<br>
> ><br>
> > Thanks,<br>
> > Marius<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > ><br>
><br>
><br>
><br>
><br>
><br>
><br>
> ><br>
<br>
<br>
<br>
</div></div></blockquote></div><br>