#include "cddefines.h"
#include "phycon.h"
#include "mole.h"
#include "hmi.h"
#include "taulines.h"
#include "h2.h"
#include "h2_priv.h"
Go to the source code of this file.
Defines | |
#define | SizeOf_line 300 |
#define | Num_fit_par 8 |
#define | nu 302 |
#define | nl 302 |
Functions | |
void | H2_Solomon_rate (void) |
void | H2_gs_rates (void) |
void | H2_zero_pops_too_low (void) |
void | mole_H2_LTE (void) |
void | H2_Init (void) |
void | H2_Reset (void) |
void | H2_Zero (void) |
long int | H2_He_coll_init (char FILE_NAME_IN[]) |
double | H2_He_coll (int init, int final, double temp) |
Variables | |
static double | fit_par [nu][nl][Num_fit_par] |
static int | defn [nu][nl] |
#define nl 302 |
#define nu 302 |
Definition at line 629 of file mole_h2_etc.cpp.
Referenced by GrainScreen(), H2_He_coll_init(), RT_diffuse(), and WaveFunction().
#define Num_fit_par 8 |
#define SizeOf_line 300 |
void H2_gs_rates | ( | void | ) |
H2_gs_rates evaluate rates between ground and star states of H2 for use in chemistry
Definition at line 153 of file mole_h2_etc.cpp.
References EmLine::Aul, DEBUG_ENTRY, DEBUG_EXIT, h2, H2_den_g, H2_dissprob, t_hmi::H2_H2g_to_H2s_rate_BigH2, H2_ipX_ener_sort, H2_populations, H2_rad_rate_out, H2Lines, hmi, ipRot_H2_energy_sort, ipVib_H2_energy_sort, t_h2::Jlowest, lgH2_line_exists, MAX2, mole, t_mole::n_h2_elec_states, nEner_H2_ground, t_h2::nRot_hi, t_h2::nVib_hi, EmLine::Pdest, EmLine::Pelec_esc, EmLine::Pesc, EmLine::pump, and SDIV().
Referenced by H2_LevelPops().
double H2_He_coll | ( | int | init, | |
int | final, | |||
double | temp | |||
) |
H2_He_coll Interpolate the rate coefficeints The range of the temperature is between 2K - 1e8K
init | ||
final | ||
temp |
Definition at line 739 of file mole_h2_etc.cpp.
References b2, defn, fit_par, and ioQQQ.
Referenced by H2_collid_rates().
long int H2_He_coll_init | ( | char | FILE_NAME_IN[] | ) |
H2_He_coll_init receives the name of the file that contrains the fitting coefficeints of all transitions and read into 3d vectors. It outputs 'test.out' to test the arrays return value is magic number
FILE_NAME_IN[] |
Definition at line 638 of file mole_h2_etc.cpp.
References defn, fit_par, ioQQQ, nl, nu, Num_fit_par, par, and SizeOf_line.
Referenced by H2_ReadCollRates().
void H2_Init | ( | void | ) |
&H2_Init - called by cdInit to init H2
Definition at line 396 of file mole_h2_etc.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, h2, t_h2::Jlowest, mole, N_H2_ELEC, t_mole::n_h2_elec_states, t_h2::nCallH2_this_zone, t_h2::nRot_hi, and t_h2::nVib_hi.
Referenced by zero().
void H2_Reset | ( | void | ) |
H2_Reset called to reset variables that are needed after an iteration
Definition at line 471 of file mole_h2_etc.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, fnzone, h2, ioQQQ, iteration, iterationAsEval, mole, nCallH2_this_iteration, nH2_pops, t_mole::nH2_TRACE, nH2_zone, nzone_nlevel_set, nzoneAsEval, t_h2::renorm_max, and t_h2::renorm_min.
Referenced by IterRestart().
void H2_Solomon_rate | ( | void | ) |
H2_Solomon_rate find rates between H2s and H2g and other levels, for use in the chemistry
Definition at line 22 of file mole_h2_etc.cpp.
References EmLine::Aul, DEBUG_ENTRY, DEBUG_EXIT, h2, H2_den_g, H2_den_s, H2_dissprob, t_hmi::H2_H2g_to_H2s_rate_BigH2, H2_ipX_ener_sort, H2_populations, H2_rad_rate_out, t_hmi::H2_Solomon_dissoc_rate_BigH2_H2g, t_hmi::H2_Solomon_dissoc_rate_BigH2_H2s, t_hmi::H2_Solomon_elec_decay_H2g, t_hmi::H2_Solomon_elec_decay_H2s, H2_sum_excit_elec_den, t_hmi::H2_total, H2Lines, hmi, iplo, ipRot_H2_energy_sort, ipVib_H2_energy_sort, t_h2::Jlowest, lgH2_line_exists, mole, t_mole::n_h2_elec_states, nEner_H2_ground, nLevels_per_elec, t_h2::nRot_hi, t_h2::nVib_hi, EmLine::Pdest, EmLine::Pelec_esc, EmLine::Pesc, EmLine::pump, SDIV(), and SMALLFLOAT.
Referenced by H2_LevelPops().
void H2_Zero | ( | void | ) |
zero out vars in the large H2 molecule, called from zero
Definition at line 510 of file mole_h2_etc.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, h2, t_hmi::H2_H2g_to_H2s_rate_BigH2, t_hmi::H2_photodissoc_BigH2_H2g, t_hmi::H2_photodissoc_BigH2_H2s, t_hmi::H2_Solomon_dissoc_rate_BigH2_H2g, t_hmi::H2_Solomon_dissoc_rate_BigH2_H2s, t_mole::H2_to_H_limit, t_hmi::HeatH2Dexc_BigH2, hmi, iterationAsEval, t_hmi::lgBigH2_evaluated, t_mole::lgColl_deexec_Calc, t_mole::lgColl_dissoc_coll, t_mole::lgColl_gbar, t_hmi::lgH2_Chemistry_BigH2, t_mole::lgH2_grain_deexcitation, t_mole::lgH2_He_Meudon, t_mole::lgH2_He_Stancil, t_mole::lgH2_LTE, t_mole::lgH2_NOISE, t_mole::lgH2_NOISECOSMIC, t_mole::lgH2_ortho_para_coll_on, lgH2_READ_DATA, t_hmi::lgH2_Thermal_BigH2, t_h2::lgH2ON, mole, N_H2_ELEC, t_mole::n_h2_elec_states, nCallH2_this_iteration, t_h2::nElecLevelOutput, nH2_pops, t_mole::nH2_TRACE, t_mole::nH2_trace_final, t_mole::nH2_trace_full, t_mole::nH2_trace_iterations, t_mole::nH2_trace_matrix, nH2_zone, nXLevelsMatrix, nzone_nlevel_set, nzoneAsEval, t_h2::ortho_density, t_h2::para_density, t_h2::renorm_max, and t_h2::renorm_min.
Referenced by zero().
void H2_zero_pops_too_low | ( | void | ) |
H2_zero_pops_too_low - zero out some H2 variables if we decide not to compute the full sim, called by H2_LevelPops
Definition at line 224 of file mole_h2_etc.cpp.
References EmLine::ColOvTot, EmLine::cool, DEBUG_ENTRY, DEBUG_EXIT, t_hmi::deriv_HeatH2Dexc_BigH2, EmLine::gHi, EmLine::gLo, h2, t_hmi::H2_H2g_to_H2s_rate_BigH2, H2_old_populations, t_hmi::H2_photodissoc_BigH2_H2g, t_hmi::H2_photodissoc_BigH2_H2s, H2_populations, H2_populations_LTE, t_hmi::H2_Solomon_dissoc_rate_BigH2_H2g, t_hmi::H2_Solomon_dissoc_rate_BigH2_H2s, t_hmi::H2_total, H2Lines, EmLine::heat, t_hmi::HeatH2Dexc_BigH2, t_hmi::HeatH2Dish_BigH2, hmi, t_h2::Jlowest, lgH2_line_exists, mole, t_mole::n_h2_elec_states, t_h2::nRot_hi, t_h2::nVib_hi, EmLine::ots, EmLine::phots, EmLine::PopHi, EmLine::PopLo, EmLine::PopOpc, pops_per_elec, pops_per_vib, and EmLine::xIntensity.
Referenced by H2_LevelPops().
void mole_H2_LTE | ( | void | ) |
mole_H2_LTE sets Boltzmann factors and LTE unit population of large H2 molecular
Definition at line 330 of file mole_h2_etc.cpp.
References ASSERT, DEBUG_ENTRY, DEBUG_EXIT, energy_wn, h2, H2_Boltzmann, H2_populations_LTE, H2_stat, ioQQQ, t_h2::Jlowest, mole, t_mole::n_h2_elec_states, t_mole::nH2_TRACE, t_mole::nH2_trace_full, t_h2::nRot_hi, t_h2::nVib_hi, phycon, sexp(), t_phycon::te, and t_phycon::te_wn.
Referenced by H2_LevelPops().
int defn[nu][nl] [static] |
double fit_par[nu][nl][Num_fit_par] [static] |