Tabulated Potential in LAMMPS

31 views
Skip to first unread message

Pratyasha Bhardwaj

unread,
Dec 8, 2024, 2:03:25 AM12/8/24
to votca
Dear all,

I am trying to run the csg_inverse function for my copolymer system and I was using tabulated potentials for the bonds and angle potentials. I am using Lammps version 2 Aug-2023 and VOTCA version '2021.2'. Does Lammps not support the tabulated potential files of the format 'AA.pot' ? I get the error 'keyword VOTCA' not found. Here are  my scripts as well as the inverse log file. 
An exact harmonic potential wouldn't fit my bond data and my angle correlations are far away from the harmonic curve. I just wanted to know how do I proceed?

Thank You,
Pratyasha
settings_ibi.xml
pepeg.in
inverse.log

Pratyasha Bhardwaj

unread,
Dec 8, 2024, 2:15:30 AM12/8/24
to votca
Here is the correct inverse file. The last one was one of my trials and not the correct one.
inverse.log

Christoph Junghans

unread,
Dec 8, 2024, 10:07:36 AM12/8/24
to vo...@googlegroups.com
First of all, VOTCA 2021.2 is old, please update!

Secondly, the error is from "bond_coeff 1 bond1.pot VOTCA #AB" and
bond1.pot is a potential file that you currently don't iterate in
VOTCA, but it is just in the filelist, so VOTCA didn't create it. You
will have to figure out what keyword is used in that file and change
your .in file accordingly.

Christoph

>>
>> Thank You,
>> Pratyasha
>
> --
> Join us on Slack: https://join.slack.com/t/votca/signup
> ---
> You received this message because you are subscribed to the Google Groups "votca" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to votca+un...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/votca/7b777e89-48b4-49d2-8a7d-7984638bfa76n%40googlegroups.com.



--
Christoph Junghans
Web: http://www.compphys.de

Pratyasha Bhardwaj

unread,
Dec 8, 2024, 10:57:26 AM12/8/24
to vo...@googlegroups.com
Ok, thank you for the reply.
No. I created the bond1.pot using csg_boltzmann(and then using the tab option) and using that as my bond potential, so it was created by VOTCA but it is not in the tabular format that lammps read and is not used in the iterations.


Christoph Junghans

unread,
Dec 8, 2024, 11:59:46 AM12/8/24
to vo...@googlegroups.com
On Sun, Dec 8, 2024 at 8:57 AM Pratyasha Bhardwaj
<pratya...@gmail.com> wrote:
>
> Ok, thank you for the reply.
> No. I created the bond1.pot using csg_boltzmann(and then using the tab option) and using that as my bond potential, so it was created by VOTCA but it is not in the tabular format that lammps read and is not used in the iterations.

Did you convert it from VOTCA format to LAMMPS format?
See https://www.votca.org/csg/preparing.html#exporting-the-table
You have to do the same as you do for GROMACS for LAMMPS.
eg. csg_call --options table.xml --ia-type bonded --ia-name XXX
convert_potential lammps table_in.pot table_out.pot

Christoph
> To view this discussion visit https://groups.google.com/d/msgid/votca/CAOq_SnUXMTO5psLrghhnzwictaRHP%3DMCNqnBYhYm48qEhbY2rw%40mail.gmail.com.

Pratyasha Bhardwaj

unread,
Dec 12, 2024, 5:57:43 AM12/12/24
to vo...@googlegroups.com
Thank you so much for your inputs. I was able to start my simulations. I have a few doubts regarding the exclusion list. I used the command 
'csg_dump --top topol.tpr --excl' to get the exclusion list for the atomistic configuration and 'csg_dump --top topol.tpr --cg hexane.xml --excl' for the mapped configuration. As per my understanding the output has all the bonded interactions printed out. For the hexane molecule and the mapped case, the first line represents the bond_angle ABA and hence CG bead 1 has connections with both CG beads 2 and 3. Since bead 2's connection is already mentioned with 1, the second line has just the bond BA connecting cg bead 2 and 3 and so on. 
So, if I have 4 cg beads representing 1 chain, i will have the entry as:
123 #angle
234 #angle
34 #bond
Is my understanding correct?
But what about the first file that doesn't use the mapping scheme(I have attached below). Does it also follow the same logic?


