cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
iso_create.cpp File Reference
#include "cddefines.h"
#include "atmdat_adfa.h"
#include "dense.h"
#include "helike.h"
#include "helike_einsta.h"
#include "hydro_bauman.h"
#include "hydrogenic.h"
#include "hydroeinsta.h"
#include "iso.h"
#include "opacity.h"
#include "phycon.h"
#include "taulines.h"
#include "mole.h"
#include "freebound.h"
#include "lines_service.h"
#include "prt.h"
Include dependency graph for iso_create.cpp:

Go to the source code of this file.

Functions

STATIC void iso_zero (void)
 
STATIC void iso_allocate (void)
 
STATIC void iso_assign_quantum_numbers (void)
 
STATIC void FillExtraLymanLine (const TransitionList::iterator &t, long ipISO, long nelem, long nHi)
 
STATIC void iso_satellite (void)
 
static vector< speciesisoSpecies (NISO)
 
void iso_setRedisFun (long ipISO, long nelem, long ipLo, long ipHi)
 
void iso_setOpacity (long ipISO, long nelem, long ipLo, long ipHi)
 
void iso_create (void)
 
double iso_state_lifetime (long ipISO, long nelem, long n, long l)
 
void iso_cascade (long ipISO, long nelem)
 
void iso_satellite_update (long nelem)
 
long iso_get_total_num_levels (long ipISO, long nmaxResolved, long numCollapsed)
 
void iso_update_num_levels (long ipISO, long nelem)
 
void iso_collapsed_Aul_update (long ipISO, long nelem)
 
void iso_collapsed_lifetimes_update (long ipISO, long nelem)
 

Variables

char chL [21] ={'S','P','D','F','G','H','I','K','L','M','N','O','Q','R','T','U','V','W','X','Y','Z'}
 

Function Documentation

STATIC void FillExtraLymanLine ( const TransitionList::iterator t,
long  ipISO,
long  nelem,
long  nHi 
)
STATIC void iso_allocate ( void  )
STATIC void iso_assign_quantum_numbers ( void  )
void iso_cascade ( long  ipISO,
long  nelem 
)

iso_cascade - calculate cascade probabilities, branching ratios, and associated errors

Parameters
ipISO
nelem

Cascade probabilities are as defined in Robbins 68, generalized here for cascade probability for any iso sequence. >>refer He triplets Robbins, R.R. 1968, ApJ 151, 497R >>refer He triplets Robbins, R.R. 1968a, ApJ 151, 511R

Definition at line 1233 of file iso_create.cpp.

References ASSERT, EmissionProxy::Aul(), t_iso_sp::BranchRatio, t_iso_sp::CascadeProb, DEBUG_ENTRY, TransitionProxy::Emis(), t_iso_sp::ex, t_iso_sp::fb, fprintf(), ioQQQ, ipH_LIKE, ipHe2p3P0, ipHe2p3P1, ipHe2p3P2, ipHE_LIKE, ipHELIUM, IPRAD, iso_ctrl, iso_sp, L_, t_opac::lgCaseB, t_isoCTRL::lgRandErrGen, MALLOC, N_, t_iso_sp::n_HighestResolved_max, t_iso_sp::nCollapsed_max, t_iso_sp::numLevels_max, opac, pow2(), S, S_, t_isoCTRL::SmallA, and t_iso_sp::trans().

Referenced by iso_collapsed_update(), and iso_create().

Here is the call graph for this function:

void iso_collapsed_Aul_update ( long  ipISO,
long  nelem 
)

iso_collapsed_Aul_update - update decays from collapsed levels

Parameters
ipISO
nelem

Definition at line 1649 of file iso_create.cpp.

References ASSERT, EmissionProxy::Aul(), t_iso_sp::CachedAs, DEBUG_ENTRY, TransitionProxy::Emis(), ipH_LIKE, ipHE_LIKE, iso_sp, L_, t_iso_sp::n_HighestResolved_max, t_iso_sp::nCollapsed_max, t_iso_sp::numLevels_max, t_iso_sp::QuantumNumbers2Index, t_iso_sp::st, TotalInsanity(), and t_iso_sp::trans().

