/home66/gary/public_html/cloudy/c08_branch/source/opacity.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  t_opac

Functions

void OpacityCreateAll (void)
void OpacityAdd1Subshell (long int ipOpac, long int ipLowLim, long int ipUpLim, realnum abundance, char chStat)
void OpacityAddTotal (void)
void OpacityAdd1Element (long int ipZ)
void OpacityZero (void)
void OpacityZeroOld (void)
void OpacityAdd1SubshellInduc (long int ipOpac, long int low, long int ihi, double a, double b, char chStat)

Variables

bool lgOpacMalloced
EXTERN struct t_opac opac


Detailed Description

routines dealing with creation and evaluration of opacities

Definition in file opacity.h.


Function Documentation

void OpacityAdd1Element ( long int  ipZ  ) 

OpacityAdd1Element enter total photo cross section for all subshells of a single element into opacity array

Parameters:
ipZ is 0 for H, 1 for He, etc

Definition at line 11 of file opacity_add1element.cpp.

References ASSERT, DEBUG_ENTRY, dense, Heavy, t_opac::ipElement, LIMELM, MAX2, NISO, t_Heavy::nsShells, opac, OpacityAdd1Subshell(), and t_dense::xIonDense.

Here is the call graph for this function:

void OpacityAdd1Subshell ( long int  ipOpac,
long int  ipLowLim,
long int  ipUpLim,
realnum  abundance,
char  chStat 
)

OpacityAdd1Subshell add opacity due to single species to main opacity array

Parameters:
ipOpac ipOpac is opacity index within opac opacity offset for this species
ipLowLim lower freq limit to opacity range on energy mesh
ipUpLim upper limit to opacity range on energy mesh
abundance abundance, we bail if zero
chStat either static 's' or volitile 'v'

Definition at line 10 of file opacity_add1subshell.cpp.

References ASSERT, DEBUG_ENTRY, t_opac::lgRedoStatic, MIN2, t_rfield::nflux, opac, t_opac::opacity_abs, t_opac::OpacStack, t_opac::OpacStatic, and rfield.

Referenced by OpacityAdd1Element().

void OpacityAdd1SubshellInduc ( long int  ipOpac,
long int  low,
long int  ihi,
double  a,
double  b,
char  chStat 
)

OpacityAdd1SubshellInduc add opacity of individual species, including stimulated emission

Parameters:
ipOpac pointer to opacity offset with stack
low low energy limit to opacity bound
ihi high-energy limit to opacity bound
a the abundance of the species in this level
b the departure coefficient
chStat either 's' for static opacities, or 'v' for volitile

Definition at line 65 of file opacity_add1subshell.cpp.

References ASSERT, t_rfield::ContBoltz, DEBUG_ENTRY, hydro, t_hydro::lgHInducImp, t_rfield::lgInducProcess, t_opac::lgRedoStatic, MAX2, MIN2, t_rfield::nflux, opac, t_opac::opacity_abs, t_opac::OpacStack, t_opac::OpacStatic, and rfield.

void OpacityAddTotal ( void   ) 

OpacityAddTotal derive total opacity for this position

Todo:
2 add charged heavy elements

Todo:
1 stupid - why this test on opacity_abs ? - we only get here if we already passed above test on this very thing

Definition at line 22 of file opacity_addtotal.cpp.

References DEBUG_ENTRY, dense, t_dense::eden, t_hmi::H2_total, hmi, ionbal, t_opac::iopcom, t_ionbal::ipCompRecoil, ipHYDROGEN, t_dense::lgElmtOn, LIMELM, t_ionbal::nCompRecoilElec, t_rfield::nflux, opac, t_opac::opacity_abs, t_opac::opacity_sct, OpacityZero(), t_opac::OpacStack, rfield, and t_dense::xIonDense.

Here is the call graph for this function:

void OpacityCreateAll ( void   ) 

OpacityCreateAll compute initial set of opacities for all species

Definition at line 176 of file opacity_createall.cpp.

References t_rfield::AnuOrg, ASSERT, DEBUG_ENTRY, dense, GrainsInit(), ioQQQ, t_opac::ipElement, ipH_LIKE, ipHE_LIKE, t_iso::ipIsoLevNIonCon, t_iso::ipOpac, iso, t_dense::lgElmtOn, lgOpacMalloced, t_trace::lgTrace, LIMELM, MALLOC, NCSH2P, ndimOpacityStack, t_opac::nOpacTot, t_iso::numLevels_max, t_rfield::nupper, opac, t_opac::opacity_abs, Opacity_iso_photo_cs(), opacity_more_memory(), t_opac::OpacStack, rfield, trace, and t_iso::xIsoLevNIonRyd.

Referenced by cloudy(), and ParseCompile().

Here is the call graph for this function:

void OpacityZero ( void   ) 

OpacityZero - called by OpacityAddTotal to zero opacity array after saving it into oldopac

Definition at line 8 of file opacity_zero.cpp.

References DEBUG_ENTRY, t_opac::lgRedoStatic, t_rfield::nupper, t_opac::OldOpacSave, opac, t_opac::opacity_abs, t_opac::opacity_sct, t_opac::OpacStatic, and rfield.

Referenced by OpacityAddTotal().

void OpacityZeroOld ( void   ) 

OpacityZeroOld - only set old opac to current value during search phase

Definition at line 37 of file opacity_zero.cpp.

References DEBUG_ENTRY, t_rfield::nupper, t_opac::OldOpacSave, opac, t_opac::opacity_abs, and rfield.


Variable Documentation

bool lgOpacMalloced

set true when malloced, init to false

Definition at line 105 of file cdinit.cpp.

Referenced by OpacityCreateAll(), and tauff().

EXTERN struct t_opac opac

Referenced by ContCreatePointers(), ContRate(), CoolCalc(), CoolEvaluate(), csphot(), DumpLine(), emergent_line(), EmLineZero(), GammaBn(), GammaK(), GammaPrt(), GammaPrtRate(), GammaPrtShells(), GrainRateDr(), highen(), hmole_reactions(), HydroCSInterp(), ion_photo(), IonIron(), IonMagne(), IonNitro(), IonOxyge(), ipShells(), iso_cascade(), iso_collide(), iso_photo(), IterEnd(), IterRestart(), lgTauGood(), LimitSh(), lindst(), lines_continuum(), opacity_more_memory(), OpacityAdd1Element(), OpacityAdd1Subshell(), OpacityAdd1SubshellInduc(), OpacityAddTotal(), OpacityCreate1Element(), OpacityCreateAll(), OpacityCreatePowerLaw(), OpacityCreateReilMan(), OpacityValenceRescale(), OpacityZero(), OpacityZeroOld(), outline(), ParseCaseB(), ParseCompile(), ParseDont(), ParseSet(), ParseSphere(), pltopc(), pnegopc(), PrtAllTau(), PrtComment(), PrtContinuum(), PrtZone(), Punch_Line_RT(), punch_opacity(), punResults(), radius_first(), ReadTable(), rfield_opac_zero(), RT_DestProb(), RT_diffuse(), RT_line_all(), RT_line_one_tau_reset(), RT_line_static(), RT_LineWidth(), RT_OTS(), RT_OTS_AddCont(), RT_OTS_AddLine(), RT_OTS_PrtRate(), RT_OTS_Update(), RT_recom_effic(), RT_tau_inc(), RT_tau_reset(), RTesc_lya(), RTesc_lya_1side(), tauff(), t_fe2ovr_la::zero_opacity(), ZoneEnd(), and ZoneStart().


Generated on Mon Feb 16 12:09:40 2009 for cloudy by  doxygen 1.4.7