votca icon indicating copy to clipboard operation
votca copied to clipboard

[csg] csg-tutorial/propane/imc does not run through

Open marvinbernhardt opened this issue 4 years ago • 16 comments

I am not sure what is happening here. The setup is to update alternatively A-A, B-B, A-B. As some point the potentials become non-physical and consequently the simulation in step_008 crashes.

I'm using current master branch with gromacs 2019.6. I guess this worked at some point. Which version of votca should I try?

A-A after step 0 (k), 1 (r), 4 (g), 7 (b) image

B-B after step 0 (k), 2 (r), 5 (g) image

A-B after step 0 (k), 3 (r), 6 (g) image

marvinbernhardt avatar Jul 20 '21 06:07 marvinbernhardt

@DRosen285 any idea?

marvinbernhardt avatar Jul 20 '21 07:07 marvinbernhardt

It seems that sth. went wrong already after the 1st update of B-B. The potential well is about -25 (if I interpret the scales correctly). That is too attractive. This might indicate that the initial guess is too bad. What you could try is to run the IBI example first for a couple of iterations and start from there. Or you could add some regularization. I'm trying to reproduce, but I can only run simulations on my laptop at the moment, which is super slow.

DRosen285 avatar Jul 20 '21 09:07 DRosen285

It is also super slow on my computer^^. I agree the B-B update looks bad. I also tried updating all potentials at the same step and then it is also B-B which becomes much too attractive.

marvinbernhardt avatar Jul 20 '21 09:07 marvinbernhardt

@JensWehner did a big refactor of IMC in v1.6, so it might be worth trying IMC in the 1.5.1 docker container.

junghans avatar Jul 20 '21 12:07 junghans

Yeah , the 1.6 container still has the following bug: https://github.com/votca/csg/issues/577. So 1.5.1 is a better choice.

DRosen285 avatar Jul 20 '21 12:07 DRosen285

@marvinbernhardt you could also try to increase r_0 from 0.31 to 0.32 or 0.33 for the B-B interaction. I did some tests with shorter trajectories and that has improved the B-B potential, but it is still pretty negative, but there is now a larger repulsive core.

DRosen285 avatar Jul 20 '21 17:07 DRosen285

I'm running it now with 1.5.1, let's see. Interestingly votca uses gmx_d.

marvinbernhardt avatar Jul 21 '21 08:07 marvinbernhardt

Ok new evidence: The docker container with votca v1.5.1 yields the pretty similar RDFs

All three RDFs

image

but gives a different A-A potential update at the first step

A-A potentials after first step

black -> master, red -> v1.5.1 image

marvinbernhardt avatar Jul 21 '21 13:07 marvinbernhardt

It seems like the correlation matrix is “scaled down" for master compared to v1.5.1.

v1.5.1

image

master

image

Not sure if v1.5.1 will converge, it is very slow.

marvinbernhardt avatar Jul 21 '21 13:07 marvinbernhardt

hmmm with v1.5.1 it also crashes after B-B becomes to attractive in step 2.

marvinbernhardt avatar Jul 21 '21 14:07 marvinbernhardt

In the original VOTCA paper there is no data for IMC and propane. So not sure, how well that example actually worked. Maybe @junghans knows more. So I'd try to play with the cut-off, or add regularization, or perform some steps of IBI first or do a combination of all the things. Increasing the sampling could also help, but given that it is already slow, that's maybe the least feasible option.

DRosen285 avatar Jul 21 '21 15:07 DRosen285

Yeah, I looked in a couple of place, but I don't see any IMC results anywhere, so this tutorial might have never worked...

junghans avatar Jul 21 '21 18:07 junghans

It seems like the correlation matrix is “scaled down" for master compared to v1.5.1.

I did some tests with v1.5.1 but using the master trajectory to see where the scaling arises. There seems to be no bug in votca, rather just different correlations in the trajectories generated. I'm still a bit puzzled to be honest.

marvinbernhardt avatar Jul 22 '21 09:07 marvinbernhardt

Looking at https://github.com/votca/csg-tutorials/pull/140, did you find it?

junghans avatar Jul 22 '21 18:07 junghans

Not really, no. The current master code seems to converge the propane/imc case after some first steps using IBI.

marvinbernhardt avatar Jul 22 '21 19:07 marvinbernhardt

Not really, no. The current master code seems to converge the propane/imc case after some first steps using IBI.

Ah ok, you could provide <name>.pot.in in the tutorials that comes from a ibi pre/ step.

junghans avatar Jul 22 '21 19:07 junghans