Referenced by iso_collapsed_update(), and iso_zero().

Here is the call graph for this function:

void iso_collapsed_lifetimes_update ( long  ipISO,
long  nelem 
)

iso_collapsed_lifetimes_update - update lifetimes of collapsed levels

Parameters
ipISO
nelem

Definition at line 1697 of file iso_create.cpp.

References ASSERT, EmissionProxy::Aul(), EmissionProxy::dampXvel(), DEBUG_ENTRY, TransitionProxy::Emis(), iso_ctrl, iso_sp, t_iso_sp::numLevels_max, t_isoCTRL::SmallA, SMALLFLOAT, t_iso_sp::st, and t_iso_sp::trans().

Referenced by iso_collapsed_update(), and iso_zero().

Here is the call graph for this function:

void iso_create ( void  )
long iso_get_total_num_levels ( long  ipISO,
long  nmaxResolved,
long  numCollapsed 
)

iso_get_total_num_levels - get total number of levels with the given number of resolved and collapsed

Parameters
ipISO
nmaxResolved
numCollapsed

Definition at line 1595 of file iso_create.cpp.

References DEBUG_ENTRY, ipH_LIKE, ipHE_LIKE, and TotalInsanity().

Referenced by iso_allocate(), iso_continuum_lower(), iso_recomb_malloc(), and iso_update_num_levels().

Here is the call graph for this function:

STATIC void iso_satellite ( void  )
void iso_satellite_update ( long  nelem)
void iso_setOpacity ( long  ipISO,
long  nelem,
long  ipLo,
long  ipHi 
)

iso_setOpacity compute line opacity

Parameters
ipISOisoelectronic sequence
nelemelement index
ipLoindex to lower state
ipHiindex to upper state

Definition at line 82 of file iso_create.cpp.

References abscf(), ASSERT, TransitionProxy::Emis(), TransitionProxy::EnergyWN(), GetGF(), EmissionProxy::gf(), iso_ctrl, iso_sp, EmissionProxy::opacity(), t_isoCTRL::SmallA, and t_iso_sp::trans().

Referenced by DoFSMixing(), and iso_create().

Here is the call graph for this function:

void iso_setRedisFun ( long  ipISO,
long  nelem,
long  ipLo,
long  ipHi 
)

iso_setRedisFun assign the line redistribution function type

Parameters
ipISOisoelectronic sequence
nelemelement index
ipLoindex to lower state
ipHiindex to upper state

Definition at line 48 of file iso_create.cpp.

References TransitionProxy::Emis(), ipH_LIKE, ipHYDROGEN, ipLY_A, t_isoCTRL::ipLyaRedist, t_isoCTRL::ipResoRedist, t_isoCTRL::ipSubRedist, EmissionProxy::iRedisFun(), iso_ctrl, iso_sp, t_isoCTRL::nLyaLevel, and t_iso_sp::trans().

Referenced by DoFSMixing(), and iso_create().

Here is the call graph for this function:

double iso_state_lifetime ( long  ipISO,
long  nelem,
long  n,
long  l 
)

Definition at line 1189 of file iso_create.cpp.

References ASSERT, t_dense::AtomicWeight, DEBUG_ENTRY, dense, ipHE_LIKE, M, POW2, pow2(), pow4(), and powi().

Referenced by FillExtraLymanLine(), and SanityCheckBegin().

Here is the call graph for this function:

void iso_update_num_levels ( long  ipISO,
long  nelem 
)
STATIC void iso_zero ( void  )
static vector<species> isoSpecies ( NISO  )
static

Referenced by iso_allocate().

Variable Documentation

char chL[21] ={'S','P','D','F','G','H','I','K','L','M','N','O','Q','R','T','U','V','W','X','Y','Z'}

Definition at line 37 of file iso_create.cpp.

Referenced by iso_assign_quantum_numbers().