# All-atom simulations with walls constraints

**URL:** <https://gromacs.bioexcel.eu/t/all-atom-simulations-with-walls-constraints/3640>\
**Category:** User discussions\
**Tags:** mdp-parameters, mdrun\
**Created:** [February 10, 2022, 3:39am UTC](https://gromacs.bioexcel.eu/t/all-atom-simulations-with-walls-constraints/3640 "2022-02-10T03:39:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jl.dong](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@jl.dong](https://gromacs.bioexcel.eu/u/jl.dong)\
**Post date:** [February 10, 2022, 3:39am UTC](https://gromacs.bioexcel.eu/t/all-atom-simulations-with-walls-constraints/3640/1 "2022-02-10T03:39:32Z")

</div>

GROMACS version: 2021  
GROMACS modification: Yes/No  
Hi, I am a beginner of gromacs. Now I want to add two walls along XY-plane to restraint the ligand to leave the pocket along Z-axis. But the mdp parameters of walls can only be set to z=0 and z=z-box which cover the pocket and prevent the ligand from leaving. Does anyone know how to solve the problem? Thanks a lot!  
; Walls  
nwall = 2 ; wall at z=0 and z=z-box  
wall-atomtype = CA CA  
wall-type = 10-4 ; direct 12-6 LJ as fn of distance from wall  
wall-r-linpot = 3  
wall-density = 50 50  
wall-ewald-zfac = 3
