|
cloudy
trunk
|
#include "cddefines.h"#include "cddrive.h"#include "geometry.h"#include "radius.h"#include "rfield.h"#include "opacity.h"#include "grid.h"
Go to the source code of this file.
Functions | |
| void | cdSPEC (int nOption, long int nEnergy, double ReturnedSpectrum[]) |
| void | cdSPEC2 (int nOption, long int nEnergy, long ipLoEnergy, long ipHiEnergy, realnum ReturnedSpectrum[]) |
| void cdSPEC | ( | int | Option, |
| long int | nEnergy, | ||
| double | ReturnedSpectrum[] | ||
| ) |
this routine returns the spectrum needed for Keith Arnaud's XSPEC X-Ray analysis code. It should be called after cdDrive has successfully computed a model. The calling routine must ensure that the vectors have enough space to store the resulting spectrum, given the bounds and energy resolution
| Option | option - the type of spectrum to be returned
1 the incident continuum 4\pi nuJ_nu, , erg cm-2 s-1
2 the attenuated incident continuum, same units
3 the reflected continuum, same units
4 diffuse continuous emission outward direction
5 diffuse continuous emission, reflected
6 collisional+recombination lines, outward
7 collisional+recombination lines, reflected
all lines and continuum emitted by the cloud assume full coverage of
continuum source |
| nEnergy | the number of cells + 1 |
| ReturnedSpectrum[] | the returned spectrum, same size is two energy spectra (see option), returns nEnergy -1 pts |
Definition at line 20 of file cdspec.cpp.
References t_mesh::anu(), t_mesh::anu2(), ASSERT, cdEXIT, t_rfield::ConEmitOut, t_rfield::ConEmitReflec, t_rfield::ConRefIncid, t_geometry::covgeo, DEBUG_ENTRY, EXIT_FAILURE, t_rfield::flux, t_rfield::flux_total_incident, fprintf(), geometry, ioQQQ, t_geometry::lgSphere, t_rfield::nflux, t_rfield::nflux_with_check, t_rfield::outlin, t_radius::r1r0sq, radius, t_rfield::reflin, rfield, and t_mesh::widflx().
Referenced by SaveNewContinuum().

| void cdSPEC2 | ( | int | nOption, |
| long int | nEnergy, | ||
| long | ipLoEnergy, | ||
| long | ipHiEnergy, | ||
| realnum | ReturnedSpectrum[] | ||
| ) |
Definition at line 151 of file cdspec.cpp.
References ASSERT, cdEXIT, t_rfield::ConEmitOut, t_rfield::ConEmitReflec, t_rfield::ConRefIncid, t_geometry::covgeo, DEBUG_ENTRY, EXIT_FAILURE, t_opac::ExpmTau, t_rfield::flux, t_rfield::flux_total_incident, fprintf(), geometry, t_rfield::getCoarseTransCoef(), ioQQQ, t_geometry::lgSphere, t_rfield::nflux, t_rfield::nflux_with_check, NUM_OUTPUT_TYPES, opac, t_rfield::outlin, t_radius::r1r0sq, radius, t_rfield::reflin, rfield, and SMALLFLOAT.

1.8.5