r/exoplanets • u/ProfessionalThese357 • 9h ago
π Data & Analysis ExoGCM: an open-source 3-D climate model for rocky exoplanets that runs on a consumer GPU, checked against the THAI benchmark cases
I have rewritten the PlaSim / ExoPlaSim general circulation model [1] in Python + JAX so that it runs on a single NVIDIA graphics card (or, more slowly, on a CPU), and put a browser interface on it. Code and instructions: https://github.com/gaberun24/exogcm (GPL-2.0, like the models it derives from).
What a model like this does: it solves the equations of a moving atmosphere on the whole sphere, with stellar light, thermal radiation, clouds, rain, snow, sea ice and an ocean, and steps the planet forward for years until its climate settles. You choose the star, the orbit, the planet and the gas mixture.
What is in it:
- spectral dynamical core as in PlaSim, T21 to T85, 10 or more levels; seasons or synchronous rotation;
- atmospheres of arbitrary composition (N2, O2, CO2, H2O, CH4, Ar, H2, He, NH3, CO); the gas constant and heat capacity follow the mixture;
- one gas may condense on the surface and take part of the atmosphere with it (CO2 caps on Mars, collapse on the night side of a locked planet);
- gray radiation, or correlated-k band radiation with ExoMolOP tables, HITRAN collision-induced absorption and the MT_CKD water continuum;
- a water cycle with clouds, soil and snow, sea ice, and three ocean options up to a multi-layer shallow-water ocean.
How far it has been checked. I ran two cases of the THAI intercomparison for TRAPPIST-1e [2] and compared the global means with the four GCMs of that project (ExoCAM, LMD-G, ROCKE-3D, UM):
| Case | Quantity | ExoGCM | THAI models |
|---|---|---|---|
| Ben 1 (dry, 1 bar N2 + 400 ppm CO2) [3] | mean surface temperature | 214 K | 213 to 220 K |
| outgoing longwave radiation | 160 W/mΒ² | 160 to 164 W/mΒ² | |
| planetary albedo | 0.28 | 0.27 to 0.30 | |
| Hab 1 (ocean planet, same air) [4] | mean surface temperature | 241 K | 232 to 246 K |
| planetary albedo | 0.25 | 0.22 to 0.28 |
Ben 1 is in balance after 150 orbits. Hab 1 was run for 1500 orbits from the prescribed 300 K start; over the last hundred orbits its mean temperature changed by less than 0.1 K. About 14% of the globe is open water under the star, the rest is covered by sea ice.
Beyond these two cases nothing has been compared with other models yet. Earth with the gray scheme has the right patterns but is about 13 K too cold. There are more than 200 automated tests of the components (conservation, exact solutions, restart).
Known gaps: the star is a blackbody of 2600 K here, not the BT-Settl spectrum THAI prescribes; clouds are diagnostic (cloud water is not advected); one albedo for ice at all wavelengths; no absorption data below 100 K; no rivers.
Speed at T21: an Earth year in 1 minute on an RTX 4070, 7 minutes on an Apple M1 processor; Ben 1 to equilibrium in 5.5 minutes on the GPU with band radiation.
I am not a climate scientist, and I wrote this with heavy use of an AI coding assistant (Claude), so I am looking for people who know GCMs to try it and tell me where it is wrong. The settings of every run are saved with it, so any result can be repeated exactly.
Sources:
[1] Paradise et al. 2022, "ExoPlaSim: Extending the Planet Simulator for exoplanets", MNRAS 511, 3272. https://arxiv.org/abs/2107.07685 [2] Fauchez et al. 2020, "TRAPPIST-1 Habitable Atmosphere Intercomparison (THAI). Motivations and protocol version 1.0", Geosci. Model Dev. 13, 707. https://arxiv.org/abs/2002.10950 [3] Turbet et al. 2022, "THAI. Part I: Dry Cases", Planet. Sci. J. 3, 211. https://arxiv.org/abs/2109.11457 (table 4) [4] Sergeev et al. 2022, "THAI. Part II: Moist Cases", Planet. Sci. J. 3, 212. https://arxiv.org/abs/2109.11459 (table 4)