How can I influence the number of steps in Gromacs simulation?

GROMACS version: 2020.1-Ubuntu-2020.1-1
GROMACS modification: No

In nvt.mdp file during protein-ligand complex MD Simulation, you have:

title = Protein-ligand complex NVT equilibration
define = -DPOSRES ; position restrain the protein and ligand
; Run parameters
integrator = md ; leap-frog integrator
nsteps = 50000 ; 2 * 50000 = 100 ps
dt = 0.002 ; 2 fs
; Output control

So, I guessed that 0.02 * 5000 = 100 ps and therefore changed the above values to this below:

title = Protein-ligand complex NVT equilibration
define = -DPOSRES ; position restrain the protein and ligand
; Run parameters
integrator = md ; leap-frog integrator
nsteps = 5000 ; 20 * 5000 = 100 ps
dt = 0.02 ; 20 fs
; Output control

But on using the command,

gmx mdrun -deffnm nvt

I still get 50000 as number of steps for 100 ps.

HOW CAN I INFLUENCE THE NUMBER OF STEPS?

Greetings!

The mdp file is used by grompp to create the tpr file.

This command

Is telling mdrun to read files with the prefix nvt, and so it will try to read a file called nvt.tpr, which most likely you created in a previous run trial. That is why your updated mdp file does not influence mdrun.

Summing up, you need to first run grompp with your new nvt.mdp file (check the link) to create a nvt.tpr file, and then run your mdrun command.

Let me know how it goes