Subroutine XSTAR

This is a version of XSTAR which retains most of the functionality of the full code, but which provides a framework whereby XSTAR can be called as a subroutine from another program, or whereby XSTAR can be applied to situations which do not employ the standard assumptions concerning, e.g. the gas density distribution, geometry, or time-steady behavior. This consists of a large fortran file xstarsub.f90 containing all of the subroutines employed by the standard XSTAR, together with two primary subroutines: xstarsetup and xstarcalc. As implied by the names, xstarsetup is intended to be called once at the beginning of a calculation and handles reading of input data and initialization; xstarcalc calculates the physical conditions at one point in a photoionized gas and returns level populations, emissivities, opacities, etc. In addition there is a calling program which is intended to illustrate the use of these subroutines. Subroutine XSTAR also requires the the fits data file, atdb.fits, and must be linked to the cfitsio subroutine library. All are available via ftp from

 
https://heasarc.gsfc.nasa.gov/FTP/software/plasma_codes/xstar/subroutine