cloudy trunk
Data Fields

ChargeBin Struct Reference

#include <grainvar.h>

Collaboration diagram for ChargeBin:
Collaboration graph
[legend]

Data Fields

long DustZ
long ipThresInf
long ipThresInfVal
long nfill
double FracPop
double Emin
double EminInc
double PotSurf
double PotSurfInc
double ThresInf
double ThresInfInc
double ThresInfVal
double ThresSurf
double ThresSurfInc
double ThresSurfVal
double ThermRate
flex_arr< realnumyhat
flex_arr< realnumyhat_primary
flex_arr< realnumehat
flex_arr< double > cs_pdt
long RecomZ0 [LIMELM][LIMELM+1]
double eta [LIMELM+2]
double xi [LIMELM+2]
double RSum1
double RSum2
double ESum1a
double ESum1b
double ESum2
realnum tedust
double hcon1
double hots1
double bolflux1
double pe1
flex_arr< double > fac1
flex_arr< double > fac2
realnum RecomEn [LIMELM][LIMELM+1]
realnum ChemEn [LIMELM][LIMELM+1]
double BolFlux
double GrainHeat
double GrainHeatColl
double GasHeatPhotoEl
double GasHeatTherm
double GrainCoolTherm
double ChemEnIon
double ChemEnH2
double HeatingRate2

Detailed Description

NB NB NB NB NB NB

this is the data structure for all grain data that depends on the charge state (i.e. all data that used to have an [NCHS] dependance in days of old),

each data item will be referenced as: gv.bin[nd]->chrg[nz]->data_item

this structure is allocated for each charge state at run time.

Data items that do not depend on charge state, or are summed over all charge states, should go in gv or gv.bin[nd] below !!

NB NB !! every field that is in ChargeBin should be initialized or invalidated in UpdatePot1/2 !! NB NB

Definition at line 158 of file grainvar.h.


Field Documentation

heating/cooling balance, all entries are valid for current zone, actual depl, and are in erg/cm^3/s total photon flux absorbed, used for energy conservation test

Definition at line 206 of file grainvar.h.

Referenced by UpdatePot1().

reminder of heating integral over all fields, Ryd/H/s at default depl

Definition at line 197 of file grainvar.h.

Referenced by GrainTemperature(), NewChargeData(), and UpdatePot1().

net contribution of ion recomb to grain heating, in Ryd

Definition at line 203 of file grainvar.h.

Referenced by GrainCollHeating(), and UpdateRecomZ0().

net amount of energy donated by H2 formation on grain surface

Definition at line 206 of file grainvar.h.

Referenced by UpdatePot1().

net amount of energy donated by recombining ions

Definition at line 206 of file grainvar.h.

Referenced by UpdatePot1().

photo-detachment cross section, for default depl

Definition at line 180 of file grainvar.h.

Referenced by GrainElecEmis1(), GrainsInit(), GrainTemperature(), GrainUpdateRadius2(), PE_init(), and UpdatePot1().

average energy per photo-electron (incl. Auger and secondary electrons), Ryd

Definition at line 179 of file grainvar.h.

Referenced by GrainsInit(), PE_init(), qheat_init(), and UpdatePot1().

negative threshold to be overcome by outgoing electron, in Ryd

Definition at line 165 of file grainvar.h.

Referenced by UpdatePot1().

same as Emin, but for incoming electrons (using Zg instead of Zg+1), in Ryd

Definition at line 165 of file grainvar.h.

Referenced by UpdatePot1().

PE rate from band and inner shells (includes Auger and secondary electrons)

Definition at line 189 of file grainvar.h.

Referenced by GrainElecEmis1(), NewChargeData(), and UpdatePot1().

PE rate from conduction band

Definition at line 190 of file grainvar.h.

Referenced by GrainElecEmis1(), NewChargeData(), and UpdatePot1().

electron loss due to recombination with colliding ions

Definition at line 191 of file grainvar.h.

Referenced by GrainElecEmis1(), NewChargeData(), and UpdatePot1().

cache for GrainScreen results

Definition at line 184 of file grainvar.h.

Referenced by GrainScreen(), NewChargeData(), and UpdatePot1().

auxiliary data for GrainTemperature

Definition at line 199 of file grainvar.h.

Referenced by GrainsInit(), GrainTemperature(), qheat_init(), and UpdatePot1().

auxiliary data for GrainTemperature

Definition at line 200 of file grainvar.h.

Referenced by GrainsInit(), GrainTemperature(), and UpdatePot1().

fractional population for lower and upper charge state

Definition at line 165 of file grainvar.h.

Referenced by GetFracPop(), GrainCharge(), GrainChargeTemp(), GrainChrgTransferRates(), GrainCollHeating(), GrainDrive(), GrainsInit(), GrainTemperature(), GrainUpdateRadius2(), qheat(), qheat_init(), and UpdatePot1().

photoelectric heating of the gas, added in GrGH 0

Definition at line 206 of file grainvar.h.

Referenced by UpdatePot1().

heating due to thermionic emission

Definition at line 206 of file grainvar.h.

Referenced by UpdatePot1().

grain cooling due to thermionic emissions, summed over charge states

Definition at line 206 of file grainvar.h.

