/home66/gary/public_html/cloudy/c08_branch/source/atmdat.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  t_atmdat
class  t_ADfA

Defines

#define NHSDIM   15
#define NLINEHS   300
#define HS_NZ   8
#define NHCSTE   8

Enumerations

enum  phfit_version { PHFIT_UNDEF, PHFIT95, PHFIT96 }

Functions

double atmdat_2phot_shapefunction (double EbyE2nu, long ipISO, long nelem)
void atmdat_2phot_rate (long ipZ, long ipISO)
void atmdat_readin (void)
void atmdat_Chianti_readin (long intNS)
void atmdat_lamda_readin (long intNS)
void atmdat_outer_shell (long int iz, long int in, long int *imax, long int *ig0, long int *ig1)
void ChargTranEval (double *O_HIonRate)
double ChargTranSumHeat (void)
void ChargTranPun (FILE *ipPnunit, char *chPunch)
double atmdat_dielrec_fe (long int ion, double t)
void atmdat_H_phot_cs (void)
void atmdat_3body (void)
double atmdat_HS_caseB (long int iHi, long int iLo, long int iZ, double TempIn, double DenIn, char chCase)
void atmdat_DielSupres (void)

Variables

EXTERN struct t_atmdat atmdat


Define Documentation

#define HS_NZ   8

number of elements that can be read in

Definition at line 118 of file atmdat.h.

Referenced by atmdat_HS_caseB().

#define NHCSTE   8

number of temperature points in h_coll_str arrays

Definition at line 119 of file atmdat.h.

Referenced by HCSAR_interp().

#define NHSDIM   15

used for following vectors

Definition at line 116 of file atmdat.h.

#define NLINEHS   300

dimension of array with lines

Definition at line 117 of file atmdat.h.


Enumeration Type Documentation

enum phfit_version

Enumerator:
PHFIT_UNDEF 
PHFIT95 
PHFIT96 

Definition at line 215 of file atmdat.h.


Function Documentation

void atmdat_2phot_rate ( long  ipISO,
long  nelem 
)

Todo:
2 change the name of this routine to reflect the fact that it is entirely induced.

Todo:
2 How should these affect locally emitted continuum calculated in rtdiffuse? Just subtract these rates from the emitted ones?

Definition at line 305 of file atmdat_2photon.cpp.

References t_rfield::anu, t_iso::As2nu, ASSERT, DEBUG_ENTRY, ioQQQ, ipH_LIKE, t_iso::ipHalfTwoPhoE, ipHE_LIKE, t_iso::ipSym2nu, t_iso::ipTwoPhoE, iso, t_trace::lgBug2nu, t_rfield::lgInducProcess, t_trace::lgTrace, t_rfield::OccNumbIncidCont, rfield, t_rfield::SummedOcc, trace, Transitions, t_iso::TwoNu_induc_dn, t_iso::TwoNu_induc_dn_max, and t_iso::TwoNu_induc_up.

Referenced by RT_line_all().

double atmdat_2phot_shapefunction ( double  EbyE2nu,
long  ipISO,
long  nelem 
)

atmdat_2phot_shapefunction two photon emission function for all atomic and ionic species

Parameters:
EbyE2nu 
ipISO 
nelem 

Definition at line 214 of file atmdat_2photon.cpp.

References ASSERT, DEBUG_ENTRY, He2NuEnergies, He2NuShapeFunc, He2NuShapeFuncY2, Hydro2NuEnergies, Hydro2NuShapeFunc, Hydro2NuShapeFuncY2, ipH_LIKE, ipHE_LIKE, lgFirstCall, NCRS, NCRS_H, NCRS_HE, spline(), and splint().

Here is the call graph for this function:

void atmdat_3body ( void   ) 

atmdat_3body derive three-body recombination coefficients

Definition at line 52 of file atmdat_3body.cpp.

References atmdat, t_ionbal::CotaRate, DEBUG_ENTRY, ionbal, t_ionbal::lgNoCota, LIMELM, MIN2, and t_atmdat::nsbig.

void atmdat_Chianti_readin ( long  intNS  ) 

atmdat_Chianti_readin read in data from Chianti database files

Parameters:
intNS 

Definition at line 13 of file atmdat_chianti.cpp.

