36 double DepartCoefInv ,
61 for( ion=0; ion<nelem+1; ++ion )
77 for( i=loop_min; i < loop_max; i++ )
119 for( ion=1; ion < LIMELM+1; ++ion )
189 for( vector< diss_tran >::iterator tran = (*diatom)->Diss_Trans.begin(); tran != (*diatom)->Diss_Trans.end(); ++tran )
191 long lower_limit =
ipoint(tran->energies[0]);
192 long upper_limit =
ipoint(tran->energies.back());
194 for(i = lower_limit; i <= upper_limit; ++i)
216 for( i=0; i < limit; i++ )
244 hydro.lgHLyaMased =
true;
274 fixit(
"CO opacity hack breaks the invariant for total mass");
340 for(
long nelem=ipISO; nelem <
LIMELM; nelem++ )
361 long int ip =
iso_sp[ipISO][nelem].
fb[n].ipIsoLevNIonCon;
365 iso_sp[ipISO][nelem].fb[n].ipOpac );
367 iso_sp[ipISO][nelem].
fb[n].ConOpacRatio = 1.-
368 (
iso_sp[ipISO][nelem].
st[n].Pop()*t2)/
373 iso_sp[ipISO][nelem].
fb[n].ConOpacRatio = 0.;
395 fac = 1./
iso_sp[ipISO][nelem].
st[n].DepartCoef();
418 long int ip =
iso_sp[ipISO][nelem].
fb[n].ipIsoLevNIonCon;
423 iso_sp[ipISO][nelem].fb[n].ipOpac );
425 double opacity_this_species =
426 iso_sp[ipISO][nelem].
st[n].Pop()*t2*
429 double opacity_fraction = 1. - opacity_this_species /
opac.
opacity_abs[ip-1];
430 if(opacity_fraction < 0)
431 opacity_fraction = 0.;
434 iso_sp[ipISO][nelem].
fb[n].ConOpacRatio =
435 iso_sp[ipISO][nelem].
fb[n].ConOpacRatio* 0.75 + 0.25*opacity_fraction;
437 if(
iso_sp[ipISO][nelem].fb[n].ConOpacRatio < 0.)
438 iso_sp[ipISO][nelem].
fb[n].ConOpacRatio = 0.;
442 iso_sp[ipISO][nelem].
fb[n].ConOpacRatio = 0.;
447 iso_sp[ipISO][nelem].
fb[n].ConOpacRatio = 0.;
452 iso_sp[ipISO][nelem].
fb[n].ConOpacRatio = 0.;
494 fprintf(
ioQQQ,
" OpacityAddTotal returns; grd rec eff (opac) for Hn=1,4%10.2e%10.2e%10.2e%10.2e%10.2e%10.2e%10.2e%10.2e%10.2e%10.2e HeI,II:%10.2e%10.2e\n",
511 enum {DEBUG_LOC=
false};
512 if( DEBUG_LOC && (
nzone>=378) )
518 fprintf(
ioQQQ,
"rtotsbugggg\t%li\t%.3e\t%.3e\t%.3e\t%.3e\n",
void OpacityAdd1Element(long int ipZ)
t_mole_global mole_global
vector< double, allocator_avx< double > > ContBoltz
long int nCompRecoilElec[LIMELM]
long ip_photo_opac_thresh
molezone * findspecieslocal(const char buf[])
void OpacityAdd1Subshell(long int ipOpac, long int ipLowLim, long int ipUpLim, realnum abundance, char chStat)
double * eeFreeFreeOpacity
double anu(size_t i) const
t_iso_sp iso_sp[NISO][LIMELM]
long int nflux_with_check
double xIonDense[LIMELM][LIMELM+1]
bool fp_equal(sys_float x, sys_float y, int n=3)
long ipoint(double energy_ryd)
void OpacityZeroOld(void)
void OpacityAddTotal(void)
vector< diatomics * > diatoms
long ip_photo_opac_offset
void eeBremsSpectrum(double Te, realnum jnu[], double knu[])
diatomics h2("h2", 4100.,&hmi.H2_total, Yan_H2_CS)
realnum gas_phase[LIMELM]
double csphot(long int inu, long int ithr, long int iofset)
#define DEBUG_ENTRY(funcname)
int fprintf(const Output &stream, const char *format,...)
void brems_sum_ions(t_brems_den &sum) const
void brems_opac(long ion, double Te, double abun, double arr[])
vector< diatomics * >::iterator diatom_iter