Git Product home page Git Product logo

sb_solver's Introduction

/------------\
| DESCRIPTION |
\------------/

This program calculates ion populations in homogeneous matter in thermal
equilibrium by solving the Saha-Boltzmann equation. Currently it only works for
hydrogen, but it can be extended to any mixture of atoms.

/-----------------------\
| SOFTWARE DEPENDENCIES |
\-----------------------/

- Fortran compiler
- CMake

/--------------------------\
| COMPILATION INSTRUCTIONS |
\--------------------------/

CMake writes Makefiles for you, so that you (and I) don't have to. Compiling is
simple:

    cd sb_solver
    mkdir build
    cd build
    cmake ..
    make

Then use the included namelist (it expects the build directory to be called
"build" so you have to change that if you called it something else):

    cd ..
    ./run

/--------------------\
| READING THE OUTPUT |
\--------------------/

The output is just a file with a bunch of columns of data. The first column is
the temperature in Kelvin. The rest of the columns are the ion populations. In
the case of pure hydrogen, for example, the columns are

   [temperature]     [n_HI / n_H]     [n_HII / n_H]
        ...              ...                ...

/------------\
| REFERENCES |
\------------/

"Radiative Transfer in Stellar Atmospheres" by Rob Rutten. This is a free PDF
containing his lecture notes:
http://www.staff.science.uu.nl/~rutte101/rrweb/rjr-edu/coursenotes/rutten_rtsa_notes_2003.pdf

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.