cloudy trunk
Loading...
Searching...
No Matches
opacity.h File Reference

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
t_opac opac

Detailed Description

routines dealing with creation and evaluration of opacities

Definition in file opacity.h.

Function Documentation

◆ OpacityAdd1Element()

void OpacityAdd1Element ( long int ipZ)

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

Parameters
ipZis 0 for H, 1 for He, etc

Definition at line 12 of file opacity_add1element.cpp.

References ASSERT, DEBUG_ENTRY, dense, Heavy, iso_sp, LIMELM, MAX2, NISO, opac, OpacityAdd1Subshell(), OpacityAdd1SubshellInduc(), and rfield.

Referenced by OpacityAddTotal(), SanityCheckBegin(), and save_opacity().

Here is the call graph for this function:

◆ OpacityAdd1Subshell()

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
ipOpacipOpac is opacity index within opac opacity offset for this species
ipLowLimlower freq limit to opacity range on energy mesh
ipUpLimupper limit to opacity range on energy mesh
abundanceabundance, we bail if zero
chStateither static 's' or volitile 'v'

Definition at line 10 of file opacity_add1subshell.cpp.

References ASSERT, DEBUG_ENTRY, MIN2, opac, and rfield.

Referenced by OpacityAdd1Element(), and OpacityAddTotal().

◆ OpacityAdd1SubshellInduc()

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
ipOpacpointer to opacity offset with stack
lowlow energy limit to opacity bound
ihihigh-energy limit to opacity bound
athe abundance of the species in this level
bthe departure coefficient
chStateither 's' for static opacities, or 'v' for volitile

Definition at line 65 of file opacity_add1subshell.cpp.

References ASSERT, DEBUG_ENTRY, hydro, MAX2, MIN2, opac, and rfield.

Referenced by OpacityAdd1Element(), and save_opacity().

◆ OpacityAddTotal()

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 27 of file opacity_addtotal.cpp.

References ASSERT, atoms, ca, cdEXIT, conv, csphot(), DEBUG_ENTRY, molezone::den, dense, diatoms, EXIT_FAILURE, findspecieslocal(), fixit(), gv, h2, hmi, hydro, ionbal, ioQQQ, ipCARBON, ipH1s, ipH2p, ipH2s, ipH3d, ipH3p, ipH3s, ipH4d, ipH4f, ipH4p, ipH4s, ipH_LIKE, ipHe1s1S, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipMAGNESIUM, ipNITROGEN, ipoint(), ipOXYGEN, isnan, iso_sp, LIMELM, MALLOC, MIN2, mole, mole_global, NISO, nzone, opac, OpacityAdd1Element(), OpacityAdd1Subshell(), OpacityZero(), OpacityZeroOld(), oxy, phycon, POW2, rfield, SMALLFLOAT, TE1RYD, and trace.

Referenced by ConvBase().

Here is the call graph for this function:

◆ OpacityCreateAll()

◆ OpacityZero()

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, opac, and rfield.

Referenced by OpacityAddTotal(), SanityCheckBegin(), and save_opacity().

◆ OpacityZeroOld()

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, opac, and rfield.

Referenced by OpacityAddTotal().

Variable Documentation

◆ lgOpacMalloced

bool lgOpacMalloced
extern

set true when malloced, init to false

Definition at line 100 of file cdinit.cpp.

Referenced by OpacityCreateAll(), and tauff().

◆ opac

t_opac opac
extern

Definition at line 5 of file opacity.cpp.

Referenced by cdSPEC2(), ContCreateMesh(), ContCreatePointers(), ContRate(), ContSetIntensity(), ConvBase(), CoolCalc(), CoolEvaluate(), csphot(), DumpLine(), emergent_line(), GammaBn(), GammaK(), GammaPrt(), GammaPrtRate(), GammaPrtShells(), t_rfield::getCoarseTransCoef(), GrainRateDr(), highen(), HydroCSInterp(), diatomics::init(), InitDefaultsPreparse(), ion_photo(), ipShells(), iso_cascade(), iso_collide(), iso_level(), iso_photo(), iso_radiative_recomb(), iter_end_check(), IterEnd(), IterRestart(), IterStart(), lgConserveEnergy(), LimitSh(), lines_continuum(), lines_setup(), mole_effects(), mole_h_reactions(), opacity_more_memory(), OpacityAdd1Element(), OpacityAdd1Subshell(), OpacityAdd1SubshellInduc(), OpacityAddTotal(), OpacityCreate1Element(), OpacityCreateAll(), OpacityCreatePowerLaw(), OpacityCreateReilMan(), OpacityValenceRescale(), OpacityZero(), OpacityZeroOld(), outline_base_bin(), ParseCaseB(), ParseCommands(), ParseCompile(), ParseDont(), ParseSet(), ParseSphere(), ParseTauMin(), pltcon(), pltopc(), pnegopc(), PresTotCurrent(), PrtAllTau(), PrtComment(), PrtFinal(), PrtZone(), radius_first(), radius_increment(), radius_next(), rfield_opac_malloc(), rfield_opac_zero(), RT_continuum(), RT_DestProb(), RT_diffuse(), RT_iso_integrate_RRC(), RT_line_all(), RT_line_one_tau_reset(), RT_line_pumping(), RT_LineWidth(), RT_OTS(), RT_OTS_AddCont(), RT_OTS_AddLine(), RT_OTS_PrtRate(), RT_OTS_Update(), RT_recom_effic(), RT_tau_inc(), RT_tau_init(), RT_tau_reset(), RTesc_lya(), RTesc_lya_1side(), SanityCheckBegin(), Save_Line_RT(), save_opacity(), SaveDo(), SaveResults(), SaveSpecial(), state_get_put(), tauff(), TauZero(), zero(), t_fe2ovr_la::zero_opacity(), ZoneEnd(), and ZoneStart().