cloudy trunk
Data Fields

t_gv Struct Reference

#include <grainvar.h>

Collaboration diagram for t_gv:
Collaboration graph
[legend]

Data Fields

bool lgDustOn
bool lgBakes
bool lgWD01
bool lgReevaluate
bool lgGrainPhysicsOn
bool lgAnyDustVary
bool lgAnyNegCharge
bool lgBakesPAH_heat
bool lgNegGrnDrg
bool lgDHetOn
bool lgQHeatOn
bool lgDColOn
bool lgGrainElectrons
char ReadRecord [MAX_READ_RECORDS][READ_RECORD_LENGTH]
long ReadPtr
char chPAH_abundance_fcn [5]
realnum GrainMetal
realnum elmSumAbund [LIMELM]
enth_type which_enth [MAT_TOP]
zmin_type which_zmin [MAT_TOP]
pot_type which_pot [MAT_TOP]
ial_type which_ial [MAT_TOP]
pe_type which_pe [MAT_TOP]
strg_type which_strg [MAT_TOP]
H2_type which_H2distr [MAT_TOP]
realnumanumin
realnumanumax
long nfill
long nzone
double * dstab
double * dstsc
double TotalEden
realnum GrnElecDonateMax
realnum GrnElecHoldMax
realnum GrnRecomTe
long HighestIon
long nChrgRequested
AEInfoAugerData [LIMELM]
realnum GrainChTrRate [LIMELM][LIMELM+1][LIMELM+1]
double GasCoolColl
double GasHeatPhotoEl
double GasHeatTherm
double GasHeatNet
double GrainHeatSum
double GrainHeatLya
double GrainHeatDif
double GrainHeatInc
double GrainHeatCollSum
double GrainHeatChem
double dHeatdT
realnum GrainHeatScaleFactor
realnum TotalDustHeat
realnum dphmax
realnum dclmax
double dsttmp [NDEMS]
realnum dstAbundThresholdNear
realnum dstAbundThresholdFar
bool lgQHeatAll
bool lgQHPunLast
FILE * QHPunchFile
double rate_h2_form_grains_used_total
realnumGrainEmission
realnumGraphiteEmission
realnumSilicateEmission
long int nBin
GrainBinbin [NDUST]

Detailed Description

NB NB NB NB NB NB

this is the master data structure for grain physics, it is statically allocated

!! apart from bin[NDUST], NOTHING in this structure should have dimension NDUST !!

all entries that depend on grain type should go in the GrainBin structure above

NB NB NB NB NB NB

Definition at line 379 of file grainvar.h.


Field Documentation

<[NC_ELL] anumax[i] = anu[i] + 0.5*widflx[i]

Definition at line 434 of file grainvar.h.

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

<[NC_ELL] anumin[i] = anu[i] - 0.5*widflx[i]

Definition at line 434 of file grainvar.h.

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

store data about energy spectrum of Auger electrons

Definition at line 454 of file grainvar.h.

Referenced by GrainsInit(), InitBinAugerData(), ReadAugerData(), and ReturnGrainBins().

which of several functions that describes how PAH abundances depend on conditions, default is "H0", proportional to n(H0) / n(Htot) changed with the SET PAH command

Definition at line 413 of file grainvar.h.

Referenced by GrainZero(), GrnStdDpth(), and ParseSet().

largest local cooling of gas by collisions with grains

Definition at line 477 of file grainvar.h.

Referenced by GrainDrive(), IterStart(), lines_grains(), and PrtComment().

double t_gv::dHeatdT

gas heating derivative for all grains, in erg/cm^3/s/K

Definition at line 473 of file grainvar.h.

Referenced by GrainChargeTemp(), and GrainZero().

largest fraction of local heating due to grain PE heating

Definition at line 477 of file grainvar.h.

Referenced by GrainDrive(), IterStart(), lines_grains(), and PrtComment().

double* t_gv::dstab

<[NC_ELL] total absorption cross section, current depl is factored in

Definition at line 440 of file grainvar.h.

