Here is an excellent site I ran across today that explains the basics of how climate models work in clear language from a reputable scientific source. If you would like to know more about how they work, check out https://nas-sites.org/climate-change/climatemodeling/.