By means of a numerical hydrodynamic (HD) model coupled with Poisson pseudo-2D equation , we simulate the drain current response of a high electron mobility transistor (HEMT) to a THz signal applied to its gate and/or to its drain contacts in order to obtain the optimal configuration in terms of detection.