# How can we generate an itp file for dihedral restraint?

**URL:** <https://gromacs.bioexcel.eu/t/how-can-we-generate-an-itp-file-for-dihedral-restraint/3325>\
**Category:** User discussions\
**Created:** [December 17, 2021, 12:04pm UTC](https://gromacs.bioexcel.eu/t/how-can-we-generate-an-itp-file-for-dihedral-restraint/3325 "2021-12-17T12:04:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StephaneA](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@StephaneA](https://gromacs.bioexcel.eu/u/StephaneA)\
**Post date:** [December 17, 2021, 12:04pm UTC](https://gromacs.bioexcel.eu/t/how-can-we-generate-an-itp-file-for-dihedral-restraint/3325/1 "2021-12-17T12:04:26Z")

</div>

GROMACS version: 2021.4  
GROMACS modification: Yes/No NO

Hello,

I would like to generate an dihedral restraints file (with the directive function, angle and force constants) for a long list a 4 atoms. it is possible to do this with a GROMACS tool or a script.

Thanks in advance

Stéphane
