The connectivity of grain-edge fluid channels in the lower crust and mantle is controlled mainly by the solid-liquid dihedral angle. To explain the change in equilibrium dihedral angle at elevated temperature and pressure, as observed in laboratory experiments, we developed two kinds of statistical thermodynamic models: a lattice-like model based on the Gibbs theory of adsorption, and a model based on the Cahn-Hilliard theory of non-uniform systems. The models perform well in explaining experimental data on dihedral angles in the forsterite-H2O system. The complicated temperature dependence of dihedral angle in the quartz-H2O system is possibly explained by the occurrence of multilayered adsorption.