A Simple and Accurate Model for Intracluster Gas