References AddLine2Stack(), ASSERT, AtmolCollSplines, atmolStates, atmolTrans, BIGDOUBLE, cdEXIT, chLabel, t_quantumState::chLabel, CollRatesArray, t_CollSplinesArray::collspline, DEBUG_ENTRY, DEBUGSTATE, DummyEmis, t_transition::Emis, t_quantumState::energy, t_CollSplinesArray::EnergyDiff, t_transition::EnergyErg, t_transition::EnergyK, t_transition::EnergyWN, ERG1CM, FFmtRead(), FILENAME_PATH_LENGTH_2, fixit(), t_quantumState::g, t_CollSplinesArray::gf, t_transition::Hi, t_CollSplinesArray::intTranType, ioQQQ, isnan, t_trace::lgTrace, MALLOC, MAX2, t_CollSplinesArray::nSplinePts, NUM_COLLIDERS, t_species::numLevels_local, t_species::numLevels_max, open_data(), read_whole_line(), RefIndex(), t_CollSplinesArray::ScalingParam, Species, spline(), t_CollSplinesArray::SplineSecDer, spsort(), T1CM, TotalInsanity(), trace, uncaps(), and t_transition::WLAng.

Referenced by database_readin().

Here is the call graph for this function:

double atmdat_dielrec_fe ( long int  ion,
double  t 
)

atmdat_dielrec_fe Dielectronic recombination rates for Fe from Arnaud & Raymond 1992

Parameters:
ion 
t 

Definition at line 9 of file atmdat_dielrec_fe.cpp.

References cdEXIT, DEBUG_ENTRY, EVRYD, ioQQQ, sexp(), and TE1RYD.

Here is the call graph for this function:

void atmdat_DielSupres ( void   ) 

atmdat_DielSupres derive scale factors for suppression of Burgess dielectronic recombination

Definition at line 149 of file atmdat_dielsupres.cpp.

References DEBUG_ENTRY, dense, t_ionbal::DielSupprs, t_dense::eden, ionbal, t_ionbal::lgSupDie, LIMELM, MAX2, MIN2, phycon, powi(), t_phycon::sqrte, and t_phycon::te.

Here is the call graph for this function:

void atmdat_H_phot_cs ( void   ) 

this initializes the arrays containing the fitting coefficients, called by OpacityCreateAll, done once per coreload

double atmdat_HS_caseB ( long int  iHi,
long int  iLo,
long int  iZ,
double  TempIn,
double  DenIn,
char  chCase 
)

general utility to read in line emissivities from the Storey & Hummer tables of case B emissivities.

Parameters:
iHi the principal quantum numbers, .
iLo upper and lower levels in any order
iZ charge of ion, only 1 and 2 for now
TempIn temperature, must lie within the range of the table, which depends on the ion charge, and is 500 - 30,000K for hydrogen
DenIn the density and must lie within the range of the table
chCase case - 'a' or 'b'

Definition at line 7 of file atmdat_HS_caseb.cpp.

References atmdat, cdEXIT, DEBUG_ENTRY, t_atmdat::Density, t_atmdat::ElecTemp, HS_NZ, t_atmdat::nDensity, t_atmdat::ntemp, x1, and x2.

Referenced by DrvCaseBHS(), and lines_hydro().

void atmdat_lamda_readin ( long  intNS  ) 

atmdat_lamda_readin read in data from LAMDA database files

Parameters:
intNS 

Definition at line 14 of file atmdat_lamda.cpp.

References AddLine2Stack(), ASSERT, AtmolCollRateCoeff, atmolStates, atmolTrans, cdEXIT, chLabel, t_quantumState::chLabel, t_CollRatesArray::collrates, CollRatesArray, DEBUG_ENTRY, DEBUGSTATE, DummyEmis, t_transition::Emis, t_quantumState::energy, t_transition::EnergyErg, t_transition::EnergyK, t_transition::EnergyWN, ERG1CM, FFmtRead(), FILENAME_PATH_LENGTH_2, t_species::fmolweight, t_quantumState::g, t_transition::Hi, ioQQQ, isnan, lgSpeciesMolecule, t_trace::lgTrace, MALLOC, MAX2, t_CollRatesArray::ntemps, NUM_COLLIDERS, t_species::numLevels_local, t_species::numLevels_max, open_data(), read_whole_line(), RefIndex(), Species, T1CM, t_CollRatesArray::temps, TotalInsanity(), trace, uncaps(), and t_transition::WLAng.

Referenced by database_readin().

Here is the call graph for this function:

void atmdat_outer_shell ( long int  iz,
long int  in,
long int *  imax,
long int *  ig0,
long int *  ig1 
)

atmdat_outer_shell determine outer shell, and statistical weights of that and higher ion, for any ion written by Dima Verner

