root/branches/newmole/source/colden.h
| Revision 1739, 2.2 kB (checked in by rjrw, 12 months ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | /* This file is part of Cloudy and is copyright (C)1978-2008 by Gary J. Ferland and |
| 2 | * others. For conditions of distribution and use see copyright notice in license.txt */ |
| 3 | |
| 4 | #ifndef _COLDEN_H_ |
| 5 | #define _COLDEN_H_ |
| 6 | |
| 7 | /* colden.h */ |
| 8 | /** number of column densities to remember */ |
| 9 | #define NCOLD 10 |
| 10 | |
| 11 | /** total hydrogen column density, all forms, xxx + 2*H2 */ |
| 12 | #define ipCOL_HTOT 0 |
| 13 | /** H- H minus column denisty*/ |
| 14 | #define ipCOL_HMIN 1 |
| 15 | /** column density of H2g */ |
| 16 | #define ipCOL_H2g 2 |
| 17 | /** column density of H2s */ |
| 18 | #define ipCOL_H2s 3 |
| 19 | /** H2+ */ |
| 20 | #define ipCOL_H2p 4 |
| 21 | /** H0 */ |
| 22 | #define ipCOL_H0 5 |
| 23 | /** HeH+ */ |
| 24 | #define ipCOL_HeHp 6 |
| 25 | /** H+ */ |
| 26 | #define ipCOL_Hp 7 |
| 27 | /** H3+ */ |
| 28 | #define ipCOL_H3p 8 |
| 29 | /** column density in electrons */ |
| 30 | #define ipCOL_elec 9 |
| 31 | |
| 32 | EXTERN struct t_colden { |
| 33 | |
| 34 | /**save total column densities in various species for this and |
| 35 | * previous iteration, to check whether |
| 36 | * it changed by too much (a bad sign) |
| 37 | * column densities, mostly h molecule related */ |
| 38 | realnum colden[NCOLD], |
| 39 | /** the previous iteration's coluumn density */ |
| 40 | colden_old[NCOLD]; |
| 41 | |
| 42 | /** integral of n(H2) / v(H2) */ |
| 43 | realnum coldenH2_ov_vel; |
| 44 | |
| 45 | /** integral of ne np over radius */ |
| 46 | double dlnenp; |
| 47 | |
| 48 | /** integral of ne n(He+) over radius */ |
| 49 | double dlnenHep; |
| 50 | |
| 51 | /** integral of ne n(He++) over radius */ |
| 52 | double dlnenHepp; |
| 53 | |
| 54 | /** integral of ne n(C+) over radius */ |
| 55 | double dlnenCp; |
| 56 | |
| 57 | /** integral of n(H0) / Tspin */ |
| 58 | double H0_ov_Tspin; |
| 59 | |
| 60 | /** integral of n(OH) / Tkin */ |
| 61 | double OH_ov_Tspin; |
| 62 | |
| 63 | /** pops and column density for CII atom */ |
| 64 | realnum C2Pops[5], |
| 65 | C2Colden[5]; |
| 66 | |
| 67 | /** pops and column density for upper level of CIII] atom */ |
| 68 | realnum C3Pops[4], |
| 69 | C3Colden[4]; |
| 70 | |
| 71 | /** pops and column density for SiII atom */ |
| 72 | realnum Si2Pops[5], |
| 73 | Si2Colden[5]; |
| 74 | |
| 75 | /** pops and column density for CI atom */ |
| 76 | realnum C1Pops[3], |
| 77 | C1Colden[3]; |
| 78 | |
| 79 | /** pops and column density for OI atom */ |
| 80 | realnum O1Pops[3], |
| 81 | O1Colden[3]; |
| 82 | |
| 83 | /** He I 23S */ |
| 84 | double He123S; |
| 85 | |
| 86 | /** variables to do with mean mass per particle over model, |
| 87 | * called \<Mol\> in final print out, used to get Jeans mass */ |
| 88 | realnum rjnmin, |
| 89 | ajmmin; |
| 90 | realnum TotMassColl, |
| 91 | tmas, |
| 92 | wmas; |
| 93 | |
| 94 | /** column densities in the lower and upper level of 1s of H0 */ |
| 95 | double H0_21cm_upper; |
| 96 | double H0_21cm_lower; |
| 97 | |
| 98 | } colden; |
| 99 | |
| 100 | #endif /* _COLDEN_H_ */ |
Note: See TracBrowser
for help on using the browser.
