About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/ionbal.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 ionbal Context: guide

Synopsis

Calculate collisional ionization equilibrium ion balance.

Syntax

result = ionbal(Z, ion, temperature)

Description

`ionbal' calculates the fractional abundance of an ion in collisional ionization equilibrium at a particular temperature or temperatures. By default, the ionization balance of Mazzotta et al. (1998, A&AS, v133, p403) is used.

ionbal is a GUIDE routine, which must be initialized using the require("guide") command in chips or sherpa. GUIDE uses the optional ATOMDB database, and this command will fail if the ATOMDB is not available on your system.

Example 1

sherpa> require("guide")
GUIDE Initialized using ATOMDB v1.3.0
sherpa> o7 = ionbal(8,7,1.e6)
sherpa> print(o7)
0.986722
sherpa> o8 = ionbal(8,8,1.e6)
sherpa> print(o8)
0.00876597

Puts the fractional abundance of O VII in collisional equilibrium at T = 1.e6 K into the S-lang variable o7, and the fractional abundance of O VIII at the same temperature into the variable o8. The variable name is arbitrary. This demonstrates that observing an O VII line in a 1.e6 K plasma is not unusual, but a strong O VIII would be unexpected.

Example 2

chips> require("guide")
GUIDE Initialized using ATOMDB v1.3.0
chips> T = [1.e5:1.e7:1.e4]
chips> fe17 = ionbal(26, 17, T)
chips> curve(T,fe17)

This shows how to set up a vector of temperatures T(from 1.e5 to 1.e7 K, in steps of 1.e4 K) and then calculate the fractional abundance of Fe XVII at those temperatures, putting the result into the S-lang variable fe17. Alternatively, a logarithmically spaced temperature vector could be created with T = 10^[5:7:0.1]. The ionization balance is then plotted using the command "curve( T, fe17 )".

Parameters

name type ftype min max units reqd
Z integer input 1 28   yes
Ion integer input 1 28   yes
T float input 1.E4 1.E9 K yes

Detailed Parameter Descriptions

Parameter=Z (integer required filetype=input min=1 max=28)

The atomic number for the element of interest.

Parameter=Ion (integer required filetype=input min=1 max=28)

The ion number (starting at 1 for the neutral ion) for the ion of interest.

Parameter=T (float required filetype=input min=1.E4 max=1.E9 units=K)

The temperature(s) (in K or keV) of interest. Values below 100 are assumed to be in keV; values above this are in K. Data are only available between 10^4 - 10^9 K.

Bugs

See the Sherpa bug pages online for an up-to-date listing of known bugs.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.