Hi dear LAMMPS users,
Recently, I try to add a vacuum layer in my model in z direction. As
shown in the diagram below, the vaccum layer is on top of the molecule
that I am chiefly concerned with. And the xyz are all periodic
boundary conditions because I want to use kspace in my simulation, the
vacuum layer added here is for the sake of avoiding the molecule
influenced by the other molecule in z direction.
Diagram 1:
********************
> vacuum layer |
********************
> molecule |
*********************
In order to achieve this, I have tried to add a wall/reflect between
the vacuum layer and molecule. But the periodic boundary condition
cannot use with wall/reflect. Then I found this method to achieve this
in the manual. The script is as follows:
boundary p p f
kspace_modify slab 3.0 #which converts ppf to ppp, increase the size
of z dimentions to 3 times.
fix zwall all wall/reflect zlo EDGE zhi EDGE units box #add wall
between vacuum layer and molecule
To find out whether this method can achieve what I want, I change
kspace_modify slab 3 to kspace_modify slab 1.001 in order to decrease
the thickness of vacuum layer, I found that the molecule will not
influenced by the other molecule in z direction. So I was wonderning
whether this method can achieve what I want or is there some other
alternative method. Thanks for your advisement
no, this is incorrect. for the dipole solver to be properly converged,
you must have *at least* a vacuum space of the size of the change
density distribution added on *both* sides.
fix wall/reflect cannot work with this for technical reasons that have
been discussed in the past many times on this list, but you can set up
two zones using fix oneway for the same effect.
so your final system would be something like this:
********************
> fix oneway zone |
********************
> vacuum layer |
********************
> molecule |
> molecule |
> molecule |
> molecule |
*********************
> vacuum layer |
********************
> fix oneway zone ||
*********************
and you would still use kspace modify slab 3.0
the vacuum doesn't have to be very large, and same for the fix oneway
zones (it just has to be certain that no atom or molecule is moving
fast enough so it can pass it by accident)
axel.