Git Product home page Git Product logo

pdr's Introduction

PDR code by Munan Gong. Uses the chemistry network in Gong, Ostriker and
Wolifre (2017) (http://adsabs.harvard.edu/abs/2017ApJ...843...38G). Requires
CVODE library.

Steps to run the code:
1. Install the Sundials CVODE library (version 4.1.0):
The CVODE package: https://computation.llnl.gov/projects/sundials/sundials-software
The default options should be fine.

2. Go to the directory for compiling and running the code.
$cd run
There are couple files:
- run.py: python script to run the code. Edit the “cvode_dir” variable to the install directory of the CVODE package in step 1!
- examples.in: input file for run.py. Specify the main .cpp file, the executable name, and the output directory. Each line correspond to a different .cpp file/set of PDRs.
- examples_simple.cpp: a simple example for the main .cpp file that set up the PDR. Run PDR at density n=100 and n=1000 cm-3.
- examples_large.cpp: same as eample_simple.cpp, except that there is a larger range density from n=10 to n=1000 cm-3, and more density values in between.
- Makefile.in: input for Makefile, which is made by run.py

3. Run the code.
$./run.py
If you want to clean up the executables, you can do 
$make clean

4. Read the data
$cd ../python_read_data
The ipython notebook PDR_example.ipynb shows how to read and plot the data. 
plot_chem.py and slab.py contains some useful functions.

pdr's People

Contributors

jeonggyukim avatar munan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.