00001 /* This file is part of Cloudy and is copyright (C)1978-2011 by Gary J. Ferland and 00002 * others. For conditions of distribution and use see copyright notice in license.txt */ 00003 00004 #ifndef STOPCALC_H_ 00005 #define STOPCALC_H_ 00006 00007 #include "flux.h" 00008 00010 const int MXSTPL = 10; 00011 00014 const realnum COLUMN_INIT = 1e30f; 00015 00016 const int nCHREASONSTOP = 100; 00017 00019 struct t_StopCalc { 00023 realnum tauend; 00026 realnum taunu; 00027 00029 long int iptnu; 00030 00033 double TeFloor; 00034 00036 realnum TempHiStopZone; 00038 realnum TempHiStopIteration; 00039 00042 realnum TempLoStopZone; 00045 realnum TempLoStopIteration; 00046 00048 realnum StopElecFrac; 00049 00052 realnum StopH2MoleFrac; 00053 00056 realnum StopHPlusFrac; 00057 00061 realnum StopDepleteFrac; 00062 00065 realnum StopVelocity; 00066 00069 realnum HColStop, 00070 colpls, 00071 colnut; 00072 00074 realnum col_h2; 00075 00077 realnum xMass; 00078 00080 realnum col_h2_nut; 00081 00083 realnum col_H0_ov_Tspin; 00084 00086 realnum col_monoxco; 00087 00089 realnum AV_point , AV_extended; 00090 00092 realnum StopElecDensity; 00093 00103 realnum stpint[MXSTPL]; 00104 00106 long int ipStopLin1[MXSTPL], 00107 ipStopLin2[MXSTPL]; 00109 long int nstpl; 00110 00111 realnum StopLineWl1[MXSTPL], 00112 StopLineWl2[MXSTPL]; 00113 00115 char chStopLabel1[MXSTPL][5] , 00116 chStopLabel2[MXSTPL][5]; 00117 int nEmergent[MXSTPL]; 00118 00120 bool lgStop21cm; 00121 00123 vector<long> ContIndex; 00124 vector<Flux> ContNFnu; 00125 00127 long int nTotalIonizStop; 00128 00130 char chReasonStop[nCHREASONSTOP]; 00131 00132 bool lgStopSpeciesColumn; 00133 char chSpeciesColumn[CHARS_SPECIES]; 00134 realnum col_species; 00135 00136 }; 00137 00138 extern t_StopCalc StopCalc; 00139 00140 00141 #endif /* STOPCALC_H_ */