Cloudy
Spectral Synthesis Code for Astrophysics
|
#include <rfield.h>
Public Member Functions | |
Spectrum () | |
void | resize (long int nbins) |
void | accumulate_flux (const double this_cumulfac, double timestep, double total_time) |
double | get_flux (long int accType, long int ip) const |
double | get_time_avg_flux () const |
vector< realnum > & | operator[] (int accType) |
Private Attributes | |
vector< realnum > | flux [2] |
double | norm |
double | time_avg_flux |
long int | nflux |
|
inline |
References norm, and time_avg_flux.
|
inline |
References DEBUG_ENTRY, flux, fp_equal(), mean, nflux, norm, and time_avg_flux.
Referenced by IterEnd().
|
inline |
References ASSERT, Accumulate::CUMULATIVE, DEBUG_ENTRY, flux, Accumulate::INSTANTANEOUS, nflux, and norm.
Referenced by flux_correct_isotropic(), and flxCell().
|
inline |
References time_avg_flux.
|
inline |
References ASSERT, Accumulate::CUMULATIVE, flux, and Accumulate::INSTANTANEOUS.
void Spectrum::resize | ( | long int | nbins | ) |
References ASSERT, flux, nflux, and vzero().
Referenced by rfield_opac_alloc().
|
private |
flux[0] holds the steady-state continuum flux emitted by a cloud; in a dynamical run, this should be understood as the instantaneous continuum of the cloud flux[1] holds the total flux accumulated over a dynamical run; the cumulative continuum may easily overflow single-precision storage; for this reason, the total flux is scaled by the normalization factor below; in a steady-state run it is all zero
Referenced by accumulate_flux(), get_flux(), operator[](), and resize().
|
private |
vector lengths
Referenced by accumulate_flux(), get_flux(), and resize().
|
private |
cumulative spectrum normalization factor
Referenced by accumulate_flux(), get_flux(), and Spectrum().
|
private |
time-averaged flux
Referenced by accumulate_flux(), get_time_avg_flux(), and Spectrum().