cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
transition.cpp File Reference
#include "cddefines.h"
#include "version.h"
#include "dense.h"
#include "elementnames.h"
#include "lines.h"
#include "opacity.h"
#include "phycon.h"
#include "radius.h"
#include "rfield.h"
#include "rt.h"
#include "taulines.h"
#include "conv.h"
#include "lines_service.h"
#include "prt.h"
Include dependency graph for transition.cpp:

Go to the source code of this file.

Functions

double emit_frac (const TransitionProxy &t)
 
double GetLineRec (long int ip, long int lWl)
 
void DumpLine (const TransitionProxy &t)
 
double OccupationNumberLine (const TransitionProxy &t)
 
double TexcLine (const TransitionProxy &t)
 
string chIonLbl (const TransitionProxy &t)
 
string chIonLbl (const long &nelem, const long &IonStg)
 
void PutCS (double cs, const TransitionProxy &t)
 
string GenerateTransitionConfiguration (const TransitionProxy &t)
 
void PutLine (const TransitionProxy &t, const char *chComment, const char *chLabelTemp, const ExtraInten &extra)
 
void PutLine (const TransitionProxy &t, const char *chComment, const char *chLabelTemp)
 
void PutLine (const TransitionProxy &t, const char *chComment)
 
void LineConvRate2CS (const TransitionProxy &t, realnum rate)
 
STATIC void gbar0 (double ex, realnum *g)
 
STATIC void gbar1 (double ex, realnum *g)
 
void MakeCS (const TransitionProxy &t)
 

Variables

map< std::string, std::vector
< TransitionProxy > > 
blends
 

Function Documentation

string chIonLbl ( const TransitionProxy t)
string chIonLbl ( const long &  nelem,
const long &  IonStg 
)
void DumpLine ( const TransitionProxy t)
double emit_frac ( const TransitionProxy t)
returns fraction of populations that produce emission
Parameters
*t

Definition at line 88 of file transition.cpp.

References ASSERT, TransitionProxy::associated(), EmissionProxy::Aul(), t_dense::cdsqte, CollisionProxy::col_str(), TransitionProxy::Coll(), DEBUG_ENTRY, dense, TransitionProxy::Emis(), TransitionProxy::ipCont(), EmissionProxy::Pdest(), and EmissionProxy::Pesc_total().

Referenced by lines().

Here is the call graph for this function:

STATIC void gbar0 ( double  ex,
realnum g 
)

Definition at line 501 of file transition.cpp.

References DEBUG_ENTRY, phycon, POW2, and t_phycon::te.

Referenced by MakeCS().

STATIC void gbar1 ( double  ex,
realnum g 
)

Definition at line 550 of file transition.cpp.

References DEBUG_ENTRY, phycon, POW2, and t_phycon::te.

Referenced by MakeCS().

string GenerateTransitionConfiguration ( const TransitionProxy t)

GenerateTransitionConfiguration - given const TransitionList::iterator &t, writes a label t->Lo->chConfig() - t->Hi->chConfig() (i.e., 2^3S - 2^3P)

Parameters
ttransition
Returns
comment string

Definition at line 309 of file transition.cpp.

References TransitionProxy::Hi(), and TransitionProxy::Lo().

Referenced by iso_comment_tran_levels().

Here is the call graph for this function:

double GetLineRec ( long int  ip,
long int  lWl 
)

Definition at line 107 of file transition.cpp.

References cdEXIT, DEBUG_ENTRY, dense, t_dense::eden, EXIT_FAILURE, fprintf(), ioQQQ, LineSave, t_LineSave::RecCoefCNO, and t_dense::xIonDense.

Referenced by lines().

Here is the call graph for this function:

void LineConvRate2CS ( const TransitionProxy t,
realnum  rate 
)
convert down coll rate back into electron cs in case other parts of code need this for reference 
Parameters
*t- line struct collision strength is stored in t->cs
rate- deexcitation rate, units s-1

Definition at line 484 of file transition.cpp.

References ASSERT, t_dense::cdsqte, CollisionProxy::col_str(), TransitionProxy::Coll(), DEBUG_ENTRY, dense, and TransitionProxy::Hi().

Here is the call graph for this function:

void MakeCS ( const TransitionProxy t)

MakeCS compute collision strength by g-bar approximations

Parameters
*t

Definition at line 576 of file transition.cpp.

References CollisionProxy::col_str(), TransitionProxy::Coll(), DEBUG_ENTRY, dense, TransitionProxy::Emis(), TransitionProxy::EnergyK(), TransitionProxy::EnergyWN(), gbar0(), gbar1(), EmissionProxy::gf(), TransitionProxy::Hi(), and t_dense::xIonDense.

Referenced by dBaseUpdateCollCoeffs(), and HyperfineCreate().

Here is the call graph for this function:

double OccupationNumberLine ( const TransitionProxy t)

OccupationNumberLine - derive the photon occupation number at line center for any line

Parameters
*t

Definition at line 177 of file transition.cpp.

References ASSERT, DEBUG_ENTRY, TransitionProxy::Emis(), TransitionProxy::Hi(), TransitionProxy::ipCont(), TransitionProxy::Lo(), EmissionProxy::Pesc(), EmissionProxy::PopOpc(), and SMALLFLOAT.

Referenced by H21_cm_pops(), and SaveDo().

Here is the call graph for this function:

void PutCS ( double  cs,
const TransitionProxy t 
)

PutCS enter a collision strength into an individual line struc

Parameters
cs
*tthe line struc

Definition at line 296 of file transition.cpp.

References ASSERT, CollisionProxy::col_str(), TransitionProxy::Coll(), and DEBUG_ENTRY.

Referenced by CoolDima(), and CoolHyperfine().

Here is the call graph for this function:

void PutLine ( const TransitionProxy t,
const char *  chComment,
const char *  chLabelTemp,
const ExtraInten extra 
)
void PutLine ( const TransitionProxy t,
const char *  chComment,
const char *  chLabel 
)

PutLine enter local line intensity into the intensity stack for eventual printout

Parameters
*ttransition structure for line
*chCommenta description of the line
*chLabelthe line label

Definition at line 423 of file transition.cpp.

References DEBUG_ENTRY, and PutLine().

Here is the call graph for this function:

void PutLine ( const TransitionProxy t,
const char *  chComment 
)
enter lines into the line storage array, called once per zone for each line
Parameters
xIntenxInten - local emissivity per unit vol, no fill fac
wavelengthlam integer wavelength
*chLabstring label for ion
chInfocharacter type of entry for line - 'c' cooling, 'h' heating, 'i' info only, 'r' recom line
*chCommentstring explaining line PutLine enter local line intensity into the intensity stack for eventual printout
*ttransition structure for line
*chCommenta description of the line

Definition at line 431 of file transition.cpp.

References DEBUG_ENTRY, and PutLine().

Here is the call graph for this function:

double TexcLine ( const TransitionProxy t)

TexcLine derive excitation temperature of line from contents of line array

Parameters
*t

Definition at line 204 of file transition.cpp.

References DEBUG_ENTRY, TransitionProxy::EnergyK(), TransitionProxy::Hi(), TransitionProxy::Lo(), and SMALLFLOAT.

Referenced by DumpLine(), H21_cm_pops(), radius_increment(), and SaveDo().

Here is the call graph for this function:

Variable Documentation

map<std::string,std::vector<TransitionProxy> > blends

Definition at line 36 of file transition.cpp.

Referenced by ParseMonitorResults().