Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EmissionProxy Class Reference

#include <emission.h>

Collaboration diagram for EmissionProxy:

Public Types

typedef EmissionList list_type
 
typedef ProxyIterator
< EmissionProxy,
EmissionConstProxy
iterator
 
typedef ProxyIterator
< EmissionConstProxy,
EmissionConstProxy
const_iterator
 

Public Member Functions

 EmissionProxy ()
 
 EmissionProxy (EmissionList *list, int index)
 
void copy (const EmissionProxy &other)
 
void check () const
 
int & iRedisFun () const
 
long int & ipFine () const
 
realnumTauIn () const
 
realnumTauInSpecific () const
 
realnumTauTot () const
 
trackerTauTrack () const
 
realnumTauCon () const
 
realnumFracInwd () const
 
double & pump () const
 
double & xIntensity () const
 
double & xObsIntensity () const
 
realnumgf () const
 
realnumPesc () const
 
realnumPelec_esc () const
 
realnumPdest () const
 
realnum Pesc_total () const
 
realnum Ploss () const
 
realnumdampXvel () const
 
realnumdamp () const
 
double & ColOvTot () const
 
realnumAutoIonizFrac () const
 
realnumopacity () const
 
double & mult_opac () const
 
double & PopOpc () const
 
double & VoigtLineCen () const
 
realnumAul () const
 
double & ots () const
 
int & ipTran () const
 
TransitionProxy Tran () const
 

Private Attributes

EmissionListm_list
 
int m_index
 

Friends

class ProxyIterator< EmissionProxy, EmissionConstProxy >
 

Member Typedef Documentation

Constructor & Destructor Documentation

EmissionProxy::EmissionProxy ( )
inlineexplicit
EmissionProxy::EmissionProxy ( EmissionList list,
int  index 
)
inlineexplicit

Member Function Documentation

realnum & EmissionProxy::AutoIonizFrac ( ) const
inline

[dimensionless] branching ratio to auto-ionization, Sum(Aai) / ( Sum(Aul) + Sum(Aai) )

References EmissionList::m_AutoIonizFrac, m_index, and m_list.

Referenced by copy(), EmLineJunk(), read_UTA_lines(), and ReadBadnellAIData().

void EmissionProxy::check ( ) const
inline

all of these are set to dangerous values by EmLineJunk

References ASSERT, and ipTran().

Here is the call graph for this function:

double & EmissionProxy::ColOvTot ( ) const
inline

[dimensionless] ratio of collisional to radiative excitation, C_lu / ( C_lu + pump )

References EmissionList::m_ColOvTot, m_index, and m_list.

Referenced by atom_level2(), copy(), EmLineJunk(), EmLineZero(), and PutLine().

realnum & EmissionProxy::dampXvel ( ) const
inline

damping constant is dampXvel divided by line width units are velocity, since becomes dimensionless when div by line width in cm/2 [cm s-1]

References EmissionList::m_dampXvel, m_index, and m_list.

Referenced by copy(), InitDefaultsPreparse(), iso_create(), lindst(), radius_next(), read_UTA_lines(), ReadBadnellAIData(), RT_line_fine_opacity(), RT_line_one_escape(), RT_line_one_fine(), RT_LineWidth(), and Save1Line().

realnum & EmissionProxy::FracInwd ( ) const
inline

inward fraction [dimensionless] of total line emission

References EmissionList::m_FracInwd, m_index, and m_list.

Referenced by copy(), EmLineJunk(), EmLineZero(), PutLine(), RT_line_escape(), RT_line_one_escape(), RT_line_one_tau_reset(), and RT_tau_init().

long int & EmissionProxy::ipFine ( ) const
inline
int & EmissionProxy::ipTran ( ) const
inline
int & EmissionProxy::iRedisFun ( ) const
inline
type of redistribution function, 

-1 complete redis Doppler core only, 0 insanity 1 incomplete redistribution with damping wings, 2 complete redistribution with damping wings,

