cloudy trunk
Loading...
Searching...
No Matches
ionbal.h File Reference
#include "dense.h"
Include dependency graph for ionbal.h:

Go to the source code of this file.

Data Structures

class  t_ionbal

Macros

#define NSHELLS   7

Functions

bool lgOH_ChargeTransferDominant (void)
void ion_recom_calculate (void)
void ion_trim (long int nelem)
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

◆ NSHELLS

#define NSHELLS   7

max number of shells we ever have to deal with

Definition at line 75 of file ionbal.h.

Referenced by zero().

Function Documentation

◆ Badnell_rec_init()

void Badnell_rec_init ( void )

◆ ion_collis()

void ion_collis ( long nelem)

ion_collis fill in collisional ionization rates, and resulting cooling

Parameters
nelemelement number on C scale, H is 0

◆ ion_CX()

void ion_CX ( long nelem)

charge exchange for element nelem

charge exchange ionization / recombination

Definition at line 14 of file ion_cx.cpp.

References ASSERT, atmdat, DEBUG_ENTRY, dense, ionbal, iso_sp, LIMELM, MIN2, t_atmdat::NCX, and NISO.

Referenced by IonNelem().

◆ ion_photo()

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 26 of file ion_photo.cpp.

References ASSERT, atmdat, atom_pop2(), atoms, ca, conv, DEBUG_ENTRY, dense, elementnames, fe, GammaK(), GammaPrt(), gv, t_phoHeat::HeatHiEnr, t_phoHeat::HeatLowEnr, t_phoHeat::HeatNet, Heavy, hmi, HMRATE, Singleton< t_yield >::Inst(), ionbal, ioQQQ, ipCALCIUM, ipCARBON, ipH_LIKE, ipHYDROGEN, ipIRON, ipMAGNESIUM, ipNITROGEN, ipOXYGEN, iso_sp, LIMELM, MAX2, MIN2, mole_global, NISO, nzone, opac, oxy, rfield, and thermal.

Referenced by IonNelem().

Here is the call graph for this function:

◆ ion_recom_calculate()

void ion_recom_calculate ( void )

ion_recom_calculate called by conv_base to calculate radiative and dielectronic recombination rate coefficients

Definition at line 1202 of file ion_recomb_Badnell.cpp.

References ASSERT, atmdat_dielrec_fe(), Badnell_DR_rate_eval(), Badnell_RR_rate_eval(), cdEXIT, chDRDataSource, chRRDataSource, CollisSuppres(), DEBUG_ENTRY, dense, DR_Badnell_rate_coef_mean_ion, elementnames, EXIT_SUCCESS, fp_equal(), Singleton< t_ADfA >::Inst(), ionbal, ioQQQ, ipHYDROGEN, ipIRON, ipLITHIUM, lgDR_BadWeb_exist, LIMELM, MIN2, phycon, pow3(), t_ADfA::rad_rec(), RecNoise, and sexp().

Referenced by ConvBase().

Here is the call graph for this function:

◆ ion_recomb()

void ion_recomb ( bool ,
long  )

ion_recomb generate recombination coefficients for any species

◆ ion_recombAGN()

void ion_recombAGN ( FILE * io)

ion_recombAGN generate recombination coefficients for AGN table

Definition at line 218 of file ion_recomb.cpp.

References abund, ASSERT, ConvBase(), DEBUG_ENTRY, dense, EdenChange(), elementnames, Heavy, ionbal, ioQQQ, ipHYDROGEN, ipLITHIUM, LIMELM, N1LIM, N2LIM, phycon, and TempChange().

Referenced by SaveDo().

Here is the call graph for this function:

◆ ion_solver()

void ion_solver ( long int nelem,
bool lgPrintIt )

ion_solver solve the bi-diagonal matrix for ionization balance

Parameters
nelem- element number on C scale, He is 1
lgPrintIt- option to print details of matrix elements

Definition at line 62 of file ion_solver.cpp.

References ASSERT, conv, DEBUG_ENTRY, dense, fill_array(), find_solution(), get_total_abundance_ions(), HomogeneousSource(), ION_SOLVES, ipH_LIKE, iso_charge_transfer_update(), iso_departure_coefficients(), ISO_LOOPS, iso_satellite_update(), iso_set_ion_rates(), iso_solve(), lgTrivialSolution(), LIMELM, MIN2, NISO, PrintRates(), prt, source, and store_new_densities().

Referenced by IonHelium(), IonHydro(), and IonNelem().

Here is the call graph for this function:

◆ ion_trim()

void ion_trim ( long int nelem)

ion_trim raise or lower most extreme stages of ionization considered

Parameters
nelemelement number on the C scale, 5 for C

Definition at line 21 of file ion_trim.cpp.

References ASSERT, conv, DEBUG_ENTRY, dense, elementnames, fnzone, Heavy, ionbal, ioQQQ, ipHELIUM, ipHYDROGEN, iso_sp, LIMELM, MAX2, MIN2, mole_global, NISO, nzone, phycon, radius, rfield, SDIV(), SMALLFLOAT, struc, and thermal.

Referenced by ConvBase().

Here is the call graph for this function:

◆ ion_wrapper()

void ion_wrapper ( long nelem)

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

Definition at line 1498 of file ion_solver.cpp.

References ASSERT, DEBUG_ENTRY, dense, elementnames, IonHelium(), IonHydro(), IonNelem(), ioQQQ, ipHELIUM, ipHYDROGEN, lgElemsConserved(), LIMELM, and trace.

Referenced by ConvBase().

Here is the call graph for this function:

◆ ion_zero()

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, and thermal.

Referenced by IonNelem().

◆ IonHelium()

void IonHelium ( void )

Definition at line 12 of file ion_helium.cpp.

References conv, DEBUG_ENTRY, dense, ion_solver(), ionbal, ioQQQ, ipH_LIKE, ipHE_LIKE, ipHELIUM, iso_sp, nzone, and trace.

Referenced by ion_wrapper().

Here is the call graph for this function:

◆ IonNelem()

void IonNelem ( bool lgPrintIt,
long int nelem )

Definition at line 12 of file ion_nelem.cpp.

References DEBUG_ENTRY, dense, fnzone, ion_collis(), ion_CX(), ion_photo(), ion_recomb(), ion_solver(), ion_zero(), ioQQQ, and trace.

Referenced by ion_wrapper().

Here is the call graph for this function:

◆ lgOH_ChargeTransferDominant()

bool lgOH_ChargeTransferDominant ( void )

Definition at line 370 of file ion_solver.cpp.

References atmdat, dense, ionbal, ipHYDROGEN, ipOXYGEN, mole, and THRESHOLD.

Variable Documentation

◆ ionbal