cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Data Structures | Macros | Functions | Variables
ionbal.h File Reference
#include "module.h"
#include "container_classes.h"
Include dependency graph for ionbal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  t_ionbal
 

Macros

#define NSHELLS   7
 

Functions

void ion_recom_calculate (void)
 
void ion_zero (long int nelem)
 
void ion_collis (long nelem)
 
void ion_solver (long int nelem, bool lgPrintIt)
 
void ion_photo (long int nelem, bool lgPrintIt)
 
void ion_CX (long nelem)
 
void ion_recomb (bool, long)
 
void ion_recombAGN (FILE *io)
 
void ion_wrapper (long nelem)
 
void Badnell_rec_init (void)
 
void IonNelem (bool lgPrintIt, long int nelem)
 
void IonHelium (void)
 

Variables

t_ionbal ionbal
 

Macro Definition Documentation

#define NSHELLS   7

max number of shells we ever have to deal with

Definition at line 61 of file ionbal.h.

Referenced by t_ionbal::alloc(), and t_ionbal::zero().

Function Documentation

void Badnell_rec_init ( void  )
void ion_collis ( long  nelem)

ion_collis fill in collisional ionization rates, and resulting cooling

Parameters
nelemelement number on C scale, H is 0
void ion_CX ( long  nelem)

charge exchange for element nelem

charge exchange ionization / recombination

Definition at line 11 of file ion_cx.cpp.

References ASSERT, atmdat, t_atmdat::CharExcRecTo, t_ionbal::CX_recomb_rate_used, DEBUG_ENTRY, dense, ionbal, t_dense::IonHigh, t_dense::IonLow, iso_sp, LIMELM, MIN2, t_atmdat::NCX, NISO, and t_iso_sp::st.

Referenced by IonNelem().

void ion_photo ( long int  nelem,
bool  lgPrintIt 
)

ion_photo fill array PhotoRate with photoionization rates for heavy elements

Parameters
nelemis atomic number on C scale, 0 for H
lgPrintItdebugging flag to turn on print

Definition at line 27 of file ion_photo.cpp.

References ASSERT, atmdat, atoms, t_oxy::AugerO3, t_atmdat::CharExcIonOf, t_elementnames::chElementNameShort, t_Heavy::chShell, t_ionbal::CompRecoilHeatRate, t_ionbal::CompRecoilIonRate, conv, t_oxy::d5007r, t_atoms::d5200r, t_oxy::d6300, dBaseSpecies, dBaseStates, DEBUG_ENTRY, dense, elementnames, GrainVar::elmSumAbund, t_rfield::extin_mag_V_point, t_iso_sp::fb, fe, t_fe::fegrain, t_fe::fekcld, t_fe::fekhot, fprintf(), GammaK(), GammaPrt(), gv, t_phoHeat::HeatHiEnr, t_phoHeat::HeatLowEnr, t_phoHeat::HeatNet, Heavy, hmi, hmrate4(), t_oxy::i2d, t_oxy::i2p, t_opac::in1, Singleton< t_yield >::Inst(), ionbal, t_dense::IonHigh, t_dense::IonLow, t_opac::iopo2d, ioQQQ, ipCALCIUM, ipCARBON, TransitionProxy::ipCont(), t_opac::ipElement, ipH1s, ipH2p, ipH_LIKE, ipHYDROGEN, ipIRON, ipMAGNESIUM, t_opac::ipmgex, ipNITROGEN, t_opac::ipo1exc, t_opac::ipo3exc, t_opac::ipo3exc3, t_opac::ipOpMgEx, ipOXYGEN, t_atmdat::ipSpecIon, iso_sp, GrainVar::lgDustOn(), t_dense::lgElmtOn, t_mole_global::lgLeidenHack, t_ionbal::lgPhotoIoniz_On, t_opac::lgRedoStatic, GrainVar::lgWD01, LIMELM, MAX2, MIN2, mole_global, t_rfield::nflux, NISO, t_conv::nPres2Ioniz, t_Heavy::nsShells, opac, t_rfield::otslin, oxy, t_atoms::p2nit, t_ionbal::PhotoRate_Shell, phycon, t_oxy::poiexc, t_oxy::poiii2, t_oxy::poiii2Max, t_oxy::poiii3, t_oxy::poiii3Max, t_oxy::poimax, t_atoms::popMg2, t_oxy::r4363Max, t_oxy::r5007Max, rfield, t_oxy::s3727, t_oxy::s7325, t_thermal::setHeating(), SMALLFLOAT, t_phycon::te, thermal, t_iso_sp::trans(), t_hmi::UV_Cont_rel2_Habing_TH85_face, t_dense::xIonDense, and t_atoms::xMg2Max.

Referenced by IonNelem().

Here is the call graph for this function:

void ion_recom_calculate ( void  )
void ion_recomb ( bool  ,
long   
)

ion_recomb generate recombination coefficients for any species

void ion_recombAGN ( FILE *  io)

ion_recombAGN generate recombination coefficients for AGN table

Definition at line 216 of file ion_recomb.cpp.

References abund, ASSERT, t_elementnames::chElementSym, ConvBase(), DEBUG_ENTRY, dense, t_dense::eden, EdenChange(), elementnames, fprintf(), Heavy, ionbal, t_dense::IonHigh, t_dense::IonLow, ioQQQ, ipHYDROGEN, ipLITHIUM, t_abund::lgAGN, LIMELM, phycon, t_ionbal::RateRecomTot, t_phycon::te, TempChange(), and t_Heavy::Valence_IP_Ryd.

Referenced by SaveDo().

Here is the call graph for this function:

void ion_solver ( long int  nelem,
bool  lgPrintIt 
)
void ion_wrapper ( long  nelem)

ion_wrapper a wrapper that redirects to IonHelium, IonCarbo, etc..

Definition at line 1368 of file ion_solver.cpp.

References ASSERT, t_elementnames::chElementSym, DEBUG_ENTRY, dense, elementnames, fprintf(), t_dense::gas_phase, IonHelium(), IonHydro(), IonNelem(), ioQQQ, ipHELIUM, ipHYDROGEN, lgElemsConserved(), t_dense::lgElmtOn, t_trace::lgHeavyBug, t_trace::lgTrace, LIMELM, trace, and t_dense::xIonDense.

Referenced by ConvBase().

Here is the call graph for this function:

void ion_zero ( long int  nelem)

ion_zero zero out heating and charge transfer save arrays

Definition at line 8 of file ion_zero.cpp.

References DEBUG_ENTRY, t_thermal::setHeating(), and thermal.

Referenced by IonNelem().

Here is the call graph for this function:

void IonHelium ( void  )
void IonNelem ( bool  lgPrintIt,
long int  nelem 
)

Variable Documentation

t_ionbal ionbal