References m_index, EmissionList::m_iRedisFun, and m_list.

Referenced by copy(), EmLineJunk(), InitDefaultsPreparse(), iso_setRedisFun(), read_UTA_lines(), ReadBadnellAIData(), RT_continuum_shield_fcn_point(), RT_line_escape(), RT_line_one_escape(), RT_line_one_fine(), and RT_line_pumping().

realnum & EmissionProxy::opacity ( ) const
inline

atomic constant part of line opacity per atom, units: cm^3 / s divide by line width in cm/s, to get line center opacity per atom, or absorption cross section, with units cm^2 multiply by PopOpc to get PopOpc/dopper width, the true opacity (cm-1), then by length to get optical depth

References m_index, m_list, and EmissionList::m_opacity.

Referenced by copy(), EmLineJunk(), InitDefaultsPreparse(), iso_multiplet_opacities_one(), iso_setOpacity(), PressureRadiationLine(), radius_next(), RT_DestProb(), RT_line_all_escape(), RT_line_electron_scatter(), RT_line_escape(), RT_line_fine_opacity(), RT_line_one_tauinc(), RT_line_pumping(), RT_tau_init(), RT_tau_reset(), and RTesc_lya().

double & EmissionProxy::ots ( ) const
inline

ots rate [cm-3 s-1]

References m_index, m_list, and EmissionList::m_ots.

Referenced by atom_level2(), copy(), DumpLine(), EmLineJunk(), EmLineZero(), lines_hydro(), and RT_OTS().

realnum & EmissionProxy::Pelec_esc ( ) const
inline
realnum EmissionProxy::Pesc_total ( ) const
inline

total escape prob, from line and continuum scattering [dimensionless]

References Pelec_esc(), and Pesc().

Referenced by emit_frac(), lindst(), TransitionProxy::outline(), Ploss(), PutLine(), RT_diffuse(), set_xIntensity(), and setXtraRatesO1().

Here is the call graph for this function:

realnum EmissionProxy::Ploss ( ) const
inline

total loss from trapped line – escape & destruction [dimensionless]

References Pdest(), and Pesc_total().

Referenced by atom_level2(), diatomics::gs_rate(), diatomics::H2_PunchDo(), iso_level(), PutLine(), RT_tau_init(), and SaveDo().

Here is the call graph for this function:

double & EmissionProxy::pump ( ) const
inline

continuum pumping rate [s-1] from lower to upper level, A*occ num * g_up/g_lo, this is evaluated in RTMakeStat and RTMakeWind, which are called by HydroPEsc, RT_line_all

References m_index, m_list, and EmissionList::m_pump.

Referenced by atom_level2(), copy(), DoSatelliteLines(), DumpLine(), EmLineJunk(), EmLineZero(), iso_level(), IterStart(), PutLine(), radius_next(), RT_line_all_escape(), RT_line_driving(), RT_line_one_escape(), RT_line_pumping(), Save_Line_RT(), SaveDo(), and SaveHeat().

realnum & EmissionProxy::TauCon ( ) const
inline

TauCon - line optical depth [Napier] to the continuum source from the illuminated face to the current position. For an open or expanding closed geometry TauCon is equal to TauIn. For a static closed geometry TauCon is optical depth from the illuminated face to the current depth

References m_index, m_list, and EmissionList::m_TauCon.

Referenced by cdTemp(), copy(), EmLineJunk(), prt_trans_opc_debug(), RT_continuum_shield_fcn(), RT_line_one_tau_reset(), RT_line_one_tauinc(), RT_tau_init(), RT_tau_reset(), SaveDo(), and TauZero().

realnum & EmissionProxy::TauIn ( ) const
inline

optical depths - the escape probability is derived only from TauIn on first iteration. on later iterations it is the average of esc prob in inward (TauIn) and outward (TauTot - TauIn) directions TauIn - the total inward line optical depth [Napier], in the direction of the continuum source. This is measured from the illuminated face of the cloud to the current position on the first iteration, and on second and later iterations in an open geometry or in an expanding closed geometry. For a static spherical geometry TauIn is the sum of the optical depth from the current position to the illuminated face plus the optical depth on the "other side". At the illuminated face in a static spherical geometry TauIn is TauTot / 2. It includes the effects of line overlap.