Referenced by ContRate(), GrainsInit(), GrainUpdateRadius2(), OpacityAddTotal(), PunchDo(), and ReturnGrainBins().

min grain abundance for enabling quantum heating in molecular regions

Definition at line 486 of file grainvar.h.

Referenced by GrainMakeDiffuse(), and GrainZero().

quantum heating physics min grain abundance for enabling quantum heating near I-front

Definition at line 485 of file grainvar.h.

Referenced by GrainMakeDiffuse(), and GrainZero().

double * t_gv::dstsc

<[NC_ELL] total scattering cross section, current depl and asymmetry factored in

Definition at line 440 of file grainvar.h.

Referenced by GrainsInit(), GrainUpdateRadius2(), OpacityAddTotal(), PunchDo(), and ReturnGrainBins().

equilibrium temperature grain temperature grid for dstems (in GrainBin)

Definition at line 482 of file grainvar.h.

Referenced by GetProbDistr_HighLimit(), GetProbDistr_LowLimit(), GrainChargeTemp(), GrainTemperature(), InitEmissivities(), InitEnthalpy(), inv_ufunct(), qheat(), RebinQHeatResults(), TryDoubleStep(), and ufunct().

number density of elements summed over all grain bins, at actual depl

Definition at line 421 of file grainvar.h.

Referenced by AbundancesPrt(), GrainsInit(), GrainUpdateRadius1(), and IonIron().

heating/cooling balance, all entries are valid for current zone, actual depl, and are in erg/cm^3/s cooling of the gas by collisions with all grains, summed in GrGC 0

Definition at line 462 of file grainvar.h.

Referenced by CoolEvaluate(), GrainChargeTemp(), GrainDrive(), GrainMakeDiffuse(), GrainsInit(), lines_grains(), and PunchDo().

net heating of the gas: PhotoEl + Therm - CoolColl

Definition at line 462 of file grainvar.h.

Referenced by GrainChargeTemp().

heating of the gas by photoelectric effect of all grains

Definition at line 462 of file grainvar.h.

Referenced by CoolEvaluate(), GrainChargeTemp(), and GrainDrive().

heating of the gas by thermionic emissions of all grains

Definition at line 462 of file grainvar.h.

Referenced by CoolEvaluate(), and GrainChargeTemp().

grain surface recombination rate for element nelem, ionization stage "ion-from" to "ion-to" already multiplied by grain area, actual depletion, GrainChTrRate[nelem][ion-from][ion-to], units s^-1, this can be both ionization and neutralization process, so ion-to can be > or < ion-from

Definition at line 459 of file grainvar.h.

Referenced by ele_ion_ladder(), GrainChargeTemp(), GrainChrgTransferRates(), GrainDrive(), GrainZero(), ion_recomb(), ion_solver(), IonSilic(), and iso_level().

grain emission [NC_ELL] total emission from this zone, per unit vol, for add outward in metfic

Definition at line 496 of file grainvar.h.

Referenced by ContRate(), GrainMakeDiffuse(), GrainsInit(), PunchDo(), ReturnGrainBins(), and RT_diffuse().

net amount of energy donated by recombining ions to all grains

Definition at line 462 of file grainvar.h.

Referenced by GrainChargeTemp(), GrainDrive(), and GrainMakeDiffuse().

collisional heating of all grains, added in GraC 0

Definition at line 462 of file grainvar.h.

Referenced by GrainChargeTemp(), GrainDrive(), GrainsInit(), and lines_grains().

heating of all grains by all diffuse fields (incl Lya), added in GraD 0

Definition at line 462 of file grainvar.h.

Referenced by GrainChargeTemp(), GrainDrive(), GrainsInit(), and lines_grains().

heating of all grains by incident continuum, added in GraI 0

Definition at line 462 of file grainvar.h.

Referenced by GrainChargeTemp(), GrainDrive(), GrainsInit(), and lines_grains().

heating of all grains by Lya, added in GraL 1216

Definition at line 462 of file grainvar.h.

Referenced by GrainChargeTemp(), GrainDrive(), GrainsInit(), and lines_grains().

