Generalized ice models in two- and three-dimensional lattices: Residual entropies and phase transitionsRemoveUnjong YuPhys. Rev. B 112, 214405 (2025)