Go to the source code of this file.
Data Structures | |
struct | t_rt |
Defines | |
#define | DEST0 SMALLFLOAT |
#define | LINE_CONT_SHIELD_PESC 1 |
#define | LINE_CONT_SHIELD_FEDERMAN 2 |
#define | LINE_CONT_SHIELD_FERLAND 3 |
Functions | |
void | RT_line_all (void) |
double | RT_line_driving (void) |
void | RT_line_one (transition *t, bool lgShield_this_zone, realnum pestrk, realnum DopplerWidth) |
double | RT_continuum_shield_fcn (transition *t) |
void | RT_diffuse (void) |
void | RT_continuum (void) |
void | RT_OTS (void) |
void | RT_OTS_AddLine (double ots, long int ip) |
void | RT_OTS_Update (double *SumOTS) |
void | RT_OTS_Zero (void) |
void | RT_OTS_ChkSum (long int ipPnt) |
void | RT_line_one_tauinc (transition *t, long int mas_species, long int mas_ion, long int mas_hi, long int mas_lo, realnum DopplerWidth) |
void | RT_tau_init (void) |
void | RT_line_one_tau_reset (transition *t) |
void | RT_tau_reset (void) |
void | RT_tau_inc (void) |
void | RT_OTS_PrtRate (double weak, int chFlag) |
double | esc_PRD_1side (double tau, double a) |
double | esc_CRDwing_1side (double tau, double a) |
double | RTesc_lya (double *esin, double *dest, double abund, long int ipZ, realnum DopplerWidth) |
double | esc_CRDwing (double tau, double tout, double damp) |
double | esc_CRDcore (double tau, double tout) |
double | esc_PRD (double tau, double tout, double damp) |
double | esca0k2 (double taume) |
double | esccon (double tau, double hnukt) |
double | RT_DestProb (double abund, double crsec, long int ipanu, double widl, double escp, int nCore) |
double | RT_LineWidth (const transition *t, realnum DopplerWidth) |
double | RT_DestHummer (double beta) |
double | RT_recom_effic (long int ip) |
void | RT_stark (void) |
Variables | |
EXTERN struct t_rt | rt |
#define DEST0 SMALLFLOAT |
DEST0 is the smallest destruction probability to return in high metallicity models
Definition at line 226 of file rt.h.
Referenced by RT_OTS(), and RTesc_lya_1side().
#define LINE_CONT_SHIELD_FEDERMAN 2 |
Definition at line 286 of file rt.h.
Referenced by InitDefaultsPreparse(), ParseSet(), and RT_continuum_shield_fcn().
#define LINE_CONT_SHIELD_FERLAND 3 |
Definition at line 287 of file rt.h.
Referenced by ParseSet(), and RT_continuum_shield_fcn().
#define LINE_CONT_SHIELD_PESC 1 |
these are all possible values of rt.nLineContShield, first is default, these are set with set continuum shielding
Definition at line 285 of file rt.h.
Referenced by ParseSet(), and RT_continuum_shield_fcn().
double esc_CRDcore | ( | double | tau, | |
double | tout | |||
) |
esc_CRDcore escape probability CRD with no wings, for subordinate lines
tau | ||
tout |
Definition at line 339 of file rt_escprob.cpp.
References ASSERT, DEBUG_ENTRY, esca0k2(), t_rt::fracin, iteration, MIN2, rt, SCALE, t_rt::wayin, and t_rt::wayout.
Referenced by RT_line_escape().
double esc_CRDwing | ( | double | tau, | |
double | tout, | |||
double | damp | |||
) |
esc_CRDwing escape probability CRD with wings, for subordinate lines
tau | ||
tout | ||
damp |
Definition at line 285 of file rt_escprob.cpp.
References ASSERT, DEBUG_ENTRY, esc_CRDwing_1side(), t_rt::fracin, iteration, MIN2, rt, SCALE, t_rt::wayin, and t_rt::wayout.
Referenced by RT_line_escape().
double esc_CRDwing_1side | ( | double | tau, | |
double | a | |||
) |
esc_CRDwing_1side fundamental escape probability radiative transfer routine, for complete redistribution
Definition at line 116 of file rt_escprob.cpp.
References DEBUG_ENTRY, esca0k2(), and SQRTPI.
Referenced by DrvEscP(), esc_CRDwing(), and RT_continuum_shield_fcn().
double esc_PRD | ( | double | tau, | |
double | tout, | |||
double | damp | |||
) |
esc_PRD escape probability radiative transfer for incomplete redistribution
tau | ||
tout | ||
damp |
Definition at line 240 of file rt_escprob.cpp.
References ASSERT, DEBUG_ENTRY, esc_PRD_1side(), t_rt::fracin, iteration, rt, SCALE, t_rt::wayin, and t_rt::wayout.
Referenced by RT_line_escape().
double esc_PRD_1side | ( | double | tau, | |
double | a | |||
) |
esc_PRD_1side fundamental escape probability radiative transfer routine for incomplete redistribution
tau | ||
a |
Definition at line 63 of file rt_escprob.cpp.
References ASSERT, DEBUG_ENTRY, escmase(), MIN2, pow(), and rt.
Referenced by DrvEscP(), esc_PRD(), hmole_reactions(), lines_lv1_k_zn(), RT_continuum_shield_fcn(), and RT_LineWidth().
double esca0k2 | ( | double | taume | ) |
esca0k2 derive Hummer's K2 escape probability for Doppler core only
taume |
Definition at line 392 of file rt_escprob.cpp.
References DEBUG_ENTRY, escmase(), and SQRTPI.
Referenced by DrvEscP(), esc_CRDcore(), esc_CRDwing_1side(), RT_continuum_shield_fcn(), and th85rate_co().
double esccon | ( | double | tau, | |
double | hnukt | |||
) |
escpcn continuum escape probability
tau | ||
hnukt |
Definition at line 527 of file rt_escprob.cpp.
References my_Integrand_escConE2::chnukt_ContTkt, my_Integrand_conrec::chnukt_ContTkt, my_Integrand_escConE2::chnukt_ctau, DEBUG_ENTRY, and Integrator< Integrand, Method >::sum().
Referenced by RT_recom_effic().
void RT_continuum | ( | void | ) |
RT_continuum attenuation of diffuse and beamed continua
Definition at line 67 of file rt_continuum.cpp.
References t_rfield::anu, ASSERT, cdEXIT, t_rfield::chContLabel, t_rfield::chLineLabel, cmshft(), t_colden::colden, colden, t_rfield::ConEmitLocal, t_rfield::ConEmitOut, t_rfield::ConEmitReflec, t_rfield::ConInterOut, t_rfield::ConRefIncid, t_rfield::convoc, t_hextra::CrsSecNeutron, DEBUG_ENTRY, dense, t_radius::depth, t_rfield::DiffuseEscape, t_geometry::DirectionalCosin, t_radius::drad, t_radius::drad_x_fillfac, t_radius::dRadSign, t_radius::dVolOutwrd, e2(), t_opac::E2TauAbsFace, t_opac::E2TauAbsOut, EN1RYD, t_rfield::EnergyDiffCont, t_rfield::EnergyIncidCont, t_opac::ExpmTau, t_opac::ExpZone, t_rfield::fine_opac_zone, t_rfield::fine_opt_depth, t_rfield::flux, t_rfield::flux_beam_const, t_rfield::flux_beam_time, t_rfield::flux_isotropic, t_rfield::flux_total_incident, t_dense::gas_phase, geometry, hextra, ioQQQ, ipCOL_H0, ipH_LIKE, ipHYDROGEN, t_iso::ipIsoLevNIonCon, t_rfield::ipnt_coarse_2_fine, t_rfield::ipPlasma, iso, iteration, t_trace::lgConBug, t_hextra::lgNeutrnHeatOn, t_rfield::lgOpacityFine, t_opac::lgOpacNeg, t_opac::lgScatON, t_geometry::lgSphere, t_trace::lgTrace, MAX2, t_rfield::nfine, t_rfield::nflux, nzone, t_rfield::OccNumbContEmitOut, t_rfield::OccNumbDiffCont, t_rfield::OccNumbIncidCont, opac, t_opac::opacity_abs, t_opac::opacity_sct, t_rfield::otscon, t_rfield::otslin, t_rfield::outlin, t_rfield::outlin_noplot, pnegopc(), POW2, t_radius::r1r0sq, t_radius::Radius, radius, t_rfield::reflin, rfield, t_radius::rinner, SDIV(), sexp(), ShowMe(), SMALLFLOAT, t_rfield::SummedCon, t_rfield::SummedDif, t_opac::TauAbsFace, t_opac::TauAbsGeo, t_opac::TauAbsTotal, t_opac::TauScatFace, t_opac::TauScatGeo, t_opac::TauTotalGeo, TestCode(), t_opac::tmn, TotalInsanity(), t_hextra::totneu, trace, t_rfield::trans_coef_total, t_rfield::trans_coef_zone, and t_dense::xIonDense.
Referenced by cloudy().
double RT_continuum_shield_fcn | ( | transition * | t | ) |
rt_continuum_shield_fcn computing continuum shielding due to single line
t |
Definition at line 29 of file rt_continuum_shield_fcn.cpp.
References ASSERT, conpmp(), t_emission::damp, DEBUG_ENTRY, transition::Emis, esc_CRDwing_1side(), esc_PRD_1side(), esca0k2(), ipCRD, ipCRDW, ipLY_A, ipPRD, t_emission::iRedisFun, LINE_CONT_SHIELD_FEDERMAN, LINE_CONT_SHIELD_FERLAND, LINE_CONT_SHIELD_PESC, MIN2, t_rt::nLineContShield, pow(), POW2, rt, SDIV(), sexp(), t_emission::TauCon, and TotalInsanity().
Referenced by RT_line_pumping().
double RT_DestHummer | ( | double | beta | ) |
beta | beta is ratio of continuum to mean line opacity, |
Definition at line 939 of file rt_escprob.cpp.
References ASSERT, and DEBUG_ENTRY.
double RT_DestProb | ( | double | abund, | |
double | crsec, | |||
long int | ipanu, | |||
double | widl, | |||
double | escp, | |||
int | nCore | |||
) |
RT_DestProb returns line destruction probability due to continuum opacity
abund | abundance of species | |
crsec | its line absorption cross section | |
ipanu | pointer to energy within continuum array, to get background opacity, this is on the f not c scale | |
widl | line width | |
escp | escape probability | |
nCore | type of redistribution function |
Definition at line 673 of file rt_escprob.cpp.
References t_opac::albedo, t_rfield::anu, ASSERT, cdEXIT, conv, DEBUG_ENTRY, fp_equal(), ioQQQ, ipDEST_INCOM, ipDEST_K2, ipDEST_SIMPL, ipH1s, ipH2p, ipH_LIKE, ipHYDROGEN, MIN2, t_rfield::nflux, t_conv::nTotalIoniz, nzone, opac, t_opac::opacity_abs, POW2, rfield, SQRTPI, and Transitions.
Referenced by RT_line_escape().
void RT_diffuse | ( | void | ) |
RT_diffuse fill in DiffCont array with diffuse emission for this zone
Definition at line 34 of file rt_diffuse.cpp.
References t_rfield::anu, t_rfield::anu2, t_iso::As2nu, ASSERT, atmdat_outer_shell(), t_radius::BeamInOut, t_radius::BeamOutOut, t_iso::CaseBCheck, t_emission::ColOvTot, t_rfield::ConEmitLocal, t_rfield::ConInterOut, t_rfield::ConOTS_local_photons, t_rfield::ConSourceFcnLocal, t_rfield::ContBoltz, t_rfield::convoc, CoolHeavy, dBaseLines, DEBUG_ENTRY, dense, t_rfield::DiffuseEscape, t_rfield::DiffuseLineEmission, DumpLine(), t_radius::dVolOutwrd, t_dense::eden, emergent_line(), transition::Emis, EN1RYD, t_opac::ExpmTau, FeII_RT_Out(), t_rfield::flux, t_rfield::flux_beam_const, t_rfield::flux_beam_time, t_rfield::flux_isotropic, t_emission::FracInwd, t_rfield::gff, GrainVar::GrainEmission, GrainMakeDiffuse(), gv, H2_RT_diffuse(), Heavy, HFLines, transition::Hi, hmi, t_hmi::Hmolec, HPLANCK, t_dense::IonHigh, t_dense::IonLow, ioQQQ, t_Heavy::ipBalHeavy, transition::ipCont, t_opac::ipElement, t_rfield::ipEnergyBremsThin, ipH1s, ipH_LIKE, ipHe2s3S, ipHE_LIKE, t_Heavy::ipHeavy, ipHELIUM, iphi, t_hmi::iphmin, t_opac::iphmop, t_opac::iphmra, ipHYDROGEN, t_iso::ipIsoLevNIonCon, t_Heavy::ipLyHeavy, t_rfield::ipMaxBolt, ipMH2p, ipMH3p, ipMHeHp, ipoint(), t_iso::ipOpac, t_rfield::ipPlasma, ipRecEsc, t_iso::ipSym2nu, t_iso::ipTwoPhoE, iso, lgAbort, t_iso::lgDielRecom, GrainVar::lgDustOn(), t_dense::lgElmtOn, t_CoolHeavy::lgFreeOn, GrainVar::lgGrainPhysicsOn, t_iso::lgInd2nu_On, t_rfield::lgKillOutCont, t_rfield::lgKillOutLine, t_trace::lgTrace, LIMELM, linesAdded2, MAX2, MILNE_CONST, MIN2, t_quantumState::nelem, t_rfield::nflux, nHFLines, NISO, nLevel1, t_Heavy::nsShells, t_iso::numLevels_local, t_iso::numLevels_max, t_rfield::nupper, nWindLine, nzone, t_rfield::OccNumbDiffCont, opac, t_opac::opacity_abs, t_opac::OpacStack, t_rfield::otscon, t_rfield::otslin, t_rfield::outlin, t_rfield::outlin_noplot, transition::outline_resonance(), t_emission::phots, phycon, POW2, radius, t_iso::RadRec_caseB, t_Heavy::RadRecCon, t_iso::RadRecCon, t_iso::RadRecomb, t_rfield::reflin, rfield, RYD_INF, safe_div(), SatelliteLines, SEXP_LIMIT, SMALLFLOAT, t_phycon::sqrte, t_iso::stat_ion, StatesElemNEW, t_rfield::SummedOcc, TauLine2, TauLines, t_phycon::te, TE1RYD, t_phycon::te_ryd, t_opac::tmn, t_rfield::TotDiff2Pht, trace, t_emission::tran, Transitions, TwoS, t_rfield::widflx, t_dense::xIonDense, t_iso::xIsoLevNIonRyd, and t_Heavy::xLyaHeavy.
Referenced by AGN_Hemis(), and cloudy().
void RT_line_all | ( | void | ) |
MakeRT drive static or wind metal line radiative transfer,
Definition at line 26 of file rt_line_all.cpp.
References atmdat_2phot_rate(), t_dense::AtomicWeight, t_fe2ovr_la::atoms_fe2ovr(), conv, cosmology, dBaseTrans, DEBUG_ENTRY, dense, t_radius::drad_x_fillfac_mean, t_hydro::dstfe2lya, DumpLine(), transition::Emis, ExtraLymanLines, t_rfield::fine_opac_velocity_width, t_rfield::fine_opac_zone, t_species::fmolweight, fnzone, GetDopplerWidth(), H2_RTMake(), transition::Hi, hydro, Singleton< t_fe2ovr_la >::Inst(), t_dense::IonHigh, ioQQQ, transition::ipCont, t_rfield::ipFineConVelShift, ipH1s, ipH2p, ipH_LIKE, ipHE_LIKE, ipHYDROGEN, ipTFe56, iso, t_opac::lgCaseB_no_pdest, t_iso::lgDielRecom, t_cosmology::lgDo, t_rfield::lgDoLineTrans, t_dense::lgElmtOn, t_conv::lgFirstSweepThisZone, t_conv::lgIonStageTrimed, t_conv::lgLastSweepThisZone, t_hydro::lgLymanPumping, lgTauGood(), t_trace::lgTrace, LIMELM, t_quantumState::nelem, t_rfield::nfine, NISO, nLevel1, t_iso::nLyaLevel, t_iso::nLyman, t_conv::nPres2Ioniz, nSpecies, t_species::numLevels_local, t_iso::numLevels_local, t_iso::numLevels_max, nUTA, nzone, opac, t_opac::opacity_abs, t_emission::Pelec_esc, t_iso::pestrk, POW2, radius, t_cosmology::redshift_current, t_cosmology::redshift_start, rfield, RT_line_one(), RT_stark(), SatelliteLines, SDIV(), SMALLFLOAT, t_quantumState::sp, Species, SPEEDLIGHT, StatesElemNEW, TauLines, trace, Transitions, UTALines, wind, Wind::windv, Wind::windv0, and t_dense::xIonDense.
Referenced by ConvBase(), and RT_tau_inc().
double RT_line_driving | ( | void | ) |
rt_line_driving radiative acceleration due to line absorption of incident continuum returns line radiative acceleration cm s-2
Definition at line 16 of file rt_line_driving.cpp.
References dBaseLines, DEBUG_ENTRY, dense, transition::Emis, transition::EnergyErg, ExtraLymanLines, FeIIAccel(), H2_Accel(), HFLines, t_dense::IonHigh, ipH_LIKE, ipHE_LIKE, iso, LIMELM, linesAdded2, nHFLines, NISO, nLevel1, t_iso::nLyman, t_iso::numLevels_local, t_iso::numLevels_max, nUTA, nWindLine, t_emission::PopOpc, t_emission::pump, SatelliteLines, StatesElemNEW, TauLine2, TauLines, t_emission::tran, Transitions, and UTALines.
Referenced by PresTotCurrent().
void RT_line_one | ( | transition * | t, | |
bool | lgShield_this_zone, | |||
realnum | pestrk, | |||
realnum | DopplerWidth | |||
) |
RT_line_one do line radiative transfer
t | line structure | |
pestrk | Stark escape probability | |
DopplerWidth | ||
lgShield_this_zone | this is option to not include line self shielding across this zone. this can cause pump to depend on zone thickness, and leads to unstable feedback in some models with the large H2 molecule, due to Solomon process depending on zone thickness and level populations. |
Definition at line 423 of file rt_line_one.cpp.
References ASSERT, cdEXIT, conv, t_emission::damp, t_emission::dampXvel, DEBUG_ENTRY, transition::Emis, EN1RYD, transition::EnergyErg, t_emission::FracInwd, ioQQQ, ipLY_A, t_emission::iRedisFun, t_rfield::lgDoLineTrans, t_conv::lgLastSweepThisZone, lgTauGood(), transition::Lo, MAX2, MIN2, nzone, t_emission::Pdest, t_emission::Pelec_esc, t_emission::Pesc, t_rfield::plsfrq, t_quantumState::Pop, t_emission::pump, rfield, RT_line_electron_scatter(), RT_line_escape(), RT_line_fine_opacity(), RT_line_pumping(), and SMALLFLOAT.
Referenced by CoolDima(), CoolEvaluate(), FeII_RT_Make(), H2_RTMake(), and RT_line_all().
void RT_line_one_tau_reset | ( | transition * | t | ) |
RT_line_one_tau_reset computes average of old and new optical depths for new scale at end of iter
t |
Definition at line 12 of file rt_line_one_tau_reset.cpp.
References chLineLbl(), transition::Coll, t_collision::cool, DEBUG_ENTRY, t_rt::DoubleTau, transition::Emis, t_emission::FracInwd, geometry, t_collision::heat, transition::Hi, ioQQQ, transition::ipCont, iteration, t_prt::lgPrtMaser, t_geometry::lgSphere, t_geometry::lgStatic, transition::Lo, MAX2, min(), MIN2, iter_track_basic< T >::next_val(), opac, t_emission::Pdest, t_emission::Pelec_esc, t_emission::Pesc, t_emission::phots, t_quantumState::Pop, t_emission::PopOpc, prt, rt, t_emission::TauCon, t_emission::TauIn, t_opac::taumin, t_emission::TauTot, t_emission::TauTrack, and t_emission::xIntensity.
Referenced by FeII_RT_tau_reset(), H2_RT_tau_reset(), and RT_tau_reset().
void RT_line_one_tauinc | ( | transition * | t, | |
long int | mas_species, | |||
long int | mas_ion, | |||
long int | mas_hi, | |||
long int | mas_lo, | |||
realnum | DopplerWidth | |||
) |
RT_line_one_tauinc increment optical depths for all heavy element lines, zone by zone
t | ||
mas_species | ||
mas_ion | ||
mas_hi | ||
mas_lo | ||
DopplerWidth |
Definition at line 16 of file rt_line_one_tauinc.cpp.
References Wind::AccelGravity, Wind::AccelTotalOutward, t_rfield::anu, cosmology, DEBUG_ENTRY, t_radius::depth, t_radius::drad_x_fillfac, t_rt::dTauMase, Wind::dvdr, transition::Emis, t_geometry::FillFac, t_rfield::fine_opac_zone, fixit(), geometry, GetHubbleFactor(), transition::ipCont, t_emission::ipFine, t_rfield::ipFineConVelShift, Wind::lgBallistic(), t_cosmology::lgDo, t_rt::lgMaserCapHit, t_rfield::lgOpacityFine, t_rt::mas_hi, t_rt::mas_ion, t_rt::mas_lo, t_rt::mas_species, MIN2, t_rfield::nfine, t_emission::opacity, t_rfield::plsfrq, t_emission::PopOpc, radius, t_cosmology::redshift_current, rfield, rt, SDIV(), t_emission::TauCon, t_emission::TauIn, t_emission::TauTot, wind, and Wind::windv.
Referenced by FeII_RT_TauInc(), H2_RT_tau_inc(), and RT_tau_inc().
double RT_LineWidth | ( | const transition * | t, | |
realnum | DopplerWidth | |||
) |
RT_LineWidth compute line width (cm/sec), using optical depth array information
t | ||
DopplerWidth |
Definition at line 817 of file rt_escprob.cpp.
References ASSERT, BIGFLOAT, t_emission::damp, t_emission::dampXvel, DEBUG_ENTRY, dense, t_dense::eden, transition::Emis, esc_PRD_1side(), iteration, Wind::lgBallistic(), t_pressure::lgPradDen, MAX2, MIN2, opac, t_emission::Pdest, t_emission::Pelec_esc, PI, pow(), pressure, t_emission::TauIn, t_opac::taumin, t_emission::TauTot, wind, and Wind::windv0.
Referenced by FeIIRadPress(), PressureRadiationLine(), and PresTotCurrent().
void RT_OTS | ( | void | ) |
RT_OTS compute diffuse fields due to helium atom, metals, hydro done in HydroOTS
Definition at line 38 of file rt_ots.cpp.
References ASSERT, t_emission::Aul, dBaseTrans, DEBUG_ENTRY, dense, DEST0, t_dense::eden, t_dense::EdenTrue, transition::Emis, t_opac::ExpmTau, FeII_OTS(), fnzone, H2_RT_OTS(), he, Heavy, transition::Hi, hmi, t_hmi::HMinus_photo_rate, t_hmi::Hmolec, t_dense::IonHigh, ioQQQ, t_he::ip660, t_Heavy::ipBalHeavy, transition::ipCont, ipH1s, ipH2p, ipH_LIKE, ipHELIUM, ipHYDROGEN, t_iso::ipIsoLevNIonCon, t_Heavy::ipLyHeavy, ipMHm, ipRecEsc, ipRecRad, iso, t_dense::lgElmtOn, t_rfield::lgHeIIOTS, t_rfield::lgLyaOTS, t_trace::lgTrace, LIMELM, MAX2, t_quantumState::nelem, t_rfield::nflux, NISO, nLevel1, nOTS1, nOTS2, nOTS_Line_type, nSpecies, t_species::numLevels_local, t_iso::numLevels_local, nWindLine, nzone, opac, t_opac::opacity_abs, t_emission::ots, t_rfield::otscon, t_rfield::otslin, t_emission::Pdest, t_quantumState::Pop, t_iso::RadRecomb, rfield, RT_OTS_AddCont(), RT_OTS_AddLine(), SMALLFLOAT, Species, StatesElemNEW, TauLine2, TauLines, trace, Transitions, t_dense::xIonDense, and t_Heavy::xLyaHeavy.
Referenced by ConvBase().
void RT_OTS_AddLine | ( | double | ots, | |
long int | ip | |||
) |
RT_OTS_AddLine add local destruction of lines to ots field
ots | ||
ip | pointer on the f scale |
Definition at line 403 of file rt_ots.cpp.
References ASSERT, DEBUG_ENTRY, ioQQQ, iteration, t_rfield::nflux, nOTS1, nOTS2, nOTS_Line_type, opac, t_opac::opacity_abs, t_rfield::otslin, and rfield.
Referenced by atom_level3(), FeII_OTS(), H2_RT_OTS(), and RT_OTS().
void RT_OTS_ChkSum | ( | long int | ipPnt | ) |
RT_OTS_ChkSum sanity check confirms summed continua reflect contents of individuals
Definition at line 610 of file rt_ots.cpp.
References t_rfield::anu, t_rfield::chContLabel, t_rfield::chLineLabel, t_rfield::ConInterOut, t_rfield::ConOTS_local_OTS_rate, DEBUG_ENTRY, t_rfield::flux, ioQQQ, t_rfield::ipEnergyBremsThin, t_rfield::lgOutOnly, t_rfield::nflux, t_rfield::otscon, t_rfield::otslin, t_rfield::outlin, t_rfield::outlin_noplot, rfield, t_rfield::SummedCon, t_rfield::SummedDif, and TotalInsanity().
Referenced by ConvPresTempEdenIoniz().
void RT_OTS_PrtRate | ( | double | weak, | |
int | chFlag | |||
) |
RT_OTS_PrtRate print ots arrays, called by ionize
weak | arg is weakest rate to print | |
chFlag | flag, 'c' continuum, 'l' line, 'b' both |
Definition at line 691 of file rt_ots.cpp.
References t_rfield::anu, ASSERT, t_rfield::chContLabel, t_rfield::chLineLabel, conv, DEBUG_ENTRY, dense, fnzone, t_dense::gas_phase, ioQQQ, ipHELIUM, ipOXYGEN, t_conv::lgConvIoniz, t_rfield::line_count, t_rfield::nupper, opac, t_opac::opacity_abs, t_rfield::otscon, t_rfield::otslin, rfield, TorF(), and t_dense::xIonDense.
Referenced by ConvBase().
void RT_OTS_Update | ( | double * | SumOTS | ) |
RTOTSUpdata sum flux, otscon, otslin, ConInterOut, outlin, to form SummeDif, SummedCon SummedOcc, int * is pointer to energy in continuum where this change happened,
SumOTS |
Definition at line 489 of file rt_ots.cpp.
References t_rfield::anu2, ASSERT, t_rfield::ConInterOut, t_rfield::ConOTS_local_OTS_rate, t_rfield::ConOTS_local_photons, t_rfield::ContBoltz, t_rfield::convoc, DEBUG_ENTRY, t_rfield::flux, t_rfield::flux_accum, t_rfield::ipEnergyBremsThin, t_rfield::ipPlasma, t_rfield::lgKillOTSLine, t_rfield::lgOutOnly, MAX2, MIN2, t_rfield::nflux, t_rfield::OccNumbBremsCont, opac, t_opac::opacity_abs, t_rfield::otscon, t_rfield::otslin, t_rfield::outlin, t_rfield::outlin_noplot, rfield, SDIV(), SMALLDOUBLE, t_rfield::SummedCon, t_rfield::SummedDif, and t_rfield::SummedOcc.
Referenced by ConvBase(), and IterRestart().
void RT_OTS_Zero | ( | void | ) |
zero these things out, called in zero
Definition at line 577 of file rt_ots.cpp.
References t_rfield::ConInterOut, t_rfield::ConOTS_local_OTS_rate, t_rfield::ConOTS_local_photons, t_rfield::convoc, DEBUG_ENTRY, t_rfield::flux, t_rfield::nflux, t_rfield::otscon, t_rfield::otslin, t_rfield::outlin, t_rfield::outlin_noplot, rfield, t_rfield::SummedCon, t_rfield::SummedDif, t_rfield::SummedOcc, t_rfield::trans_coef_total, and t_rfield::trans_coef_zone.
Referenced by ContSetIntensity().
double RT_recom_effic | ( | long int | ip | ) |
rt_recom_effic generate escape probability function for continua,
ip |
Definition at line 11 of file rt_recom_effic.cpp.
References t_rfield::anu, ASSERT, cdEXIT, t_rfield::chDffTrns, t_rfield::ContBoltz, cosmology, DEBUG_ENTRY, t_opac::E2TauAbsFace, esccon(), t_opac::ExpZone, t_rfield::fine_opac_zone, GetHubbleFactor(), ioQQQ, t_rfield::ipnt_coarse_2_fine, iteration, t_cosmology::lgDo, t_rfield::lgOpacityFine, MAX2, MIN2, t_rfield::nfine, t_rfield::nflux, t_rfield::nupper, opac, t_opac::opacity_abs, t_opac::otsmin, phycon, t_cosmology::redshift_current, rfield, sexp(), SMALLFLOAT, SPEEDLIGHT, t_opac::TauAbsGeo, t_opac::taumin, t_phycon::te, TE1RYD, t_phycon::te_ryd, and t_opac::tmn.
Referenced by iso_radiative_recomb().
void RT_stark | ( | void | ) |
rt_stark compute stark broadening escape probabilities using Puetter formalism
Definition at line 12 of file rt_stark.cpp.
References DEBUG_ENTRY, dense, t_dense::eden, ipH1s, ipH2s, ipH_LIKE, iso, t_dense::lgElmtOn, t_rt::lgStarkON, LIMELM, MAX2, MIN2, NISO, t_iso::nLyaLevel, t_iso::numLevels_local, t_iso::numLevels_max, nzone, t_iso::pestrk, phycon, pow(), rt, SDIV(), t_phycon::sqrte, t_iso::strkar, t_phycon::te01, t_phycon::te03, t_phycon::te10, and Transitions.
Referenced by RT_line_all().
void RT_tau_inc | ( | void | ) |
RT_tau_inc increment optical depths once per zone, called after radius_increment
Definition at line 26 of file rt_tau_inc.cpp.
References ASSERT, t_dense::AtomicWeight, t_rfield::ContBoltz, conv, CoolEvaluate(), t_thermal::ctot, dBaseLines, DEBUG_ENTRY, dense, t_dense::density_low_limit, t_radius::drad_x_fillfac, t_rt::dTauMase, t_dense::eden, ExtraLymanLines, FeII_RT_TauInc(), GetDopplerWidth(), H2_RT_tau_inc(), t_hyperfine::HFLabundance, HFLines, transition::Hi, hmi, t_hmi::hmidep, t_hmi::Hmolec, hyperfine, Singleton< t_fe2ovr_la >::Inst(), t_dense::IonHigh, t_quantumState::IonStg, ioQQQ, ipH_LIKE, t_hmi::iphmin, ipMHm, iso, t_iso::lgDielRecom, t_conv::lgFirstSweepThisZone, t_conv::lgLastSweepThisZone, t_trace::lgOptcBug, Wind::lgStatic(), t_trace::lgTrace, LIMELM, linesAdded2, t_rt::mas_hi, t_rt::mas_ion, t_rt::mas_lo, t_rt::mas_species, t_quantumState::nelem, nHFLines, NISO, nLevel1, t_iso::nLyman, t_iso::numLevels_local, t_iso::numLevels_max, nUTA, nWindLine, nzone, opac, prtmet(), radius, rfield, rt, RT_line_all(), RT_line_one_tauinc(), SatelliteLines, save, StatesElemNEW, t_fe2ovr_la::tau_inc(), TauLine2, TauLines, t_opac::telec, thermal, t_opac::thmin, trace, Transitions, UTALines, wind, and t_dense::xIonDense.
Referenced by cloudy().
void RT_tau_init | ( | void | ) |
RT_tau_init set initial outward optical depths at start of first iteration
Definition at line 29 of file rt_tau_init.cpp.
References t_rfield::anu, ASSERT, t_dense::AtomicWeight, cdEXIT, t_StopCalc::colnut, conv, dBaseLines, DEBUG_ENTRY, dense, t_rt::DoubleTau, t_dense::eden, ExtraLymanLines, FeII_LineZero(), fixit(), t_dense::gas_phase, geometry, GetDopplerWidth(), H2_LineZero(), t_StopCalc::HColStop, HFLines, transition::Hi, ioQQQ, ipH1s, ipH2p, ipH2s, ipH3d, ipH3p, ipH3s, ipH_LIKE, ipHe1s1S, ipHe2p1P, ipHE_LIKE, ipHELIUM, ipHYDROGEN, t_iso::ipIsoLevNIonCon, t_trace::ipIsoTrace, ipoint(), t_StopCalc::iptnu, t_rt::ipxry, iso, t_opac::lgCaseB, t_iso::lgDielRecom, t_dense::lgElmtOn, t_conv::lgFirstSweepThisZone, t_trace::lgIsoTraceFull, t_conv::lgOscilOTS, t_geometry::lgSphere, t_thermal::lgTemperatureConstant, t_trace::lgTrace, LIMELM, linesAdded2, MAX2, MIN2, N_, t_iso::n_HighestResolved_max, t_iso::nCollapsed_max, t_quantumState::nelem, nHFLines, NISO, nLevel1, t_iso::nLyman, t_iso::numLevels_max, t_rfield::nupper, nUTA, nWindLine, opac, pow(), PrintEfmt, t_rfield::qhtot, t_iso::QuantumNumbers2Index, rfield, rt, SatelliteLines, ShowMe(), t_iso::SmallA, SMALLFLOAT, StatesElemNEW, StopCalc, t_rt::TAddHLya, t_opac::TauAbsGeo, TauDummy, t_StopCalc::tauend, TAULIM, TauLine2, TauLines, t_opac::taumin, t_StopCalc::taunu, t_opac::TauScatGeo, t_opac::TauTotalGeo, t_rt::tauxry, TempChange(), thermal, t_opac::tlamin, trace, t_emission::tran, Transitions, UTALines, t_dense::xNucleiTotal, and transition::Zero().
Referenced by cloudy().
void RT_tau_reset | ( | void | ) |
RT_tau_reset update total optical depth scale, called after iteration is complete
Definition at line 22 of file rt_tau_reset.cpp.
References ASSERT, t_colden::colden, colden, t_colden::colden_old, COmole, dBaseLines, DEBUG_ENTRY, dense, e2(), t_opac::E2TauAbsTotal, ExtraLymanLines, FeII_RT_tau_reset(), t_rfield::fine_opt_depth, geometry, H2_RT_tau_reset(), molecule::hevcol, molecule::hevcol_old, HFLines, transition::Hi, ioQQQ, ipH1s, ipH2p, ipH_LIKE, ipHe1s1S, ipHe2p1P, ipHE_LIKE, t_trace::ipIsoTrace, t_rt::ipxry, iso, t_opac::lgCaseB, t_iso::lgDielRecom, t_dense::lgElmtOn, t_trace::lgHBug, t_trace::lgIsoTraceFull, t_geometry::lgSphere, t_trace::lgTrace, LIMELM, linesAdded2, mole, NCOLD, t_quantumState::nelem, t_rfield::nfine, nHFLines, NISO, nLevel1, t_iso::nLyaLevel, t_iso::nLyman, t_mole::num_comole_calc, t_iso::numLevels_max, t_rfield::nupper, nUTA, nWindLine, opac, rfield, rt, RT_line_one_tau_reset(), SatelliteLines, StatesElemNEW, t_opac::TauAbsFace, t_opac::TauAbsGeo, t_opac::TauAbsTotal, TauLine2, TauLines, t_opac::taumin, t_opac::TauScatFace, t_opac::TauScatGeo, t_opac::TauTotalGeo, t_rt::tauxry, t_opac::telec, t_opac::thmin, t_opac::tlamin, trace, Transitions, and UTALines.
Referenced by cloudy().
double RTesc_lya | ( | double * | esin, | |
double * | dest, | |||
double | abund, | |||
long int | ipZ, | |||
realnum | DopplerWidth | |||
) |
RTesc_lya escape prob for hydrogen atom Lya, using Hummer and Kunasz results
*esin | ||
*dest | ||
abund | ||
ipZ | 0 for H | |
DopplerWidth |
Definition at line 143 of file rt_escprob.cpp.
References ASSERT, DEBUG_ENTRY, t_rt::fracin, ipH1s, ipH2p, ipH_LIKE, LIMELM, MAX2, MIN2, opac, t_opac::opacity_abs, rt, RTesc_lya_1side(), SQRTPI, Transitions, t_rt::wayin, and t_rt::wayout.
Referenced by RT_line_escape().
Referenced by ContCreatePointers(), ConvIterCheck(), esc_CRDcore(), esc_CRDwing(), esc_PRD(), esc_PRD_1side(), InitDefaultsPreparse(), IterStart(), lincom(), lines(), lines_general(), ParseDont(), ParseDoubleTau(), ParseSet(), PrtFinal(), PutLine_base(), radius_next(), RT_continuum_shield_fcn(), RT_line_electron_scatter(), RT_line_escape(), RT_line_one_tau_reset(), RT_line_one_tauinc(), RT_stark(), RT_tau_inc(), RT_tau_init(), RT_tau_reset(), RTesc_lya(), and zero().