How to convert gromacs trajectory to lammps to do Flory–Huggins interaction parameter?

GROMACS version: 2019

Hi gromacs users,

I did md simulation of chitosan (polymer) - drug. I need to do Flory–Huggins interaction parameter. Can this analysis be done with Gromacs tools? If not, how to convert gromacs trajectory to lammps?

Best,