Referenced by UpdatePot1().

total heating of current grain type

Definition at line 206 of file grainvar.h.

Referenced by NewChargeData(), and UpdatePot1().

collisional heating of current grain type

Definition at line 206 of file grainvar.h.

Referenced by UpdatePot1().

reminder of heating integral over incident flux, Ryd/H/s at default depl

Definition at line 195 of file grainvar.h.

Referenced by GrainTemperature(), NewChargeData(), and UpdatePot1().

quantum heating quantum heating by electron recomb - thermionic cooling, erg/H/s, default depl

Definition at line 216 of file grainvar.h.

Referenced by GrainCollHeating(), NewChargeData(), qheat(), qheat_init(), and UpdatePot1().

reminder of heating integral over diffuse fields, Ryd/H/s at default depl

Definition at line 196 of file grainvar.h.

Referenced by GrainTemperature(), NewChargeData(), and UpdatePot1().

pointer to ThresInf in anu array

Definition at line 161 of file grainvar.h.

Referenced by GrainElecEmis1(), GrainTemperature(), GrainUpdateRadius2(), PE_init(), qheat_init(), and UpdatePot1().

pointer to ThresInfVal in anu array

Definition at line 161 of file grainvar.h.

Referenced by GrainElecEmis1(), PE_init(), qheat_init(), and UpdatePot1().

remember how far the flex_arr's were filled in

Definition at line 161 of file grainvar.h.

Referenced by GrainDrive(), GrainsInit(), UpdatePot(), and UpdatePot1().

reminder of photoelectric heating integral, Ryd/H/s at default depl

Definition at line 198 of file grainvar.h.

Referenced by GrainTemperature(), NewChargeData(), and UpdatePot1().

potential difference between grain surface and infinity (phi_g), in Ryd

Definition at line 165 of file grainvar.h.

Referenced by GrainCollHeating(), GrainTemperature(), PE_init(), qheat_init(), and UpdatePot1().

same as PotSurf, but for incoming electrons (using Zg instead of Zg+1), in Ryd

Definition at line 165 of file grainvar.h.

Referenced by GrainCollHeating(), qheat_init(), and UpdatePot1().

chemical energy released into grain upon impact, in Ryd

Definition at line 202 of file grainvar.h.

Referenced by GrainCollHeating(), and UpdateRecomZ0().

ionization stage the atom/ion recombines to upon impact

Definition at line 182 of file grainvar.h.

Referenced by GrainChrgTransferRates(), GrainCollHeating(), GrainElecEmis1(), GrainElecRecomb1(), and UpdateRecomZ0().

electron gain from colliding electrons

Definition at line 187 of file grainvar.h.

Referenced by GrainElecRecomb1(), NewChargeData(), and UpdatePot1().

electron gain from colliding ions

Definition at line 188 of file grainvar.h.

Referenced by GrainElecRecomb1(), NewChargeData(), and UpdatePot1().

grain heating equilibrium temperature for this zone

Definition at line 194 of file grainvar.h.

Referenced by GrainDrive(), GrainsInit(), and UpdatePot1().

thermionic rate, in e/cm^2/s

Definition at line 165 of file grainvar.h.

Referenced by GrainElecEmis1(), GrainTemperature(), NewChargeData(), and UpdatePot2().

threshold for removing electron from grain well to infinity (phi), in Ryd

Definition at line 165 of file grainvar.h.

Referenced by GrainCharge(), GrainChargeTemp(), UpdatePot1(), and UpdatePot2().

same as ThresInf, but for incoming electrons (using Zg instead of Zg+1), in Ryd

Definition at line 165 of file grainvar.h.

Referenced by qheat_init(), UpdatePot(), and UpdatePot1().

threshold for removing electron from valence band to infinity (phi^v), in Ryd

Definition at line 165 of file grainvar.h.

Referenced by GrainCharge(), and UpdatePot1().

threshold for removing electron from grain well to surface (phi_s), in Ryd

Definition at line 165 of file grainvar.h.

Referenced by GrainCollHeating(), GrainTemperature(), PE_init(), qheat_init(), UpdatePot1(), and UpdateRecomZ0().

same as ThresSurf, but for incoming electrons (using Zg instead of Zg+1), in Ryd

Definition at line 165 of file grainvar.h.

Referenced by GrainCollHeating(), UpdatePot1(), and UpdateRecomZ0().

threshold for removing electron from valence band to surface (phi_s^v), in Ryd

Definition at line 165 of file grainvar.h.

Referenced by PE_init(), qheat_init(), UpdatePot1(), and y0b01().

double ChargeBin::xi[LIMELM+2]

cache for GrainScreen results

Definition at line 184 of file grainvar.h.

Referenced by GrainScreen(), NewChargeData(), and UpdatePot1().

electron yield per absorbed photon (incl. Auger and secondary electrons)

Definition at line 177 of file grainvar.h.

Referenced by GrainElecEmis1(), GrainsInit(), PE_init(), qheat_init(), and UpdatePot1().

electron yield per absorbed photon (only primary electrons)

Definition at line 178 of file grainvar.h.

Referenced by GrainsInit(), qheat_init(), and UpdatePot1().


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated for cloudy by doxygen 1.7.3