PhotochemPy is a photochemical model of planet's atmospheres. Given inputs, like the stellar UV flux, the atmospheric temperature structure, etc., this code will find the steady-state chemical composition of an atmosphere, or evolve atmospheres through time.
PhotochemPy is a Python wrapper to Fortran source code. This makes the code very speedy, but also user-friendly.
Requirements:
- MacOS or any Linux OS.
Python
(>3.6.0) with thenumpy
package. I suggest using anaconda to install these regardless of your operating system.- A Fortran and C compiler (any should work). I suggest the GNU compiler collection (includes
gfortran
,gcc
, etc.). If you are using a Mac, install it with Homebrew:brew install gcc
.
Python Module: After satisfying the requirements, then follow these setups to install PhotochemPy
- Clone or download the github repository
https://github.com/Nicholaswogan/PhotochemPy
- Navigate to the root directory of PhotochemPy, then install with
python -m pip install .
Fortran library: If you prefer to use the code exclusively in Fortran, that is OK too. You can build libphotochem
with CMake. Download or clone this respository, then from the root directory of the repository run
mkdir build
cd build
cmake ..
make -j
See the examples
directory. Also check out this tutorial
PhotochemPy is a distant fork of the Atmos photochemical model, originally developed by Jim Kasting and Kevin Zahnle and further developed by many of their students and colleges.
If you have questions email me: [email protected]
Also, if you plan on using PhotochemPy for a publication please email me before you submit anything to a journal, just so we can confirm your planned application of the model is reasonable.