Parameters:
[in] iz atomic number from 1 to 30
[in] in number of electrons from 1 to iz
[out] *imax number of the outer shell
[out] *ig0 statistical weight of (iz,in) ground state
[out] *ig1 statistical weight of (iz,in-1) ground state
Author:
Dima Verner

Definition at line 8 of file atmdat_outer_shell.cpp.

References DEBUG_ENTRY, and ioQQQ.

void atmdat_readin ( void   ) 

atmdat_readin read in some data files, but only if this is very first call

Todo:
2 - check these

Definition at line 127 of file atmdat_readin.cpp.

References t_struc::AccelGravity, t_struc::AccelTot, cdEXIT, t_struc::CO_molec, t_struc::coolstr, DEBUG_ENTRY, t_struc::DenMass, t_struc::DenParticles, t_struc::depth, t_struc::depth_last, t_struc::drad, t_struc::drad_last, t_struc::drad_x_fillfac, t_struc::ednstr, FILENAME_PATH_LENGTH_2, t_struc::gas_phase, t_struc::GasPressure, geometry, t_struc::H2_molec, t_struc::hden, t_struc::heatstr, t_struc::hiistr, t_struc::histr, ioQQQ, ipIRON, t_iterations::iter_malloc, iterations, lgFirstCall, LIMELM, MALLOC, MAX2, mole, N_H_MOLEC, t_geometry::nend, t_mole::num_comole_calc, t_struc::nzlim, t_struc::o3str, t_struc::pres_radiation_lines_curr, t_struc::pressure, struc, t_struc::testr, TotalInsanity(), t_struc::volstr, t_struc::windv, t_struc::xIonDense, and t_struc::xLyman_depth.

Referenced by cloudy(), DrvCaseBHS(), and ParseCompile().

Here is the call graph for this function:

void ChargTranEval ( double *  O_HIonRate  ) 

atmdat fill in the HCharExcIonOf and Rec arrays with Kingdon's fitted CT with H,

Parameters:
O_HIonRate 
Returns:
value is rate O ionizes H

Todo:
1 update ct to Kimura et al. (1996)

Todo:
1 above rate not intended for very low temperatures - find ref for low-T rate, probably is 1e-9 like above

Todo:
0 these should be values at 1e5 K

Todo:
2 not currently used - include as deexcitation process

Definition at line 43 of file atmdat_char_tran.cpp.

References atmdat, co, conv, DEBUG_ENTRY, t_atmdat::HCharExcIonOf, t_atmdat::HCharExcRecTo, HCTIon(), HCTRecom(), t_atmdat::HeCharExcIonOf, t_atmdat::HeCharExcRecTo, ipHELIUM, ipOXYGEN, t_co::lgUMISTrates, LIMELM, t_conv::nTotalIoniz, phycon, sexp(), and t_phycon::te.

Here is the call graph for this function:

void ChargTranPun ( FILE *  ipPnunit,
char *  chPunch 
)

punch charge transfer rate coefficients

Parameters:
ipPnunit 
chPunch 

Definition at line 1684 of file atmdat_char_tran.cpp.

References t_elementnames::chElementSym, DEBUG_ENTRY, elementnames, HCTIon(), HCTRecom(), phycon, and t_phycon::te.

Here is the call graph for this function:

double ChargTranSumHeat ( void   ) 

sum up the charge transfer heating

Returns:

Definition at line 570 of file atmdat_char_tran.cpp.

References ASSERT, atmdat, CTIonData, CTRecombData, DEBUG_ENTRY, dense, EN1EV, t_atmdat::HCharCoolMax, t_atmdat::HCharExcIonOf, t_atmdat::HCharExcRecTo, t_atmdat::HCharHeatMax, t_atmdat::HCharHeatOn, t_thermal::htot, ipH1s, ipH_LIKE, ipHELIUM, ipHYDROGEN, lgCTDataDefined, LIMELM, MAX2, MIN2, StatesElem, thermal, and t_dense::xIonDense.


Variable Documentation

EXTERN struct t_atmdat atmdat

Referenced by atmdat_3body(), atmdat_HS_caseB(), ChargeTransferUpdate(), ChargTranEval(), ChargTranSumHeat(), HCTRecom(), ion_recomb(), IonChlor(), IonOxyge(), iso_ionize_recombine(), lgCheckAsserts(), lines_helium(), lines_hydro(), lines_lv1_li_ne(), ParseDont(), ParseSet(), and PrtComment().


Generated on Mon Feb 16 12:01:40 2009 for cloudy by  doxygen 1.4.7