For example OH of carboxyl group and Phenolic OH group has same atoms and bond length but slightly different charges.
But how the gromacs will differentiate from the datas it gets from Pdb file?
Assuming pdb file contains only coordinates of different atoms.