exclusions_mapped
exclusions

Christoph Junghans

unread,
Dec 12, 2024, 11:06:41 AM12/12/24
to vo...@googlegroups.com
On Thu, Dec 12, 2024 at 3:57 AM Pratyasha Bhardwaj
<pratya...@gmail.com> wrote:
>
> Thank you so much for your inputs. I was able to start my simulations. I have a few doubts regarding the exclusion list. I used the command
> 'csg_dump --top topol.tpr --excl' to get the exclusion list for the atomistic configuration and 'csg_dump --top topol.tpr --cg hexane.xml --excl' for the mapped configuration. As per my understanding the output has all the bonded interactions printed out. For the hexane molecule and the mapped case, the first line represents the bond_angle ABA and hence CG bead 1 has connections with both CG beads 2 and 3. Since bead 2's connection is already mentioned with 1, the second line has just the bond BA connecting cg bead 2 and 3 and so on.
> So, if I have 4 cg beads representing 1 chain, i will have the entry as:
> 123 #angle
> 234 #angle
> 34 #bond
> Is my understanding correct?
The exclusion list are the exclusion pairs and not every pair is
necessarily covered by an interaction.

> But what about the first file that doesn't use the mapping scheme(I have attached below). Does it also follow the same logic?
It is reading the exclusion from the tpr file, you can use gmx dump to
see them too.
> To view this discussion visit https://groups.google.com/d/msgid/votca/CAOq_SnXKPUQOCK1dKmp%2BB%3DOLaXdNU-xVcv2Mx%2BZJ1zj_Sj7Wng%40mail.gmail.com.

Pratyasha Bhardwaj

unread,
Dec 14, 2024, 9:37:29 AM12/14/24
to votca
Dear Christoph,

Although my step 1 starts but I get the error that my bond length exceeds that of the table cutoff. The mentioned bondlength is of the order of box size. My cg structure was generated using the csg_map command and then later modified using vmd topotools. I checked manually, none of the initial bondlengths  are of that order. What could be the possible error that I am making?
I do have another doubt. For the csg_stat command, for all-atomistic data , I used the all-atomistic tpr file with the mapping files, for the cg runs will I need a cg topology file in the xml format?
I am attaching my files : settings.xml used in csg_inverse command, the lammps data file and the script file and the inverse log file.

Thank you,
Pratyasha

pepeg_cg.data
pepeg.in
inverse.log
settings_ibi.xml

Christoph Junghans

unread,
Dec 14, 2024, 10:02:46 AM12/14/24
to vo...@googlegroups.com
On Sat, Dec 14, 2024 at 7:37 AM Pratyasha Bhardwaj
<pratya...@gmail.com> wrote:
>
> Dear Christoph,
>
> Although my step 1 starts but I get the error that my bond length exceeds that of the table cutoff. The mentioned bondlength is of the order of box size. My cg structure was generated using the csg_map command and then later modified using vmd topotools. I checked manually, none of the initial bondlengths are of that order. What could be the possible error that I am making?
It is hard to say what went wrong, but bonds can be a bit brittle to
iterate. You could:
a) extend the table and make it is very steep at the end
b) start with harmonic interaction for that bond, get the rest to work
and then put the tabulated interaction back in

> I do have another doubt. For the csg_stat command, for all-atomistic data , I used the all-atomistic tpr file with the mapping files, for the cg runs will I need a cg topology file in the xml format?
> I am attaching my files : settings.xml used in csg_inverse command, the lammps data file and the script file and the inverse log file.
It doesn't matter much what type of topology file you will use as long
as it has all the info you need.
The xml files are useful, if you need to hand tweak the topology.

Christoph
> To view this discussion visit https://groups.google.com/d/msgid/votca/0610f2a8-a650-4da3-a7b4-c3afea24b7d0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages