cloudy
trunk
|
#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 "vectorize.h"
Go to the source code of this file.
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 (void) |
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
Definition at line 884 of file species2.cpp.
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 | ||
) |
Definition at line 858 of file species2.cpp.
References CHIANTI_Upsilon(), DEBUG_ENTRY, TransitionProxy::Hi(), ipELECTRON, TransitionProxy::ipHi(), TransitionProxy::ipLo(), and ipPROTON.
Referenced by dBaseUpdateCollCoeffs().
void dBase_solve | ( | void | ) |
Definition at line 271 of file species2.cpp.
References abund, atmdat, atoms, cdEXIT, colliders, CollisionZero(), 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, MALLOC, max(), MAX2, MIN2, nSpecies, nzone, oxy, phycon, avx_ptr< T, lgBC >::ptr0(), t_atoms::rateMg2, secondaries, set_xIntensity(), t_thermal::setHeating(), setXtraRatesCa2(), setXtraRatesFe2(), setXtraRatesO1(), SMALLFLOAT, t_phycon::sqrte, t_iso_sp::st, t_phycon::te, thermal, TotalInsanity(), t_iso_sp::trans(), vexp(), and t_secondaries::x12tot.
Referenced by CoolEvaluate().
|
static |
Definition at line 33 of file species2.cpp.
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 | ) |
Definition at line 61 of file species2.cpp.
References abund, conv, dBaseAbund(), dBaseSpecies, dBaseStates, dBaseTrans, DEBUG_ENTRY, dense, nSpecies, t_conv::nTotalIoniz, and t_dense::xNucleiTotal.
Referenced by CoolEvaluate().
void dBaseUpdateCollCoeffs | ( | void | ) |
Definition at line 102 of file species2.cpp.
References atmdat, AtmolCollRateCoeff, ChiantiCollRate(), CollisionProxy::col_str(), t_atmdat::collstrDefault, genericState::database(), 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 | ||
) |
Definition at line 786 of file species2.cpp.
References AtmolCollRateCoeff, DEBUG_ENTRY, InterpCollRate(), TransitionProxy::ipHi(), and TransitionProxy::ipLo().
Referenced by dBaseUpdateCollCoeffs().
STATIC void setXtraRatesCa2 | ( | const TransitionProxy & | tr, |
double & | xtraDxRate | ||
) |
Definition at line 1074 of file species2.cpp.
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 | ||
) |
Definition at line 1114 of file species2.cpp.
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 | ||
) |
Definition at line 996 of file species2.cpp.
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 | ||
) |
Definition at line 794 of file species2.cpp.
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 |
Definition at line 31 of file species2.cpp.
Referenced by CHIANTI_Upsilon().