Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
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 "hydro_tbl.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 "save.h"
#include "rfield.h"
Include dependency graph for iso_create.cpp:

Functions

STATIC void iso_zero (void)
 
STATIC void iso_allocate (void)
 
STATIC void iso_assign_quantum_numbers (void)
 
STATIC void iso_assign_extralyman_levels ()
 
STATIC void FillExtraLymanLine (const TransitionList::iterator &t, long ipISO, long nelem, long nHi, double j)
 
STATIC void iso_satellite (void)
 
static vector< speciesisoSpecies (NISO)
 
int getL (char l)
 
void iso_setRedisFun (long ipISO, long nelem, long ipLo, long ipHi)
 
void iso_setOpacity (long ipISO, long nelem, long ipLo, long ipHi)
 
double hydro_energy (long nelem, long n, long l, long s, long j)
 
void iso_create ()
 
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)
 

Variables

static const 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,
double j )

◆ getL()

int getL ( char l)

References chL, and toupper().

Referenced by HeCollidSetup().

Here is the call graph for this function:

◆ hydro_energy()

double hydro_energy ( long nelem,
long n,
long l,
long s,
long j )

References ASSERT, DEBUG_ENTRY, fprintf(), ioQQQ, ipH_LIKE, iso_sp, POW2, and QN2ind().

Referenced by iso_create(), and lines_hydro().

Here is the call graph for this function:

◆ iso_allocate()

◆ iso_assign_extralyman_levels()

◆ iso_assign_quantum_numbers()

STATIC void iso_assign_quantum_numbers ( void )

References ASSERT, chL, DEBUG_ENTRY, dense, ipDOUBLET, ipH1s, ipH2p, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipSINGLET, ipTRIPLET, 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

References ASSERT, DEBUG_ENTRY, fprintf(), ioQQQ, ipH_LIKE, ipHe2p3P0, ipHe2p3P1, ipHe2p3P2, ipHE_LIKE, ipHELIUM, IPRAD, iso_ctrl, iso_sp, L_, N_, opac, pow2, S, and S_.

Referenced by iso_collapsed_update(), and iso_create().

Here is the call graph for this function:

◆ 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

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

Referenced by iso_continuum_lower(), iso_recomb_alloc(), 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

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

Referenced by iso_create().

◆ iso_satellite_update()

void iso_satellite_update ( long nelem)

iso_satellite_update - update iso satellite line information

References abscf(), DEBUG_ENTRY, dense, dsexp(), GetGF(), ipHE_LIKE, ipSatelliteLines, iso_ctrl, iso_sp, max(), MIN2, NISO, phycon, powpq(), SatelliteLines, SMALLDOUBLE, and SMALLFLOAT.

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

Here is the call graph for this function:

◆ iso_setOpacity()

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

References abscf(), ASSERT, GetGF(), iso_ctrl, and iso_sp.

Referenced by iso_create().

Here is the call graph for this function:

◆ iso_setRedisFun()

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

References ipH_LIKE, ipHYDROGEN, ipLY_A, iso_ctrl, and iso_sp.

Referenced by iso_create().

◆ iso_state_lifetime()

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

References ASSERT, DEBUG_ENTRY, dense, ipHE_LIKE, pow(), POW2, pow2, pow4(), and powi().

Referenced by FillExtraLymanLine(), and SanityCheckBegin().

Here is the call graph for this function:

◆ 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

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

Referenced by InitCoreloadPostparse(), InitSimPostparse(), iso_init(), ParseCompile(), and ParseDatabaseISO().

Here is the call graph for this function:

◆ iso_zero()

STATIC void iso_zero ( void )

◆ isoSpecies()

static vector< species > isoSpecies ( NISO )
static

References NISO.

Referenced by iso_allocate().

Variable Documentation

◆ chL

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