[yt-svn] commit/yt-doc: brittonsmith: Adding documentation for the new x-ray emissivity fields.

Bitbucket commits-noreply at bitbucket.org
Fri Feb 15 11:10:27 PST 2013


1 new commit in yt-doc:

https://bitbucket.org/yt_analysis/yt-doc/commits/e7ac35cd6652/
changeset:   e7ac35cd6652
user:        brittonsmith
date:        2013-02-15 20:05:04
summary:     Adding documentation for the new x-ray emissivity fields.
affected #:  2 files

diff -r 7368992b965176f62a778545f86831a531d373e6 -r e7ac35cd6652bc264ec94f5944d1cd5088e4c4e2 source/analysis_modules/index.rst
--- a/source/analysis_modules/index.rst
+++ b/source/analysis_modules/index.rst
@@ -23,3 +23,4 @@
    radial_column_density
    sunrise_export
    ellipsoid_analysis
+   xray_emission_fields

diff -r 7368992b965176f62a778545f86831a531d373e6 -r e7ac35cd6652bc264ec94f5944d1cd5088e4c4e2 source/analysis_modules/xray_emission_fields.rst
--- /dev/null
+++ b/source/analysis_modules/xray_emission_fields.rst
@@ -0,0 +1,59 @@
+.. _xray_emission_fields:
+
+X-ray Emission Fields
+=====================
+.. sectionauthor:: Britton Smith <brittonsmith at gmail.com>
+
+This functionality provides the ability to create metallicity-dependent 
+X-ray luminosity, emissivity, and photo emissivity fields for a given 
+photon energy range.  This works by interpolating from emission tables 
+created with the photoionization code, `Cloudy <http://nublado.org/>`_.  
+If you installed yt with the install script, the data should be located in 
+the *data* directory inside the installation directory.  Emission fields can 
+be made for any interval between 0.1 keV and 100 keV.
+
+Adding Emission Fields
+----------------------
+
+Fields can be created for luminosity (erg/s), emissivity (erg/s/cm^3), 
+and photon emissivity (photons/s/cm^3).  The only required arguments are 
+the minimum and maximum energies.
+
+.. code-block:: python
+
+  from yt.mods import *
+  from yt.analysis_modules.spectral_integrator.api import \
+       add_xray_luminosity_field, \
+       add_xray_emissivity_field, \
+       add_xray_photon_emissivity_field
+
+  add_xray_luminosity_field(0.5, 7)
+  add_xray_emissivity_field(0.5, 7)
+  add_xray_photon_emissivity_field(0.5, 7)
+
+Additional keyword arguments are:
+
+ * **filename**  (*string*): Path to data file containing emissivity 
+   values.  If None, a file called xray_emissivity.h5 is used.  This file 
+   contains emissivity tables for primordial elements and for metals at 
+   solar metallicity for the energy range 0.1 to 100 keV.  Default: None.
+
+ * **with_metals** (*bool*): If True, use the metallicity field to add the 
+   contribution from metals.  If False, only the emission from H/He is 
+   considered.  Default: True.
+
+ * **constant_metallicity** (*float*): If specified, assume a constant 
+   metallicity for the emission from metals.  The *with_metals* keyword 
+   must be set to False to use this.  Default: None.
+
+The resulting fields can be used like all normal fields.
+
+.. code-block:: python
+
+  pf = load("enzo_tiny_cosmology/DD0046/DD0046")
+  plot = SlicePlot(pf, 'x', 'Xray_Luminosity_0.5_7keV')
+  plot.save()
+  plot = ProjectionPlot(pf, 'x', 'Xray_Emissivity_0.5_7keV')
+  plot.save()
+  plot = ProjectionPlot(pf, 'x', 'Xray_Photon_Emissivity_0.5_7keV')
+  plot.save()

Repository URL: https://bitbucket.org/yt_analysis/yt-doc/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list