scale factor for PE heating as per Allers et al. 2005 (SET GRAINS HEAT)

Definition at line 475 of file grainvar.h.

Referenced by GrainDrive(), GrainMakeDiffuse(), GrainTemperature(), GrainZero(), and ParseSet().

total heating of all grain types, added in GraT 0

Definition at line 462 of file grainvar.h.

Referenced by GrainChargeTemp(), GrainDrive(), GrainMakeDiffuse(), GrainsInit(), and lines_grains().

grain depletion chemical abundances of grains are normalized such that in any given zone the total number density of an element nelem locked up in grains is given by elmSumAbund(nelem) = Sum_over_nd ( elmAbund[nd][nelem]*dstAbund[nd]*dense.hden ) grain depletion factor, from METALS xxx GRAINS command, usually 1

Definition at line 421 of file grainvar.h.

Referenced by GrainsInit(), GrainUpdateRadius1(), GrainZero(), and ParseMetal().

[NC_ELL] graphite emission from this zone only

Definition at line 496 of file grainvar.h.

Referenced by GrainMakeDiffuse(), GrainsInit(), PunchDo(), and ReturnGrainBins().

largest local fraction of electrons donated by grains

Definition at line 448 of file grainvar.h.

Referenced by GrainDrive(), IterStart(), lines_grains(), and PrtComment().

largest local fraction of electrons contained by grains

Definition at line 448 of file grainvar.h.

Referenced by GrainDrive(), IterStart(), lines_grains(), and PrtComment().

the electron temperature that was used to calculate the recom rates

Definition at line 450 of file grainvar.h.

Referenced by GrainChargeTemp(), GrainsInit(), and NewChargeData().

highest ionization stage with non-zero abundance present in the gas

Definition at line 451 of file grainvar.h.

Referenced by GrainChargeTemp(), and UpdateRecomZ0().

do any of the grain abundances vary with depth

Definition at line 382 of file grainvar.h.

Referenced by GrainDrive(), GrainsInit(), GrainUpdateRadius2(), and GrainZero().

are any of the grain charges negative ?

Definition at line 382 of file grainvar.h.

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

approximate physics used in Bakes & Tielens (1994)

Definition at line 382 of file grainvar.h.

Referenced by GrainsInit(), and GrainZero().

turn on simple formula for PAH heating of gas

Definition at line 382 of file grainvar.h.

Referenced by CoolEvaluate(), GrainDrive(), GrainMakeDiffuse(), GrainTemperature(), GrainZero(), and ParseSet().

turn off grain gas collisional energy exchange, set false with NO GRAIN COLLISIONAL ENERGY EXCHANGE default true, turned off with GRAIN NO COOLING

Definition at line 400 of file grainvar.h.

Referenced by GrainCollHeating(), GrainMakeDiffuse(), GrainZero(), ParseCommands(), ParseDont(), and ParseGrain().

test logic default true, turned off with GRAIN NO HEATING

Definition at line 395 of file grainvar.h.

Referenced by CoolEvaluate(), GrainMakeDiffuse(), GrainTemperature(), GrainZero(), and ParseGrain().

should electrons from/to grains be included in the total electron sum? del true, set false with no grain electrons command

Definition at line 404 of file grainvar.h.

Referenced by eden_sum(), GrainZero(), and ParseDont().

this is option to turn off all grain physics while leaving the opacity in, set false with no grain physics command

Definition at line 382 of file grainvar.h.

Referenced by ContRate(), ConvPresTempEdenIoniz(), CoolEvaluate(), GrainDrive(), GrainRestartIter(), GrainStartIter(), GrainZero(), hmole_step(), ion_solver(), lines_grains(), ParseDont(), PrtFinal(), PrtZone(), and RT_diffuse().

flag set if negative grin drag force encountered

Definition at line 392 of file grainvar.h.

Referenced by GrainDrift(), GrainZero(), IterStart(), and PrtComment().

use quantum heating for all grains, WILL BECOME DEFAULT

Definition at line 487 of file grainvar.h.

Referenced by GrainsInit(), and GrainZero().

