Constrained force method

GROMACS version: 2020.2
GROMACS modification: No

I want to calculate the PMFs and diffusivities as a function of distance from the center of mass of the bilayer to the center of mass of the molcule present at the interface along the bilayer normal z using constraint force method . I would be thankful if someone can suggest how to modify the mdp file.