Changeset 1950 for trunk/source/ion_silic.cpp
- Timestamp:
- 04/18/08 14:22:02 (9 months ago)
- Files:
-
- 1 modified
-
trunk/source/ion_silic.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/ion_silic.cpp
r1732 r1950 39 39 static long nzUsed = -1; 40 40 static double OldRate = 0.; 41 double save_rec;42 41 43 42 DEBUG_ENTRY( "IonSilic()" ); 44 43 45 44 /* silicon, atomic number 14 */ 46 if( !dense.lgElmtOn[ipSILICON] )47 {48 sil.p1895 = 0.;49 return;50 }51 45 52 46 ion_zero(ipSILICON); 53 47 54 48 ion_photo(ipSILICON,false); 49 50 # if 0 51 /* 2008 apr 18, this appears to try to damp out changes in the valence 52 * shell photo rate - perhaps due to Lya oscillations in dust free 53 * environments? */ 55 54 if( nzone > 1 && OldRate > 0. ) 56 55 { … … 67 66 } 68 67 OldRate = ionbal.PhotoRate_Shell[ipSILICON][0][4][0]; 68 # endif 69 69 70 70 /* find collisional ionization rates */ … … 78 78 /*lint +e64 type mismatch */ 79 79 80 /* pumping to 3p of Si III */81 sil.p1895 = ionbal.PhotoRate_Shell[ipSILICON][1][2][0];82 83 /* >>chng 03 sep 29, synch up ion and co solvers.84 * the co solver will have a different C/C+ balance that85 * is strongly affected by the chemistryif we are in neutral gas86 * in this case use co solver's C/C+ balance */87 save_rec = ionbal.RateRecomTot[ipSILICON][0];88 /*>>chng 04 apr 27, do not test for ionhigh being 1,89 * no reason for test on upper stage of ionization,90 * if codrive called but not evaluted then hevmol is all zero */91 /* >>chng 04 sep 10, rm check on search phase, no reason for it */92 # if 093 if( dense.IonLow[ipSILICON]==0 && /*!conv.lgSearch &&*/94 co.hevmol[ipSIP] > SMALLFLOAT &&95 ionbal.RateIonizTot[ipSILICON][0]*co.hevmol[ipATSI]>0.)96 {97 /* >>chng 04 sep 11, use damped ratio, were Si+ oscillations deep in molecular cloud,98 * where Si+ is dominant electron donor */99 ionbal.RateRecomTot[ipSILICON][0] =100 ionbal.RateIonizTot[ipSILICON][0]*101 co.hevmol[ipATSI]/co.hevmol[ipSIP];102 /*fprintf(ioQQQ,"DEBUG sil atm\t%.2f\t%.3e\t%.3e\t%.3e\n",103 fnzone ,104 co.hevmol[ipATSI],105 co.hevmol[ipSIP],106 ionbal.RateIonizTot[ipSILICON][0]);*/107 }108 # endif109 110 80 /* solve for ionization balance */ 111 81 /*if( nzone>700 ) lgPrtDebug = true;*/ 112 82 ion_solver(ipSILICON,lgPrtDebug); 113 83 114 /* reset the var we just hosed */ 115 if( save_rec > 0. ) 116 ionbal.RateRecomTot[ipSILICON][0] = save_rec; 117 118 /* get pmp rate cm-3 s-1 */ 119 sil.p1895 *= dense.xIonDense[ipSILICON][1]*0.85; 120 84 # if 0 85 /* 2008 apr 18, this is all dead code from when co network fed back from 86 * the ionization */ 121 87 if( trace.lgTrace && trace.lgHeavyBug ) 122 88 { … … 128 94 fprintf( ioQQQ, "\n" ); 129 95 } 130 # if 0131 96 fprintf( ioQQQ, "DEBUG silicon\t%.2f",fnzone ); 132 97 for( i=0; i < 2; i++ )