default true, turned off with GRAIN NO QHEAT

Definition at line 395 of file grainvar.h.

Referenced by GrainsInit(), GrainZero(), and ParseDont().

only punch quantum heating information on last iteration

Definition at line 487 of file grainvar.h.

Referenced by ParsePunch(), and qheat().

reevaluate keyword on grains cmd => always reevalutae grain conditions during calculation

Definition at line 382 of file grainvar.h.

Referenced by GrainDrive(), GrainZero(), and ParseGrain().

use physics as described in Weingartner & Draine (2001)

Definition at line 382 of file grainvar.h.

Referenced by GrainsInit(), GrainZero(), InitBinAugerData(), IonIron(), ParseDont(), qheat_init(), y0b(), and y2s().

long int t_gv::nBin

number of charge states requested by user, default value is 2

Definition at line 451 of file grainvar.h.

Referenced by GrainZero(), NewGrainBin(), and SetNChrgStates().

grain opacities remember how far dstab and dstsc were filled in

Definition at line 438 of file grainvar.h.

Referenced by GrainsInit(), and GrainUpdateRadius2().

remember in what zone dstab and dstsc where calculated

Definition at line 438 of file grainvar.h.

Referenced by GrainChargeTemp(), GrainsInit(), GrainUpdateRadius2(), and NewChargeData().

file pointer for PUNCH QHEAT command

Definition at line 489 of file grainvar.h.

Referenced by ClosePunchFiles(), ParsePunch(), PunchFilesInit(), and qheat().

H2 physics rate H2 forms on grains, summed over bins, units s^-1, actual depl when multiplied with hden, this is formation rate in H2-molecules/cm^3/s

Definition at line 492 of file grainvar.h.

Referenced by H2_PunchDo(), hmole_step(), lgCheckAsserts(), and PunchDo().

pointer for the array above

Definition at line 408 of file grainvar.h.

Referenced by GrainZero(), and mie_read_opc().

record of all the files read by mie_read_opc

Definition at line 407 of file grainvar.h.

Referenced by mie_read_opc().

[NC_ELL] silicate emission from this zone only

Definition at line 496 of file grainvar.h.

Referenced by GrainMakeDiffuse(), GrainsInit(), PunchDo(), and ReturnGrainBins().

total PE heating integrated over model, erg/s or erg/cm^2/s, actual depl

Definition at line 477 of file grainvar.h.

Referenced by GrainDrive(), IterStart(), lines_grains(), and PrtComment().

>>chng 02 jan 05, moved AveVel[LIMELM] to doppvel since needed elsewhere grain charging contribution to eden from all grain species, a positive number means that the grains contribute to the free electron pool, in cm^-3

Definition at line 446 of file grainvar.h.

Referenced by ConvBase(), ConvEdenIoniz(), ConvIoniz(), eden_sum(), GrainChargeTemp(), GrainDrive(), GrainZero(), lines_grains(), and PunchDo().

these arrays define the physical properties of material MAT_PAH, MAT_CAR, MAT_SIL, etc... they are initialized in GrainZero defines expression for the enthalpy function

Definition at line 426 of file grainvar.h.

Referenced by GrainZero(), and uderiv().

defines expression for H2 ro-vib distribution at formation

Definition at line 432 of file grainvar.h.

Referenced by GrainCollHeating(), GrainZero(), and mole_H2_form().

defines expression for the inverse attenuation length

Definition at line 429 of file grainvar.h.

Referenced by GrainZero(), and mie_write_opc().

defines expression for the photo-electric effect

Definition at line 430 of file grainvar.h.

Referenced by GrainZero(), y0b01(), and Yfunc().

defines expression for the ionization potential

Definition at line 428 of file grainvar.h.

Referenced by GetPotValues(), and GrainZero().

defines where the emitted spectrum is stored

Definition at line 431 of file grainvar.h.

Referenced by GrainMakeDiffuse(), and GrainZero().

defines expression for Z_min

Definition at line 427 of file grainvar.h.

Referenced by GrainsInit(), and GrainZero().


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