References m_index, m_list, and EmissionList::m_TauIn.

Referenced by ConvIterCheck(), copy(), DumpLine(), EmLineJunk(), lgTauGood(), lines_helium(), prme(), prt_trans_opc_debug(), PrtComment(), radius_next(), RT_DestProb(), RT_line_escape(), RT_line_one_tau_reset(), RT_line_one_tauinc(), RT_LineWidth(), RT_stark(), RT_tau_init(), RT_tau_reset(), RTesc_lya(), Save1Line(), save_line(), Save_Line_RT(), SaveDo(), SaveHeat(), setXtraRatesFe2(), and TauZero().

realnum & EmissionProxy::TauInSpecific ( ) const
inline

TauInSpecific - the inward optical line depth [Napier], in the direction of the continuum source. This is much like TauIn(), except that it does not contain contributions from line overlap.

References m_index, m_list, and EmissionList::m_TauInSpecific.

Referenced by copy(), EmLineJunk(), prme(), RT_line_one_tau_reset(), RT_line_one_tauinc(), Save1Line(), SaveDo(), and TauZero().

realnum & EmissionProxy::TauTot ( ) const
inline

TauTot - total line optical depth [Napier] through the cloud. TauTot is not used on the first iteration since it is not known. On second and later iterations in an open or expanding closed geometry this is the total optical depth through the computed structure. For a static closed geometry this is twice the computed structure since the geometry is assumed to be symmetric.

when the double command is entered TauTot is set to twice the normal value to simulate the presence of material beyond the computed structure.

References m_index, m_list, and EmissionList::m_TauTot.

Referenced by ConvIterCheck(), copy(), DumpLine(), EmLineJunk(), lgTauGood(), lines_helium(), prt_trans_opc_debug(), PrtComment(), RT_DestProb(), RT_line_escape(), RT_line_one_tau_reset(), RT_line_one_tauinc(), RT_LineWidth(), RT_tau_init(), RT_tau_reset(), RTesc_lya(), SaveDo(), setXtraRatesFe2(), and TauZero().

tracker & EmissionProxy::TauTrack ( ) const
inline

TauTrack - track convergence of TauIn / TauTot This class will detect oscillations and adjust the next estimate for TauIn / TauTot if this occurs

References m_index, m_list, and EmissionList::m_TauTrack.

Referenced by copy(), and RT_line_one_tau_reset().

TransitionProxy EmissionProxy::Tran ( ) const
inline

References TransitionProxy::check(), ipTran(), m_list, and EmissionList::m_tlist.

Here is the call graph for this function:

double & EmissionProxy::VoigtLineCen ( ) const
inline

This variable is the Voigt profile value at line center. For lines with damp < 1, the normalized line center profile value is ~(1-damp) >>refer RT Rutten 2003 (online book)

References m_index, m_list, and EmissionList::m_VoigtLineCen.

Referenced by copy(), EmLineJunk(), EmLineZero(), PressureRadiationLine(), radius_next(), RT_line_escape(), RT_line_fine_opacity(), and RT_line_one_tauinc().

double & EmissionProxy::xIntensity ( ) const
inline
double & EmissionProxy::xObsIntensity ( ) const
inline

observed line intensity per unit time and vol [erg s-1 cm-3]; relative to xIntensity(), it includes correction for isotropic background radiation

References m_index, m_list, and EmissionList::m_xObsIntensity.

Referenced by atom_level2(), copy(), DoSatelliteLines(), EmLineJunk(), EmLineZero(), lindst(), lines(), lines_hydro(), randomize_inten(), RT_line_one_tau_reset(), and set_xIntensity().

Friends And Related Function Documentation

Member Data Documentation


The documentation for this class was generated from the following files: