/home66/gary/public_html/cloudy/c10_branch/source/lines_service.h File Reference

Go to the source code of this file.

Defines

#define LOWDEN_LYMAN   0

Functions

void linadd (double xInten, realnum wavelength, const char *chLab, char chInfo, const char *chComment)
void outline_base (double dampXvel, double damp, bool lgTransStackLine, long int ip, double phots, realnum inwd, double nonScatteredFraction)
void outline_base_bin (bool lgTransStackLine, long int ip, double phots, realnum inwd, double nonScatteredFraction)
void lindst (double xInten, realnum wavelength, const char *chLab, long int ipnt, char chInfo, bool lgOutToo, const char *chComment)
void lindst (double dampXvel, double damp, double xInten, realnum wavelength, const char *chLab, long int ipnt, char chInfo, bool lgOutToo, const char *chComment)
void lindst (transition *t, const char *chLab, char chInfo, bool lgOutToo, const char *chComment)
double emergent_line (double emissivity_in, double emissivity_out, long int ipCont)
void PntForLine (double wavelength, const char *chLabel, long int *ipnt)
double GetGF (double eina, double enercm, double gup)
double eina (double gf, double enercm, double gup)
double abscf (double gf, double enercm, double gl)
double RefIndex (double EnergyWN)
realnum WavlenErrorGet (realnum wavelength)
void EmLineJunk (emission *t)
void CollisionJunk (collision *t)
void StateJunk (quantumState *t)
void EmLineZero (emission *t)
void CollisionZero (collision *t)
void StateZero (quantumState *t)
double ConvRate2CS (realnum gHi, realnum rate)
double ConvCrossSect2CollStr (double CrsSectCM2, double gLo, double E_ProjectileRyd, double reduced_mass_grams)
double totlin (int chInfo)

Define Documentation

#define LOWDEN_LYMAN   0

setting true will use low-density Lyman branching ratios

Definition at line 129 of file lines_service.h.


Function Documentation

double abscf ( double  gf,
double  enercm,
double  gl 
)

abscf convert gf into absorption coefficient

Parameters:
gf 
enercm 
gl 

Definition at line 73 of file lines_service.cpp.

References ASSERT, and DEBUG_ENTRY.

Referenced by ContCreatePointers(), FeIIPoint(), FillExtraLymanLine(), H2_Create(), iso_create(), and iso_satellite_update().

void CollisionJunk ( collision t  ) 

CollisionJunk set all elements of emission struc to dangerous values

Parameters:
*t 

collision rate coefficient, [cm^3 s-1], upper to lower

Definition at line 700 of file lines_service.cpp.

References t_collision::col_str, t_collision::col_stri, t_collision::ColUL, t_collision::cool, DEBUG_ENTRY, t_collision::heat, and ipNCOLLIDER.

Referenced by transition::Junk().

void CollisionZero ( collision t  ) 

CollisionZero set all elements of collision struc to zero

Parameters:
*t 

Definition at line 797 of file lines_service.cpp.

References t_collision::ColUL, t_collision::cool, DEBUG_ENTRY, and t_collision::heat.

Referenced by transition::Zero().

double ConvCrossSect2CollStr ( double  CrsSectCM2,
double  gLo,
double  E_ProjectileRyd,
double  reduced_mass_grams 
)

convert collisional deexcitation cross section for into collision strength

Parameters:
CrsSectCM2 - the cross section
gLo - statistical weight of lower level of transition
E_ProjectileRyd - initial projectile energy in Rydbergs
reduced_mass_grams - reduced mass MpMt/(Mp+Mt) of projectile-target system

Definition at line 840 of file lines_service.cpp.

References ASSERT, BOHR_RADIUS_CM, DEBUG_ENTRY, ELECTRON_MASS, and PI.

Referenced by collision_strength_VF01(), hydro_vs_coll_str(), and S62_Therm_ave_coll_str().

double ConvRate2CS ( realnum  gHi,
realnum  rate 
)

convert down coll rate back into electron cs in case other parts of code need this for reference

Parameters:
gHi - stat weight of upper level
rate - deexcitation rate, units s-1

Definition at line 821 of file lines_service.cpp.

References ASSERT, t_dense::cdsqte, DEBUG_ENTRY, and dense.

Referenced by oi_cs().

double eina ( double  gf,
double  enercm,
double  gup 
)

eina convert a gf into an Einstein A

Parameters:
gf 
enercm 
gup 

Definition at line 35 of file lines_service.cpp.

References DEBUG_ENTRY, POW2, and TRANS_PROB_CONST.

Referenced by atmdat_readin(), and ContCreatePointers().

double emergent_line ( double  emissivity_in,
double  emissivity_out,
long int  ipCont 
)

absorption due to continuous opacity

Parameters:
emissivity [erg cm-3 s-1] in inward direction
emissivity [erg cm-3 s-1] in outward direction
array index for continuum frequency

Definition at line 291 of file lines_service.cpp.

References t_opac::albedo, ASSERT, DEBUG_ENTRY, t_opac::E2TauAbsFace, t_opac::E2TauAbsOut, t_opac::E2TauAbsTotal, geometry, iteration, t_geometry::lgSphere, t_rfield::nupper, opac, and rfield.

Referenced by lincom(), lines_continuum(), and RT_diffuse().

void EmLineJunk ( emission t  ) 
void EmLineZero ( emission t  ) 
double GetGF ( double  eina,
double  enercm,
double  gup 
)
void linadd ( double  xInten,
realnum  wavelength,
const char *  chLab,
char  chInfo,
const char *  chComment 
)
void lindst ( transition t,
const char *  chLab,
char  chInfo,
bool  lgOutToo,
const char *  chComment 
)

put forbidden line into stack, using index derived below

Parameters:
t -- pointer to transition data
wavelength wavelength Angstroms
*chLab string label for ion
ipnt offset of line in continuum mesh
chInfo character type of entry for line - 'c' cooling, 'h' heating, 'i' info only, 'r' recom line
lgOutToo should line be included in outward beam?
*chComment string explaining line

Definition at line 554 of file lines_service.cpp.

References t_emission::damp, t_emission::dampXvel, DEBUG_ENTRY, transition::Emis, transition::ipCont, lindst(), transition::WLAng, and t_emission::xIntensity.

Here is the call graph for this function:

void lindst ( double  dampXvel,
double  damp,
double  xInten,
realnum  wavelength,
const char *  chLab,
long int  ipnt,
char  chInfo,
bool  lgOutToo,
const char *  chComment 
)

put forbidden line into stack, using index derived below

Parameters:
dampXvel - damping constant times Doppler velocity
damp - damping constant
xInten - local emissivity per unit vol
wavelength wavelength Angstroms
*chLab string label for ion
ipnt offset of line in continuum mesh
chInfo character type of entry for line - 'c' cooling, 'h' heating, 'i' info only, 'r' recom line
lgOutToo should line be included in outward beam?
*chComment string explaining line

Definition at line 505 of file lines_service.cpp.

References t_rfield::anu, ASSERT, t_geometry::covrt, DEBUG_ENTRY, EN1RYD, geometry, t_LineSave::ipass, lincom(), LineSave, outline_base(), and rfield.

Here is the call graph for this function:

void lindst ( double  xInten,
realnum  wavelength,
const char *  chLab,
long int  ipnt,
char  chInfo,
bool  lgOutToo,
const char *  chComment 
)

put forbidden line into stack, using index derived below

Parameters:
xInten - local emissivity per unit vol
wavelength wavelength Angstroms
*chLab string label for ion
ipnt offset of line in continuum mesh
chInfo character type of entry for line - 'c' cooling, 'h' heating, 'i' info only, 'r' recom line
lgOutToo should line be included in outward beam?
*chComment string explaining line

Definition at line 458 of file lines_service.cpp.

References t_rfield::anu, ASSERT, t_geometry::covrt, DEBUG_ENTRY, EN1RYD, geometry, t_LineSave::ipass, lincom(), LineSave, outline_base_bin(), and rfield.

Referenced by H2_LinesAdd(), lindst(), lines(), lines_continuum(), lines_general(), lines_hydro(), lines_lv1_k_zn(), lines_lv1_li_ne(), lines_lv1_na_ar(), and PutLine_base().

Here is the call graph for this function:

