Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
rt_escprob.cpp File Reference
#include "cddefines.h"
#include "dense.h"
#include "conv.h"
#include "opacity.h"
#include "taulines.h"
#include "pressure.h"
#include "wind.h"
#include "rt.h"
#include "iso.h"
#include "rfield.h"
#include "rt_escprob.h"
#include "integrate.h"
Include dependency graph for rt_escprob.cpp:

Functions

STATIC double RT_DestHummer (double beta)
 
STATIC void RT_line_electron_scatter (const TransitionProxy &t, realnum DopplerWidth)
 
STATIC double escmase (double tau)
 
STATIC void RTesc_lya_1side (double taume, double beta, realnum *esc, realnum *dest, long ipLine)
 
double esc_PRD_1side (double tau, double a)
 
double esc_CRDwing_1side (double tau, double a)
 
double RTesc_lya (double *esin, double *dest, double popopc, const TransitionProxy &t, realnum)
 
double esc_2side_base (double tau, double tau_out, double damp, double(*esc_1side)(double, double))
 
double esc_PRD (double tau, double tau_out, double damp)
 
double esc_CRDwing (double tau_in, double tau_out, double damp)
 
double esc_CRDcore (double tau_in, double tau_out)
 
double esca0k2 (double taume)
 
STATIC void FindNeg (void)
 
double esccon (double tau, double hnukt)
 
void RT_DestProb (const TransitionProxy &t, double DopplerWidth, const DestType &nCore)
 
double RT_LineWidth (const TransitionProxy &t, realnum DopplerWidth)
 
double RT_EscLVG (double tau, double sigma)
 

Variables

const bool NEW_PELEC_ESC =false
 
const bool NEW_MASE_ESCAPE =false
 

Function Documentation

◆ esc_2side_base()

double esc_2side_base ( double tau,
double tau_out,
double damp,
double(* esc_1side )(double, double) )
inline

References ASSERT, DEBUG_ENTRY, fprintf(), ioQQQ, iteration, and rt.

Referenced by esc_CRDwing(), and esc_PRD().

Here is the call graph for this function:

◆ esc_CRDcore()

double esc_CRDcore ( double tau_in,
double tau_out )

esc_CRDcore escape probability CRD with no wings, for subordinate lines

Parameters
tau
tout

References ASSERT, DEBUG_ENTRY, esca0k2(), iteration, MIN2, and rt.

Referenced by RT_line_escape().

Here is the call graph for this function:

◆ esc_CRDwing()

double esc_CRDwing ( double tau_in,
double tau_out,
double damp )

esc_CRDwing escape probability CRD with wings, for subordinate lines

Parameters
tau
tout
damp

References ASSERT, cdEXIT, esc_2side_base(), esc_CRDwing_1side(), EXIT_FAILURE, fprintf(), and ioQQQ.

Referenced by RT_line_escape().

Here is the call graph for this function:

◆ esc_CRDwing_1side()

double esc_CRDwing_1side ( double tau,
double a )

esc_CRDwing_1side fundamental escape probability radiative transfer routine, for complete redistribution

References ASSERT, DEBUG_ENTRY, esca0k2(), escmase(), and POW2.

Referenced by esc_CRDwing(), mc_escape(), and RT_continuum_shield_fcn_point().

Here is the call graph for this function:

◆ esc_PRD()

double esc_PRD ( double tau,
double tau_out,
double damp )

esc_PRD escape probability radiative transfer for incomplete redistribution

Parameters
tau
tout
damp

References esc_2side_base(), and esc_PRD_1side().

Referenced by RT_line_escape().

Here is the call graph for this function:

◆ esc_PRD_1side()

double esc_PRD_1side ( double tau,
double a )

esc_PRD_1side fundamental escape probability radiative transfer routine for incomplete redistribution

Parameters
tau
a

References ASSERT, DEBUG_ENTRY, escmase(), MIN2, pow(), and rt.

