Gmx energy with external electric field

I would like to understand a bit better how the electric field has been implemented in GROMACS.
Could you please refer the relevant files that I have to check to proceed with?