I am trying to calculate the Gibbs free energy in an NVT simulation. Although
$$\Delta G = -RT\ln Q,$$
in my simulation I can't calculate
$$Q = \frac{[\text{Products}]}{[\text{Reactants}]}$$
because I cant determine the concentrations of reactants and products.
Hence, I am looking for a relationship between reaction quotient $Q$ and potential energy $U$ as well as $p,$ $V,$ $T,$ i.e.
$$Q(U,p,V,T) = ?$$