Generalized virial relations and the theory of subdynamics