Referenced by esc_PRD(), mole_h_reactions(), RT_continuum_shield_fcn_point(), and RT_LineWidth().

Here is the call graph for this function:

◆ esca0k2()

double esca0k2 ( double taume)

esca0k2 derive Hummer's K2 escape probability for Doppler core only

Parameters
taume

References DEBUG_ENTRY, and escmase().

Referenced by esc_CRDcore(), esc_CRDwing_1side(), mc_escape(), and RT_continuum_shield_fcn_point().

Here is the call graph for this function:

◆ esccon()

double esccon ( double tau,
double hnukt )

escpcn continuum escape probability

Parameters
tau
hnukt

References DEBUG_ENTRY, and Integrator< Integrand, Method >::sum().

Referenced by RT_recom_effic().

Here is the call graph for this function:

◆ escmase()

STATIC double escmase ( double tau)

References ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, FindNeg(), fprintf(), ioQQQ, nzone, ShowMe(), and STATIC.

Referenced by esc_CRDwing_1side(), esc_PRD_1side(), and esca0k2().

Here is the call graph for this function:

◆ FindNeg()

STATIC void FindNeg ( void )

References dBaseTrans, DEBUG_ENTRY, DumpLine(), HFLines, NISO, nSpecies, nWindLine, STATIC, and TauLine2.

Referenced by escmase().

Here is the call graph for this function:

◆ RT_DestHummer()

STATIC double RT_DestHummer ( double beta)
Parameters
betabeta is ratio of continuum to mean line opacity,
Returns
dest prob = beta F(beta)

References ASSERT, DEBUG_ENTRY, and STATIC.

Referenced by RT_DestProb().

◆ RT_DestProb()

void RT_DestProb ( const TransitionProxy & t,
double widl,
const DestType & nCore )

◆ RT_EscLVG()

double RT_EscLVG ( double tau,
double sigma )

Referenced by RT_line_escape().

◆ RT_line_electron_scatter()

◆ RT_LineWidth()

double RT_LineWidth ( const TransitionProxy & t,
realnum DopplerWidth )

RT_LineWidth compute line width (cm/sec), using optical depth array information

Parameters
t
DopplerWidth

References ASSERT, EmissionProxy::damp(), EmissionProxy::dampXvel(), DEBUG_ENTRY, dense, TransitionProxy::Emis(), esc_PRD_1side(), iteration, MAX2, MIN2, opac, EmissionProxy::Pdest(), EmissionProxy::Pelec_esc(), pow(), pressure, EmissionProxy::TauIn(), EmissionProxy::TauTot(), and wind.

Referenced by PressureRadiationLine(), and PresTotCurrent().

Here is the call graph for this function:

◆ RTesc_lya()

double RTesc_lya ( double * esin,
double * dest,
double abund,
const TransitionProxy & t,
realnum DopplerWidth )

RTesc_lya escape prob for hydrogen atom Lya, using Hummer and Kunasz results

Parameters
*esin
*dest
abund
tline structure
DopplerWidth

References ASSERT, DEBUG_ENTRY, dense, TransitionProxy::Emis(), TransitionProxy::ipCont(), MAX2, MIN2, NEW_PELEC_ESC, opac, rfield, rt, RTesc_lya_1side(), EmissionProxy::TauIn(), and EmissionProxy::TauTot().

Referenced by RT_line_escape().

Here is the call graph for this function:

◆ RTesc_lya_1side()

STATIC void RTesc_lya_1side ( double taume,
double beta,
realnum * esc,
realnum * dest,
long ipLine )

References DEBUG_ENTRY, DEST0, exp10(), fprintf(), ioQQQ, ipLine, MAX2, MIN2, opac, POW2, and STATIC.

Referenced by RTesc_lya().

Here is the call graph for this function:

Variable Documentation

◆ NEW_MASE_ESCAPE

const bool NEW_MASE_ESCAPE =false

Referenced by RT_DestProb().

◆ NEW_PELEC_ESC

const bool NEW_PELEC_ESC =false