jeonggyukim / pdr Goto Github PK
View Code? Open in Web Editor NEWThis project forked from munan/pdr
pdr code
This project forked from munan/pdr
pdr code
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.