I first learned about potential energy surface (PES) when I was studying Born-Oppenheimer approximation. In the approximation, the PES is essentially electronic PES which is defined as follows:
Given the Hamiltonian of a molecule $$\hat H = \hat T_{\text{nucleus}} + \hat T_{\text{electrons}}+\hat U_{\text{electron-nucleus}}+\hat U_{\text{electron-electron}}+\hat U_{\text{nucleus-nucleus}}$$ Under Born-Oppenheimer approximation, $\hat T_{\text{nucleus}} = 0$. So the equation about to be solved is: $$(\hat T_{\text{electrons}}+\hat U_{\text{electron-nucleus}}+\hat U_{\text{electron-electron}}+\hat U_{\text{nucleus-nucleus}}) \psi_{\text{electron}} = E(\{ R_{\text{nucleus}}\}) \psi_{\text{electron}}$$ Clearly, $E(\{ R_{\text{nucleus}}\})$ gives a PES, and this PES is the relation: $$\{ R_{\text{nucleus}} \} \rightarrow E_{\text{ground state electronic energy}}$$
However, when I learned about molecular dynamics (also in wikipedia), a PES is defined to be the relation $$\{ R_{\text{nucleus}} \} \rightarrow E_{\text{energy of the system}}$$ How do we find this map in practice? The only way I can think of is:
We solve the electronic eigenequation for several $\{ R_{\text{nucleus}} \}$.
For each calculated $E(R_{\text{nucleus}})$ of electrons, we solve the equation $$(\hat T_{\text{nucleus}} + E(R_{\text{nucleus}})) \phi_{\text{nucleus}} = E_{\text{nucleus}}\phi_{\text{nucleus}}$$ to find the energy of the nucleus. (I have never learned how to solve an eigenequation of a nucleus in quantum chemistry)
Is this the way that we find the 'generalized' PES? When we say PES, which is the PES that we are referring to?