How to calculate structure factor in Gromacs

Dear all,

I would like to calculate the structure factor to study nano-phase segregation in a Polymer/Water system. The plot I am looking for is the same as below. What Gromacs tools can help me with that?

Thanks a lot
Mohammad


Capture2