Polymer expansion instead of compression when using wall potential in Gromacs?

GROMACS version: 2022

Dear GMX users,

I would like to perform a molecular dynamics simulation of a PEG polymer slab using the wall potential feature in GROMACS.

My idea is to start from an elongated simulation box in the z direction and then use repulsive walls on both sides of the box to gradually compress the system along z.

First, I equilibrated the system in the NVT ensemble using a box with dimensions 10 × 10 × 30 nm, without any wall potential.

In the next step, I added wall potentials in the .mdp file and planned to gradually reduce the box size in the z direction step by step (by 1 nm per step), for example: 10 × 10 × 29 nm, 10 × 10 × 28 nm, and so on.

However, in the first step, when I analyzed the trajectory, I observed that the polymer chains seem to move far from each other (to Z direction) without a clear, controlled compression of the system. I also calculated the radius of gyration (Rg), and it increases almost exponentially instead of showing a gradual response to compression.

Ideally, I would expect to see a controlled and gradual compression along the z direction driven by the wall potential and/or box reduction, but this behavior is not observed, and it seems to be reverse!

Could you please help me understand what might be causing this behavior and whether my setup or interpretation is correct?

I have also attached the simulation box scheme at the beginning and end of the NVT simulation in the first step.

; =========================================================
; WALL MODEL (for PEG slab compression in z direction)
; =========================================================

nwall                   = 2
wall-type               = 9-3

wall-atomtype           = WALL WALL

wall-density            = 50 50

wall-r-linpot           = 0.50

; PME slab correction (IMPORTANT for vacuum/slab systems)
ewald-geometry          = 3dc
wall-ewald-zfac         = 3

comm-mode               = Linear

What forcefield do you use for the polymers?

Hi Dear hess,

OPLS-AA for PEG.

What atomtype do you use for the walls?

; WALL for slab
WALL 0.0000 0.0000 A 3.00000e-01 1.00000e+00

Totally, do you recommend using wall potential to make a slab, or defining two walls (like a carbon sheet) on the two sides in the z-direction and using pull code?
I have no experience in making polymer slabs or layers at all.

The epsilon of your wall atom is larger than those of typical carbons (sigma a bit smaller though). And you have a high wall atom density of 50 nm^-3. This makes the walls attract the polymers stronger than the polymers themselves, at least as far as Lennard-Jones potentials is concerned. So the lowest free-energy state might be polymers adsorbed onto the walls.

The wall setup should work fine, provided you can find the right amount of attraction.

Note that you can continuously move the walls using the deform option.

Dear Hess,

Thank you very much for your kind response.

I believe the deform option is more stable and reliable. So, I should change my method.

Thanks again