cloudy trunk
Loading...
Searching...
No Matches
iso_create.cpp File Reference
#include "cddefines.h"
#include "atmdat.h"
#include "dense.h"
#include "elementnames.h"
#include "helike.h"
#include "helike_einsta.h"
#include "hydro_bauman.h"
#include "hydrogenic.h"
#include "hydroeinsta.h"
#include "iso.h"
#include "lines_service.h"
#include "opacity.h"
#include "phycon.h"
#include "physconst.h"
#include "secondaries.h"
#include "taulines.h"
#include "thirdparty.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)
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_bnl_set (long ipISO, long nelem)
void iso_collapsed_bnl_print (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

◆ FillExtraLymanLine()

STATIC void FillExtraLymanLine ( const TransitionList::iterator & t,
long ipISO,
long nelem,
long nHi )

Definition at line 977 of file iso_create.cpp.

References abscf(), DEBUG_ENTRY, GetGF(), H_Einstein_A(), ioQQQ, ipH_LIKE, ipHELIUM, iso_ctrl, iso_sp, iso_state_lifetime(), PI4, POW2, RefIndex(), RYD_INF, and STATIC.

Referenced by iso_create().

Here is the call graph for this function:

◆ iso_allocate()

◆ iso_assign_quantum_numbers()

STATIC void iso_assign_quantum_numbers ( void )

Definition at line 700 of file iso_create.cpp.

References ASSERT, chL, DEBUG_ENTRY, dense, ipDOUBLET, ipH1s, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, iso_sp, LIMELM, MIN2, NISO, POW2, S, STATIC, and TotalInsanity().

Referenced by iso_create().

Here is the call graph for this function:

◆ iso_cascade()

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 1101 of file iso_create.cpp.

References ASSERT, DEBUG_ENTRY, ex, ioQQQ, ipH_LIKE, ipHe2p3P0, ipHe2p3P1, ipHe2p3P2, ipHE_LIKE, ipHELIUM, IPRAD, iso_ctrl, iso_sp, L_, MALLOC, N_, opac, S, and S_.

Referenced by iso_collapsed_update(), and iso_create().

◆ iso_collapsed_Aul_update()

void iso_collapsed_Aul_update ( long ipISO,
long nelem )

iso_collapsed_Aul_update - update decays from collapsed levels

Parameters
ipISO
nelem

Definition at line 1760 of file iso_create.cpp.

References ASSERT, DEBUG_ENTRY, ipH_LIKE, ipHE_LIKE, iso_sp, L_, and TotalInsanity().

Referenced by iso_collapsed_update(), and iso_zero().

Here is the call graph for this function:

◆ iso_collapsed_bnl_print()

void iso_collapsed_bnl_print ( long ipISO,
long nelem )

iso_collapsed_bnl_print - print departure coefficients for collapsed levels

Parameters
ipISO
nelem

Definition at line 1714 of file iso_create.cpp.

References DEBUG_ENTRY, elementnames, ioQQQ, ipH_LIKE, ipHE_LIKE, iso_ctrl, and iso_sp.

◆ iso_collapsed_bnl_set()

void iso_collapsed_bnl_set ( long ipISO,
long nelem )

iso_collapsed_bnl_set - set departure coefficients for collapsed levels

Parameters
ipISO
nelem

these are just sanity checks, the interpolated value should be between values at interpolation points

Definition at line 1519 of file iso_create.cpp.

References ASSERT, DEBUG_ENTRY, dense, hunt_bisect(), ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, iso_sp, MAX2, MAX4, MIN2, MIN4, phycon, and TotalInsanity().

Referenced by iso_collapsed_update(), and iso_zero().

Here is the call graph for this function:

◆ iso_collapsed_lifetimes_update()

void iso_collapsed_lifetimes_update ( long ipISO,
long nelem )

iso_collapsed_lifetimes_update - update lifetimes of collapsed levels

Parameters
ipISO
nelem

Definition at line 1807 of file iso_create.cpp.

References ASSERT, DEBUG_ENTRY, iso_ctrl, iso_sp, PI4, and SMALLFLOAT.

Referenced by iso_collapsed_update(), and iso_zero().

◆ iso_create()

◆ iso_get_total_num_levels()

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 1465 of file iso_create.cpp.

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

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

Here is the call graph for this function:

◆ iso_satellite()

STATIC void iso_satellite ( void )
Todo
2 say where these come from

Definition at line 1328 of file iso_create.cpp.

References ASSERT, DEBUG_ENTRY, dense, elementnames, fixit(), ipCRDW, ipHE_LIKE, ipSatelliteLines, iso_ctrl, iso_sp, LIMELM, NISO, RYDLAM, SatelliteLines, and STATIC.

Referenced by iso_create().

Here is the call graph for this function:

◆ iso_satellite_update()

void iso_satellite_update ( long nelem)

iso_satellite_update - update iso satellite line information

Definition at line 1381 of file iso_create.cpp.

References abscf(), ATOMIC_MASS_UNIT, DEBUG_ENTRY, dense, dsexp(), ELECTRON_MASS, ERG1CM, GetGF(), HION_LTE_POP, ipHE_LIKE, ipSatelliteLines, iso_ctrl, iso_sp, max(), MIN2, NISO, phycon, PI4, SatelliteLines, SMALLDOUBLE, and SMALLFLOAT.

Referenced by ion_solver(), iso_create(), and lines().

Here is the call graph for this function:

◆ iso_state_lifetime()

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

◆ iso_update_num_levels()

void iso_update_num_levels ( long ipISO,
long nelem )

iso_update_num_levels - update level informations for iso sequences

Parameters
ipISO
nelem

Definition at line 1488 of file iso_create.cpp.

References ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, ioQQQ, iso_get_total_num_levels(), iso_sp, MAX2, and max_num_levels.

Referenced by InitCoreload(), InitCoreloadPostparse(), InitSimPostparse(), ParseAtomISO(), and ParseCompile().

Here is the call graph for this function:

◆ iso_zero()

STATIC void iso_zero ( void )

Definition at line 413 of file iso_create.cpp.

References DEBUG_ENTRY, dense, hydro, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, iso_collapsed_Aul_update(), iso_collapsed_bnl_set(), iso_collapsed_lifetimes_update(), iso_sp, LIMELM, NISO, and STATIC.

Referenced by iso_create().

Here is the call graph for this function:

Variable Documentation

◆ chL

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().