Skip to content
X-ray absorption re-emission scattering - Monte Carlo simulator for X-ray obscurers
Python Fortran Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
binning
doc
example-blobs
example-grid
geometries
xsects
xspecexport
.gitignore
.travis.yml
LICENSE
README.rst
conda-requirements.txt
coordtrans.py
disk.py
logo3-large.png
logo3-mid.png
logo4-small.png
montecarlo.py
photons.py
plot_cascade.py
rdataaddmultiple.py
rdatapowerlaw.py
runsphere.sh
runtorus.sh
runtorusBN.sh
torus2.py
torusBN.py
torusC.py
torusG.py
torusL.py

README.rst

XARS X-ray Monte-carlo simulator

logo3-large.png

XARS simulates X-rays propagating through matter in user-defined geometries.

Features:

  • Physical processes:
    • Photo-electric absorption
    • Compton scattering
    • Fluorescent line emission (self-consistent with absorption above)
  • Geometries:
    • Arbitrary user-defined geometries (included examples: toroid, sphere, disk)
    • Arbitrary geometries made from many spherical blobs/clumps (when combined with LightRayRider)
    • Arbitrary grid geometries from hydrodynamic simulations (when combined with LightRayRider)

The code-base is small (few hundred lines) and written in pure Python. New contributions are welcome.

How to cite XARS correctly

Please reference Buchner et al (in prep).

Models

Go to the Models page.

In Buchner et al. (in prep) we irradiated the following geometries, and you can download xspec table models here.

  • Sphere, Sphere with Bi-conical cut-out
  • Clumpy model made from 100,000 spheres: Unified X-ray Clumpy model UXCLUMPY, CAT3D-WIND
  • Radiative fountain, from a hydrodynamic grid simulation
  • Warped Disk
  • ... and many others

Downloads, movies and more details on the Models page.

Installation

https://travis-ci.org/JohannesBuchner/xars.svg?branch=master

XARS requires the following python modules:

numpy scipy matplotlib h5py astropy progressbar2

You can install them with pip or conda as usual.

Once these are installed, you just run the scripts from this directory.

Usage

See the Code Tutorial to understand the code.

Questions and Problems

If you have any questions or issues or questions, please check the FAQ or open a Github issue. This helps other people google the same question.

License

Free and Open Source software under AGPLv3.

Contact me if you need a different license.

You can’t perform that action at this time.