I am trying to read a small peptide to run an MD calculation. I cannot
define the atomic charges in the FORCEFIELD section, because there is
no one-to-one mapping between the atomic types and the atomic charges
in case of peptides. Hence, I need to read in the charges. I have
found only 1 way to do it so far, namely reading it from a PDB file.
My problem is that in this case I loose the accuracy of the
coordinates, since this format is fairly restricted and I cannot read
the coordinates only at a +/-0.001 level.
Could anyone please help me, if there is a better way I've missed to
get both the charges and the coordinates at a given accuracy?
Thanks very much,
Csilla
I am trying to run a program which invokes CP2K at each time step.
Basically, I will need to run CP2K to calculate the forces during my
simulations, so I am trying to find the best way to do that.
I have the atomic coordinates and connectivities stored during the
run, from which I can create CHARMM format to pass it to CP2K.
I have generated a modified forcefield file of the original
distribution of CHARMM from the www.charmm.org home page to have a 1-
to-1 mapping between the atomic types and atomic charges. Having
revised the way of generating the modified forcefield I have a
forcefield of reasonable size, and the forcefield can be read by CP2K
fine. I seem to have no problem with the forcefield any longer, thanks
for the help!
I thought of relying on the internal topology builder of CP2K.
But I am getting the following error message with the default
BONDLENGTH_MAX = 3 Angstroms:
GENERATE| ERROR in connectivity generation!
GENERATE| The THRESHOLD to select possible bonds is larger than
the max. bondlength
GENERATE| used to build the neighbors lists. Increase the
BONDLENGTH_MAX parameter
GENERATE| Present THRESHOLD ( 7.233872 ). Present
BONDLENGTH_MAX ( 5.669178 )
Why does it say 5.669178 instead of 6? Is its unit bohr?
If I increase the BONDLENGTH_MAX, it does not help. If I set 4.5
Angstroms then I am getting the following:
GENERATE| Preliminary Number of Bonds
generated: 15757
GENERATE| WARNING in connectivity generation!
GENERATE| Two molecules/residues named (HSE) have different
number of atoms.
GENERATE| Molecule starting at position (238) has Nr. <4> of atoms.
GENERATE| while the other same molecules have Nr. <11> of atoms!
GENERATE| Increasing bondparm_factor by 1.05.. An error was found
in the generated
GENERATE| connectivity. Retry...
GENERATE| Present value of BONDPARM_FACTOR ( 1.155000 ).
...
GENERATE| ERROR in connectivity generation!
GENERATE| The THRESHOLD to select possible bonds is bigger than
the MAX bondlength
GENERATE| used to build the neighbors lists. Increase the
BONDLENGTH_MAX patameter
GENERATE| Present THRESHOLD ( 8.792816 ). Present
BONDLENGTH_MAX ( 8.503768 )
Can the hydrogen bonds cause problems in this case?
Thanks,
Csilla
3/0.529177
5.66918063332306581729
It's in bohr..
> If I increase the BONDLENGTH_MAX, it does not help. If I set 4.5
> Angstroms then I am getting the following:
>
>
>
> GENERATE| Preliminary Number of Bonds
> generated: 15757
>
> GENERATE| WARNING in connectivity generation!
> GENERATE| Two molecules/residues named (HSE) have different
> number of atoms.
> GENERATE| Molecule starting at position (238) has Nr. <4> of
> atoms.
> GENERATE| while the other same molecules have Nr. <11> of atoms!
> GENERATE| Increasing bondparm_factor by 1.05.. An error was found
> in the generated
> GENERATE| connectivity. Retry...
> GENERATE| Present value of BONDPARM_FACTOR ( 1.155000 ).
> ...
>
> GENERATE| ERROR in connectivity generation!
> GENERATE| The THRESHOLD to select possible bonds is bigger than
> the MAX bondlength
> GENERATE| used to build the neighbors lists. Increase the
> BONDLENGTH_MAX patameter
> GENERATE| Present THRESHOLD ( 8.792816 ). Present
> BONDLENGTH_MAX ( 8.503768 )
>
>
> Can the hydrogen bonds cause problems in this case?
Most of the times yes but these errors may appear also because the
values of the parameters
in the input files are totally wrong.. The construction of the
topology can be very hard and difficult and requires some
idea of the bond presents and how to catch them properly...
If you want to use the internal topology generator you've to play
with the parameter of the &GENERATE section.
(In this case the calue of 4.5 it's extremely large!!)
Otherwise I would suggest you to provide a PSF.
Cheers
Teo
>
> Dear All,
>
> I am trying to run a program which invokes CP2K at each time step.
> Basically, I will need to run CP2K to calculate the forces during my
> simulations, so I am trying to find the best way to do that.
> I have the atomic coordinates and connectivities stored during the
> run, from which I can create CHARMM format to pass it to CP2K.
To repetively invoke cp2k, especially if just the coordinates change,
you can look at building cpshell (make cpshell VERSION=sopt) that
produces a cp2k_shell.sopt executable that can be called interactively.
For it there is a python wrapping script in tool/cp2kController.
You can also use the f77_interface, it isn't so difficult.
Any of these solutions let you calculate the topology just once (so
maybe even the internal topology builder can cope with it), and then
change coordinates and get updated energy/forces.
ciao
Fawzi
> [...]
Thanks very much! Great. That sounds really useful.If I would like to run CP2K via the f77_interface, how should I compile CP2K as a library?Regards,