Dear Rasmus,
I am not familiar with your specific system. So I cannot really help you
to figure out some of your particles are not flowing as you expect them
to. I work mostly with softer models. I don't know if you can expect the
correct dynamic properties if you match the densities. Also, which
thermostat (if any) are you using in combination with the MP_flow? Many
thermostats are incompatible with shear flow because they do not
conserve momentum locally. I use DPD as implemented in HOOMD, but I also
know that Lowe-Anderson (not implemented in HOOMD) would also work.
However, I can explain you the warning:
The warning is triggered because the MP_flow cannot fulfill your stress
target. It performed 100 swap updates at each time step and still
couldn't reach the desired target.
The simulation is continued anyways but you have to expect that the
actual stress in your simulation is lower than you specified as target.
You can inspect the real stress via the "summed_exchanged_momentum"
quantity provided by the MP_flow class. If your stress is too high for
the system, the actual stress as logged would be lower than your target.
(Note that the cross-section area is a factor between your flow target
and "summed_exchanged_momentum".
The reason for this deviation occurs most of the time if the maximum
momentum in the max. slab is smaller than the minimum momentum in the
min. slab. Swapping these momenta than actually reduces the stress
instead of increasing it as desired. This is an inherent limitation of
the MuellerPlathe RNEMDS scheme. The easiest way to work around this, is
to increase the number of particles in the max. and min. slabs by
increasing the system size (or using less slabs for your system if
possible).
There is also the slight possibility that the MP class uses a too tight
tolerance between target and actual swapped momenta. The result would be
a back and forth swapping of momenta. The "summed_exchanged_momentum"
would fluctuate around your target flow in this scenario. In this case,
you can use the "getFlowEpsilon" and "setFlowEpsilon" in order to adjust
the tolerance to higher values. However, I never encountered this
problem before. It may also be related to very small system sizes.
I hope you are on the way on tracking down the problem in your simulations.
All the best,
Ludwig
On 29.03.19 09:22, Rasmus "Termo" Lundsgaard wrote:
> Not it si for now very simple liquids as coarse grained models of alkanes.
> They equilibrium densities are spot on, so I trust the simulation is
> correct as such. I can now see that my problem is related to liquid phase
> simulations. If I do MP for 1 segment compounds I get the nice flow profile
> for those that are in gas phase but not when going into liquid state. (see
> videos in this link
>
https://www.dropbox.com/s/8gncpbdk4wq3cxg/MP-videos.zip?dl=0). this of
> course suggest as you say that simulations have to run longer. I try for
> now to redo the results for hexane from
> The_shear_viscosity_of_molecular_fluids_A_calculation_by_reverse_nonequilibrium_molecular_dynamics
> <
https://www.researchgate.net/publication/27269895_The_shear_viscosity_of_molecular_fluids_A_calculation_by_reverse_nonequilibrium_molecular_dynamics>,