Cloudy
Spectral Synthesis Code for Astrophysics
|
#include "cddefines.h"
#include "atmdat.h"
#include "phycon.h"
#include "taulines.h"
#include "atoms.h"
#include "rfield.h"
#include "conv.h"
#include "secondaries.h"
#include "thermal.h"
#include "cooling.h"
#include "ionbal.h"
#include "iso.h"
#include "mole.h"
#include "dense.h"
#include "lines_service.h"
#include "trace.h"
#include "doppvel.h"
#include "oxy.h"
#include "hydrogenic.h"
#include "continuum.h"
#include "vectorize.h"
#include "container_classes.h"
Functions | |
STATIC double | LeidenCollRate (long, long, const TransitionProxy &, double) |
STATIC double | StoutCollRate (long ipSpecies, long ipCollider, const TransitionProxy &, double ftemp) |
STATIC double | ChiantiCollRate (long ipSpecies, long ipCollider, const TransitionProxy &, double ftemp) |
STATIC void | setXtraRatesO1 (const TransitionProxy &tr, double &xtraExRate, double &xtraDxRate) |
STATIC void | setXtraRatesCa2 (const TransitionProxy &tr, double &xtraDxRate) |
STATIC void | setXtraRatesFe2 (const TransitionProxy &tr, double &xtraExRate, double &xtraDxRate) |
static realnum | dBaseAbund (long ipSpecies) |
void | dBaseTrim (void) |
void | dBaseUpdateCollCoeffs (void) |
void | dBase_solve () |
double | CHIANTI_Upsilon (long ipSpecies, long ipCollider, long ipHi, long ipLo, double ftemp) |
Variables | |
static const bool | DEBUGSTATE = false |
double CHIANTI_Upsilon | ( | long | , |
long | , | ||
long | , | ||
long | , | ||
double | |||
) |
CHIANTI_Upsilon converts Chianti collision splines to collision strengths
References ASSERT, AtmolCollSplines, dBaseSpecies, DEBUG_ENTRY, DEBUGSTATE, exp10(), fprintf(), ioQQQ, linint(), splint(), and TotalInsanity().
Referenced by ChiantiCollRate(), and SaveDo().
STATIC double ChiantiCollRate | ( | long | ipSpecies, |
long | ipCollider, | ||
const TransitionProxy & | tr, | ||
double | ftemp | ||
) |
References CHIANTI_Upsilon(), DEBUG_ENTRY, TransitionProxy::Hi(), ipELECTRON, TransitionProxy::ipHi(), TransitionProxy::ipLo(), and ipPROTON.
Referenced by dBaseUpdateCollCoeffs().
void dBase_solve | ( | void | ) |
References abund, multi_arr< T, d, ALLOC, lgBC >::alloc(), ASSERT, atmdat, atoms, cdEXIT, colliders, CollisionZero(), ContNegative(), conv, CoolAdd(), t_oxy::d5007r, t_atoms::d5200r, t_oxy::d6300, dBaseAbund(), dBaseSpecies, dBaseStates, dBaseTrans, t_thermal::dCooldT, DEBUG_ENTRY, depart(), t_hydro::dstfe2lya, DumpLine(), t_thermal::elementcool, TransitionProxy::Emis(), EmLineZero(), energy(), TransitionProxy::EnergyWN(), t_ionbal::ExcitationGround, EXIT_FAILURE, fp_equal(), fprintf(), EmissionProxy::gf(), hydro, ionbal, ioQQQ, ipELECTRON, ipH1s, ipH2p, ipH_LIKE, ipHYDROGEN, ipIRON, t_atmdat::ipSpecIon, iso_sp, LEVEL_ACTIVE, LEVEL_INACTIVE, t_conv::lgSearch, LIMELM, max(), MAX2, MIN2, nSpecies, NULL, nzone, oxy, phycon, avx_ptr< T, lgBC >::ptr0(), t_atoms::rateMg2, secondaries, set_xIntensity(), t_thermal::setHeating(), setXtraRatesCa2(), setXtraRatesFe2(), setXtraRatesO1(), ShowMe(), SMALLFLOAT, t_phycon::sqrte, t_iso_sp::st, t_phycon::te, thermal, TotalInsanity(), t_iso_sp::trans(), vexp(), vzero(), t_secondaries::x12tot, and multi_arr< T, d, ALLOC, lgBC >::zero().
Referenced by CoolEvaluate().
|
static |
References abund, ASSERT, conv, dBaseSpecies, dBaseStates, molezone::den, dense, exists(), findspecieslocal(), fprintf(), ioQQQ, LIMELM, t_conv::nTotalIoniz, and t_dense::xIonDense.
Referenced by dBase_solve(), and dBaseTrim().
void dBaseTrim | ( | void | ) |
References abund, conv, dBaseAbund(), dBaseSpecies, dBaseStates, dBaseTrans, DEBUG_ENTRY, dense, nSpecies, t_conv::nTotalIoniz, and t_dense::xNucleiTotal.
Referenced by CoolEvaluate().
void dBaseUpdateCollCoeffs | ( | void | ) |
References atmdat, AtmolCollRateCoeff, ChiantiCollRate(), CollisionProxy::col_str(), t_atmdat::collstrDefault, dBaseSpecies, dBaseTrans, DEBUG_ENTRY, ipATOM_H, ipATOM_HE, ipELECTRON, ipH2, ipH2_ORTHO, ipH2_PARA, ipHE_PLUS, ipNCOLLIDER, ipPROTON, LeidenCollRate(), t_atmdat::lgGbarOn, MakeCS(), nSpecies, phycon, CollisionProxy::rate_coef_ul(), CollisionProxy::rate_coef_ul_set(), t_phycon::sqrte, StoutCollRate(), t_phycon::te, and TotalInsanity().
Referenced by CoolEvaluate().
STATIC double LeidenCollRate | ( | long | ipSpecies, |
long | ipCollider, | ||
const TransitionProxy & | tr, | ||
double | ftemp | ||
) |
References AtmolCollRateCoeff, DEBUG_ENTRY, InterpCollRate(), TransitionProxy::ipHi(), and TransitionProxy::ipLo().
Referenced by dBaseUpdateCollCoeffs().
STATIC void setXtraRatesCa2 | ( | const TransitionProxy & | tr, |
double & | xtraDxRate | ||
) |
References DEBUG_ENTRY, TransitionProxy::ipCont(), ipH1s, ipH2p, ipH_LIKE, TransitionProxy::ipHi(), ipHYDROGEN, iso_sp, t_rfield::otslin, rfield, and t_iso_sp::trans().
Referenced by dBase_solve().
STATIC void setXtraRatesFe2 | ( | const TransitionProxy & | tr, |
double & | xtraExRate, | ||
double & | xtraDxRate | ||
) |
References t_dense::AtomicWeight, EmissionProxy::Aul(), DEBUG_ENTRY, dense, TransitionProxy::Emis(), TransitionProxy::EnergyWN(), GetDopplerWidth(), TransitionProxy::Hi(), t_hydro::HLineWidth, hydro, ipH1s, ipH2p, ipH_LIKE, ipHYDROGEN, ipIRON, iso_sp, iteration, t_hydro::lgLyaFeIIPumpOn, TransitionProxy::Lo(), MAX2, powi(), SMALLFLOAT, t_iso_sp::st, EmissionProxy::TauIn(), and EmissionProxy::TauTot().
Referenced by dBase_solve().
STATIC void setXtraRatesO1 | ( | const TransitionProxy & | tr, |
double & | xtraExRate, | ||
double & | xtraDxRate | ||
) |
References t_dense::AtomicWeight, EmissionProxy::Aul(), DEBUG_ENTRY, dense, TransitionProxy::Emis(), fixit, fprintf(), GetDopplerWidth(), ioQQQ, ipH1s, ipH3p, ipH_LIKE, ipHYDROGEN, ipOXYGEN, iso_sp, t_rfield::lgInducProcess, t_trace::lgTr8446, t_trace::lgTrace, MAX2, MIN2, EmissionProxy::Pesc_total(), rfield, t_iso_sp::st, trace, t_iso_sp::trans(), and t_dense::xIonDense.
Referenced by dBase_solve().
STATIC double StoutCollRate | ( | long | ipSpecies, |
long | ipCollider, | ||
const TransitionProxy & | tr, | ||
double | ftemp | ||
) |
References ASSERT, cdEXIT, CollisionProxy::col_str(), TransitionProxy::Coll(), DEBUG_ENTRY, EXIT_FAILURE, fprintf(), TransitionProxy::Hi(), ioQQQ, ipELECTRON, TransitionProxy::ipHi(), TransitionProxy::ipLo(), linint(), and StoutCollData.
Referenced by dBaseUpdateCollCoeffs().
|
static |
Referenced by CHIANTI_Upsilon().