Cloudy
Spectral Synthesis Code for Astrophysics
|
#include "cddefines.h"
#include "taulines.h"
#include "mewecoef.h"
#include "iterations.h"
#include "heavy.h"
#include "yield.h"
#include "trace.h"
#include "lines.h"
#include "struc.h"
#include "dynamics.h"
#include "elementnames.h"
#include "hyperfine.h"
#include "atmdat.h"
#include "iso.h"
#include "save.h"
#include "mole.h"
#include "two_photon.h"
#include "dense.h"
#include "lines_service.h"
#include "parser.h"
Classes | |
struct | t_BadnellLevel |
Enumerations | |
enum | exc_type { IS_NONE , IS_K_SHELL , IS_L1_SHELL , IS_L2_SHELL , IS_TOP } |
Functions | |
STATIC void | init_struc () |
STATIC void | read_level2_lines () |
STATIC void | read_mewe_gbar () |
STATIC void | read_Hummer_Storey () |
STATIC void | read_SH98_He1_cross_sections (void) |
STATIC void | read_Helike_cross_sections (void) |
STATIC void | ReadBadnellAIData (const string &fnam, long nelem, long ion, TransitionList &UTA, bitset< IS_TOP > Skip) |
STATIC void | validate_magic_number_1arg (const char *chFilename, FILE *ioFile, const long magicExp) |
STATIC void | validate_magic_number_3arg (const char *chFilename, FILE *ioFile, const long yearExp, const long monthExp, const long dayExp) |
STATIC void | read_UTA_lines () |
STATIC void | read_ionization_potentials () |
void | InitTransition (const TransitionProxy &t) |
int | irsl2ind (vector< t_BadnellLevel > &level, int irsl) |
void | atmdat_readin (void) |
Variables | |
const realnum | f_cutoff = 1.e-4f |
static const long | IP_MAGIC = 20221115 |
enum exc_type |
void atmdat_readin | ( | void | ) |
atmdat_readin read in some data files, but only if this is very first call
References ASSERT, atmdat, atmdat_2phot_setSplineCoefs(), atmdat_outer_shell(), cdEXIT, database_readin(), DEBUG_ENTRY, DynaCreateArrays(), EXIT_FAILURE, fprintf(), Heavy, HyperfineCreate(), init_struc(), t_yield::init_yield(), Singleton< t_yield >::Inst(), ioQQQ, iterations, LIMELM, lines_setup(), mole_global, nSpecies, nWindLine, read_Helike_cross_sections(), read_Hummer_Storey(), read_ionization_potentials(), read_level2_lines(), read_mewe_gbar(), read_SH98_He1_cross_sections(), read_UTA_lines(), struc, and TotalInsanity().
Referenced by cloudy(), and ParseCompile().
STATIC void init_struc | ( | ) |
References DEBUG_ENTRY, dense, fixit, ipHYDROGEN, iso_sp, iterations, LIMELM, MAX2, mole_global, NISO, STATIC, and struc.
Referenced by atmdat_readin().
|
inline |
References TransitionProxy::AddHiState(), TransitionProxy::AddLine2Stack(), and TransitionProxy::AddLoState().
Referenced by read_UTA_lines(), and ReadBadnellAIData().
|
inline |
References TotalInsanity().
Referenced by ReadBadnellAIData().
STATIC void read_Helike_cross_sections | ( | void | ) |
References ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, FFmtRead(), fprintf(), ioQQQ, ipCALCIUM, ipLITHIUM, OP_Helike_Energy, OP_Helike_NumPts, OP_Helike_Xsectn, open_data(), read_whole_line(), and STATIC.
Referenced by atmdat_readin().
STATIC void read_Hummer_Storey | ( | ) |
References ASSERT, atmdat, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, FILENAME_PATH_LENGTH_2, fprintf(), HS_NZ, ioQQQ, NHSDIM, NLINEHS, open_data(), STATIC, and trace.
Referenced by atmdat_readin().
STATIC void read_ionization_potentials | ( | ) |
References ASSERT, atmdat, DataParser::checkEOL(), DataParser::checkMagic(), DEBUG_ENTRY, ES_STARS_ONLY, DataParser::getline(), DataParser::getToken(), IP_MAGIC, ipHYDROGEN, LIMELM, Energy::Ryd(), and STATIC.
Referenced by atmdat_readin().
STATIC void read_level2_lines | ( | ) |
References AllTransitions, cdEXIT, cs1_flag_lev2, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, nWindLine, open_data(), read_whole_line(), STATIC, TauLine2, trace, and validate_magic_number_3arg().
Referenced by atmdat_readin().
STATIC void read_mewe_gbar | ( | ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, MeweCoef, open_data(), read_whole_line(), STATIC, trace, and validate_magic_number_1arg().
Referenced by atmdat_readin().
STATIC void read_SH98_He1_cross_sections | ( | void | ) |
References ASSERT, cdEXIT, cpu, DEBUG_ENTRY, EXIT_FAILURE, FFmtRead(), fprintf(), HS_He1_Energy, HS_He1_Xsectn, ioQQQ, min(), MIN2, NUM_HS98_DATA_POINTS, open_data(), read_whole_line(), S, STATIC, TotalInsanity(), and UNUSED.
Referenced by atmdat_readin().
STATIC void read_UTA_lines | ( | ) |
References AllTransitions, ASSERT, atmdat, TransitionList::begin(), cdEXIT, chIonLbl(), DEBUG_ENTRY, dprintf(), eina(), elementnames, EXIT_FAILURE, EXIT_SUCCESS, f_cutoff, fp_equal_tol(), fprintf(), InitTransition(), ioQQQ, ipAL_LIKE, ipIRON, ipLI_LIKE, ipMG_LIKE, ipNA_LIKE, ipPRD, IS_L1_SHELL, IS_L2_SHELL, LIMELM, NULL, open_data(), read_whole_line(), ReadBadnellAIData(), save, STATIC, strstr_s(), TotalInsanity(), trace, UTALines, validate_magic_number_3arg(), and wn2angVac().
Referenced by atmdat_readin().
STATIC void ReadBadnellAIData | ( | const string & | fnam, |
long | nelem, | ||
long | ion, | ||
TransitionList & | UTA, | ||
bitset< IS_TOP > | Skip ) |
References ASSERT, EmissionProxy::Aul(), EmissionProxy::AutoIonizFrac(), TransitionList::back(), TransitionList::begin(), EmissionProxy::dampXvel(), DEBUG_ENTRY, TransitionProxy::Emis(), TransitionProxy::EnergyWN(), f_cutoff, fprintf(), GetGF(), EmissionProxy::gf(), TransitionProxy::Hi(), InitTransition(), ioQQQ, ipPRD, EmissionProxy::iRedisFun(), irsl2ind(), IS_K_SHELL, IS_L1_SHELL, IS_L2_SHELL, IS_NONE, TransitionProxy::Lo(), mode_r, nint(), open_data(), TransitionList::pop_back(), TransitionList::push_back(), STATIC, TotalInsanity(), trace, and TransitionProxy::WLangVac().
Referenced by read_UTA_lines().
STATIC void validate_magic_number_1arg | ( | const char * | chFilename, |
FILE * | ioFile, | ||
const long | magicExp ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, read_whole_line(), and STATIC.
Referenced by read_mewe_gbar().
STATIC void validate_magic_number_3arg | ( | const char * | chFilename, |
FILE * | ioFile, | ||
const long | yearExp, | ||
const long | monthExp, | ||
const long | dayExp ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, read_whole_line(), and STATIC.
Referenced by read_level2_lines(), and read_UTA_lines().
const realnum f_cutoff = 1.e-4f |
Referenced by read_UTA_lines(), and ReadBadnellAIData().
|
static |
Referenced by read_ionization_potentials().