void outline_base ( double  dampXvel,
double  damp,
bool  lgTransStackLine,
long int  ip,
double  phots,
realnum  inwd,
double  nonScatteredFraction 
)

Definition at line 352 of file lines_service.cpp.

References t_rfield::anu, ASSERT, DEBUG_ENTRY, DO_PROFILE, t_rfield::egamry, t_rfield::emm, ipoint(), MAX2, MIN2, normalizeProfile(), outline_base_bin(), rfield, SPEEDLIGHT, and vfun().

Referenced by lindst(), and transition::outline().

Here is the call graph for this function:

void outline_base_bin ( bool  lgTransStackLine,
long int  ip,
double  phots,
realnum  inwd,
double  nonScatteredFraction 
)
void PntForLine ( double  wavelength,
const char *  chLabel,
long int *  ipnt 
)

PntForLine generate pointer for forbidden line

Parameters:
wavelength wavelength of line in Angstroms
*chLabel label for the line
*ipnt this is array index on the f, not c scale, for the continuum cell holding the line

Definition at line 573 of file lines_service.cpp.

References ASSERT, cdEXIT, DEBUG_ENTRY, ioQQQ, t_LineSave::ipass, ipLineEnergy(), LineSave, and RYDLAM.

Referenced by lines(), lines_general(), lines_lv1_k_zn(), lines_lv1_li_ne(), and lines_lv1_na_ar().

Here is the call graph for this function:

double RefIndex ( double  EnergyWN  ) 

RefIndex calculates the index of refraction of air using the line energy in wavenumbers, used to convert vacuum wavelengths to air wavelengths.

Parameters:
EnergyWN 

Definition at line 92 of file lines_service.cpp.

References ASSERT, and DEBUG_ENTRY.

Referenced by atmdat_CHIANTI_readin(), atmdat_LAMDA_readin(), Fe11Lev5(), Fe13Lev5(), Fe3Lev14(), Fe7Lev8(), FeIICreate(), FillExtraLymanLine(), H2_Create(), iso_create(), lines_continuum(), and lines_setup().

void StateJunk ( quantumState t  ) 

StateJunk set all elements of quantumState struc to dangerous values

Parameters:
*t 

statistical weight [dimensionless]

population of state [cm-3]

ion stage of element, 1 for atom, 2 ion, etc

atomic number of element, 1 for H, 2 for He, etc

Definition at line 722 of file lines_service.cpp.

References t_quantumState::chLabel, DEBUG_ENTRY, t_quantumState::g, t_quantumState::IonStg, t_quantumState::nelem, t_quantumState::Pop, and t_quantumState::sp.

Referenced by AddState2Stack(), and InitCoreloadPostparse().

void StateZero ( quantumState t  ) 

StateZero set all elements of quantumState struc to zero

Parameters:
*t 

population of state [cm-3]

Definition at line 810 of file lines_service.cpp.

References DEBUG_ENTRY, and t_quantumState::Pop.

Referenced by AddState2Stack(), and transition::Zero().

double totlin ( int  chInfo  ) 

totlin sum total intensity of cooling, recombination, or intensity lines

Parameters:
chInfo chInfor is 1 char,
'i' information,
'r' recombination or
'c' collision

Definition at line 863 of file lines_service.cpp.

References cdEXIT, DEBUG_ENTRY, ioQQQ, LineSave, LineSv, t_LineSave::nsum, and t_tag_LineSv::SumLine.

Referenced by badprt(), lgConserveEnergy(), and PrtFinal().

realnum WavlenErrorGet ( realnum  wavelength  ) 

WavlenErrorGet - given the real wavelength in A for a line routine will find the error expected between the real wavelength and the wavelength printed in the output, with 4 sig figs,

Parameters:
wavelength 
Returns:
function returns difference between exact and 4 sig fig wl, so we have found correct line is fabs(d wl) < return

Definition at line 133 of file lines_service.cpp.

References ASSERT, DEBUG_ENTRY, LineSave, pow(), and t_LineSave::sig_figs.

Referenced by cdEmis(), cdLine(), debugLine(), GetOptLineInt(), lgCheckMonitors(), ParseNorm(), and PrtFinal().

Here is the call graph for this function:

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Nov 2012 for cloudy by  doxygen 1.6.1