# Is the potential energy of molecules related to its temperature? [duplicate]

Do ideal gases have a certain potential energy at a certain temperature?

$U = f(\bar{r}_1,\bar{r}_2 ... \bar{r}_n)$
where $\bar{r}_i$ represent the relative positions of the particles to some reference frame. This can be translated into the relative distances between particles as well. For real gases this may be different though.