Cloudy
Spectral Synthesis Code for Astrophysics
|
#include <cddefines.h>
Public Member Functions | |
t_wavl () | |
t_wavl (realnum w, wl_type t) | |
t_wavl | operator- () const |
realnum | wavlVac () const |
string | sprt_wl (const char *format=NULL) const |
void | prt_wl (FILE *io, const char *format=NULL) const |
Private Member Functions | |
realnum | p_convertWvl () const |
realnum | p_wlAirVac () const |
double | p_RefIndex (double EnergyWN) const |
Private Attributes | |
realnum | p_wavl |
wl_type | p_type |
type for declaring a wavelength with the type (air or vacuum) attached the wavelength is stored as it was supplied, but can be converted to vacuum by wavlVac()
|
inline |
References p_type, p_wavl, and WL_NATIVE.
Referenced by operator-().
|
inline |
|
private |
|
private |
calculate the index of refraction for STP air using the line energy
EnergyWN | - line energy in wavenumbers (cm^-1) |
References ASSERT, DEBUG_ENTRY, and pow2.
Referenced by p_wlAirVac(), and sprt_wl().
|
private |
convert air wavelength to vacuum
References DEBUG_ENTRY, p_RefIndex(), p_wavl, and sign().
Referenced by p_convertWvl().
void t_wavl::prt_wl | ( | FILE * | io, |
const char * | format = NULL ) const |
write wavelength to output stream
References DEBUG_ENTRY, fprintf(), LineSave, NULL, and sprt_wl().
Referenced by ContBandsCreate(), iso_radiative_recomb_effective(), lgCheckMonitors(), prt_line_err(), prt_line_inlist(), PrtLinePres(), PrtOneMonitor(), Save1Line(), and Save1LineData().
string t_wavl::sprt_wl | ( | const char * | format = NULL | ) | const |
convert wavelength to string for user output, can be either air or vacuum this depends on whether the PRINT LINE VACUUM command is in effect
References DEBUG_ENTRY, LineSave, NULL, p_RefIndex(), prt, and wavlVac().
Referenced by TransitionProxy::chLabel(), t_LineSave::findline(), getTransition(), LinSv::label(), ParseTest(), and prt_wl().
|
inline |
gives the vacuum wavelength of the line in angstrom
References p_convertWvl().
Referenced by findTrans_byWLAng(), iso_radiative_recomb_effective(), lgCheckMonitors(), LinSv::makeBlend(), ParseMonitorResults(), ParseSet(), and sprt_wl().
|
private |
wavelength type: air, vacuum, or native
Referenced by operator-(), p_convertWvl(), t_wavl(), and t_wavl().
|
private |
wavelength, in angstrom
Referenced by operator-(), p_convertWvl(), p_wlAirVac(), t_wavl(), and t_wavl().