cloudy
trunk
|
#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"
Go to the source code of this file.
Data Structures | |
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 () |
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 |
enum exc_type |
Enumerator | |
---|---|
IS_NONE | |
IS_K_SHELL | |
IS_L1_SHELL | |
IS_L2_SHELL | |
IS_TOP |
Definition at line 32 of file atmdat_readin.cpp.
void atmdat_readin | ( | void | ) |
atmdat_readin read in some data files, but only if this is very first call
Definition at line 78 of file atmdat_readin.cpp.
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, t_iterations::iter_malloc, iterations, t_atmdat::lgChiantiHybrid, t_atmdat::lgChiantiOn, t_atmdat::lgInnerShellLine_on, t_atmdat::lgLamdaOn, t_atmdat::lgStoutHybrid, t_atmdat::lgStoutOn, LIMELM, lines_setup(), mole_global, t_iterations::nend, nSpecies, t_Heavy::nsShells, t_mole_global::num_total, nWindLine, t_struc::nzlim, read_Helike_cross_sections(), read_Hummer_Storey(), 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 | ( | ) |
Definition at line 236 of file atmdat_readin.cpp.
References t_struc::AccelGravity, t_struc::AccelTotalOutward, t_struc::coolstr, DEBUG_ENTRY, t_struc::DenMass, t_struc::DenParticles, dense, t_struc::depth, t_struc::depth_last, t_struc::drad, t_struc::drad_last, t_struc::drad_x_fillfac, t_struc::ednstr, fixit, t_struc::gas_phase, t_struc::GasPressure, t_struc::H2_abund, t_struc::hden, t_struc::heatstr, t_struc::hiistr, t_struc::histr, ipHYDROGEN, iso_sp, t_iterations::iter_malloc, iterations, t_dense::lgElmtOn, LIMELM, MALLOC, MAX2, mole_global, t_struc::molecules, t_iterations::nend, NISO, t_mole_global::num_calc, t_struc::nzlim, t_struc::o3str, t_struc::pres_radiation_lines_curr, t_struc::pressure, t_struc::StatesElem, struc, t_struc::testr, t_struc::volstr, t_struc::windv, t_struc::xIonDense, and t_struc::xLyman_depth.
Referenced by atmdat_readin().
|
inline |
Definition at line 1356 of file atmdat_readin.cpp.
References TransitionProxy::AddHiState(), TransitionProxy::AddLine2Stack(), and TransitionProxy::AddLoState().
Referenced by read_UTA_lines(), and ReadBadnellAIData().
|
inline |
Definition at line 1363 of file atmdat_readin.cpp.
References TotalInsanity().
Referenced by ReadBadnellAIData().
STATIC void read_Helike_cross_sections | ( | void | ) |
Definition at line 786 of file atmdat_readin.cpp.
References ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, FFmtRead(), FILENAME_PATH_LENGTH_2, fprintf(), ioQQQ, ipCALCIUM, ipHELIUM, ipHYDROGEN, ipLITHIUM, MALLOC, OP_Helike_Energy, OP_Helike_NumPts, OP_Helike_Xsectn, open_data(), and read_whole_line().
Referenced by atmdat_readin().
STATIC void read_Hummer_Storey | ( | ) |
Definition at line 532 of file atmdat_readin.cpp.
References ASSERT, atmdat, cdEXIT, DEBUG_ENTRY, t_atmdat::Density, t_atmdat::ElecTemp, t_atmdat::Emiss, EXIT_FAILURE, FILENAME_PATH_LENGTH_2, fprintf(), HS_NZ, ioQQQ, t_trace::lgTrace, t_atmdat::ncut, t_atmdat::nDensity, NHSDIM, NLINEHS, t_atmdat::ntemp, open_data(), and trace.
Referenced by atmdat_readin().
STATIC void read_level2_lines | ( | ) |
Definition at line 394 of file atmdat_readin.cpp.
References AllTransitions, cdEXIT, cs1_flag_lev2, DEBUG_ENTRY, TransitionList::Emis(), EXIT_FAILURE, FILENAME_PATH_LENGTH_2, fprintf(), ioQQQ, t_trace::lgTrace, MALLOC, nWindLine, open_data(), read_whole_line(), TransitionList::resize(), TauLine2, trace, and validate_magic_number_3arg().
Referenced by atmdat_readin().
STATIC void read_mewe_gbar | ( | ) |
Definition at line 481 of file atmdat_readin.cpp.
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, FILENAME_PATH_LENGTH_2, fprintf(), t_MeweCoef::g, ioQQQ, t_trace::lgTrace, MeweCoef, open_data(), read_whole_line(), trace, and validate_magic_number_1arg().
Referenced by atmdat_readin().
STATIC void read_SH98_He1_cross_sections | ( | void | ) |
Definition at line 637 of file atmdat_readin.cpp.
References ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, FFmtRead(), FILENAME_PATH_LENGTH_2, fprintf(), HS_He1_Energy, HS_He1_Xsectn, ioQQQ, MALLOC, MIN2, N, NUM_HS98_DATA_POINTS, open_data(), read_whole_line(), S, TotalInsanity(), and UNUSED.
Referenced by atmdat_readin().
STATIC void read_UTA_lines | ( | ) |
Definition at line 1434 of file atmdat_readin.cpp.
References AllTransitions, ASSERT, atmdat, EmissionProxy::Aul(), EmissionProxy::AutoIonizFrac(), TransitionList::back(), TransitionList::begin(), cdEXIT, t_elementnames::chElementSym, chIonLbl(), EmissionProxy::dampXvel(), DEBUG_ENTRY, dprintf(), eina(), elementnames, TransitionProxy::Emis(), TransitionList::Emis(), TransitionProxy::EnergyWN(), EXIT_FAILURE, EXIT_SUCCESS, f_cutoff, FILENAME_PATH_LENGTH_2, fp_equal_tol(), fprintf(), EmissionProxy::gf(), TransitionProxy::Hi(), InitTransition(), ioQQQ, ipAL_LIKE, ipIRON, ipLI_LIKE, ipMG_LIKE, ipNA_LIKE, ipPRD, t_save::ipSDSFile, EmissionProxy::iRedisFun(), IS_L1_SHELL, IS_L2_SHELL, t_atmdat::lgInnerShell_Kisielius, t_save::lgSDSOn, t_trace::lgTrace, t_atmdat::lgUTAprint, LIMELM, TransitionProxy::Lo(), open_data(), TransitionList::pop_back(), TransitionList::push_back(), read_whole_line(), ReadBadnellAIData(), RefIndex(), TransitionList::reserve(), save, TransitionList::size(), strstr_s(), TotalInsanity(), trace, UTALines, validate_magic_number_3arg(), and TransitionProxy::WLAng().
Referenced by atmdat_readin().
STATIC void ReadBadnellAIData | ( | const string & | fnam, |
long | nelem, | ||
long | ion, | ||
TransitionList & | UTA, | ||
bitset< IS_TOP > | Skip | ||
) |
Definition at line 1174 of file atmdat_readin.cpp.
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, t_trace::lgTrace, TransitionProxy::Lo(), mode_r, nint(), open_data(), TransitionList::pop_back(), TransitionList::push_back(), TotalInsanity(), trace, and TransitionProxy::WLAng().
Referenced by read_UTA_lines().
STATIC void validate_magic_number_1arg | ( | const char * | chFilename, |
FILE * | ioFile, | ||
const long | magicExp | ||
) |
Definition at line 1374 of file atmdat_readin.cpp.
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, FILENAME_PATH_LENGTH_2, fprintf(), ioQQQ, and read_whole_line().
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 | ||
) |
Definition at line 1402 of file atmdat_readin.cpp.
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, FILENAME_PATH_LENGTH_2, fprintf(), ioQQQ, and read_whole_line().
Referenced by read_level2_lines(), and read_UTA_lines().
const realnum f_cutoff = 1.e-4f |
Definition at line 76 of file atmdat_readin.cpp.
Referenced by read_UTA_lines(), and ReadBadnellAIData().