SpDust

A code to calculate Spinning Dust spectra

SpDust is an IDL program that evaluates the spinning dust emissivity for given, user-provided environmental conditions. It implements the theoretical formalism presented in the companion paper : Ali-Haïmoud, Hirata & Dickinson (arXiv:0812.2904).
Note that this code is provided "as is" and no guarantees are given regarding its accuracy.
Please cite the companion paper when using this code as part of any published work.

Please email any concerns or comments to yacine@tapir.caltech.edu.


Download the code here (December 2008 version).
Please send me an email to get the username and password.

Readme file (pdf format)

Example input parameters
Example output spectrum

Example IDL routine to run SpDust on a grid of number densities : nh_grid.pro, and a plot of the resulting spectra.


Quick start (check the readme for more details)

1- Before running the code :
Change the path for the folder Data_Files in the file compile_spdust.pro.

2- Open an IDL session form the SPDUST/SpDust_IDL_routines directory

3- Compile all the IDL routines by entering at the command line :
IDL> @compile_spdust
This needs to be done only once each time you start a new session.

4- Define your input parameters in a structure. Example :
IDL> input_params = {nh: 30d, T: 1d2, chi: 1d, xh: 1d-3, xc: 3d-4, y: 0d, gamma: 0d, dipole: 9.3d, line: 7}
(for a possible use of an input file, refer to the readme)

5- SpDust takes these input parameters as a first argument, and the full path of your desired output file as a second argument. Example :
IDL> SPDUST, input_params, '~/emiss.out'
For optional arguments (frequency range, etc...), check the readme.


Yacine Ali-Haïmoud
yacine@tapir.caltech.edu
Last revised : January 19th, 2009