Gibbs free energy change (ΔG) calculation using CASTEP/DMol3

Dear all,

How to calculate ΔG = ΔE + ΔEZPE - TΔS + ΔGpH + ΔGU, computational hydrogen electrode (CHE) model introduced by Norskov, the Gibbs free energy change (ΔG), using CASTEP/DMol3 code? Thanks