Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
rt_escprob.h
Go to the documentation of this file.
1/* This file is part of Cloudy and is copyright (C)1978-2025 by Gary J. Ferland and
2 * others. For conditions of distribution and use see copyright notice in license.txt */
3
4#ifndef RT_ESCPROB_H_
5#define RT_ESCPROB_H_
6
8
10{
11public:
12 enum dest_t {
14 /* core function for K2 destruction */
16 /* core function for complete redist destruction */
18 /* core function for simple destruction */
20 /* Lyman alpha destruction */
22 };
23 enum dest_t t;
24 double dest;
25DestType() : t(ipINVALID), dest(0.0) {}
26};
27
32double esc_PRD_1side(double tau,
33 double a);
34
36double esc_CRDwing_1side(double tau,
37 double a );
38
46double RTesc_lya(
47 /* the inward escape probability */
48 double *esin,
49 /* the destruction probility */
50 double *dest,
51 /* abundance of the species */
52 double abund,
53 const TransitionProxy& t,
54 realnum DopplerWidth);
55
61double esc_PRD(
62 double tau,
63 double tau_out,
64 double damp );
65
71double esc_CRDwing(
72 double tau_in,
73 double tau_out,
74 double damp);
75
80double esc_CRDcore(
81 double tau_in,
82 double tau_out);
83
87double esca0k2(double taume);
88
93double esccon(double tau,
94 double hnukt);
95
105void RT_DestProb(
106 const TransitionProxy& t,
107 /* line width */
108 double widl,
109 /* type of redistribution function */
110 const DestType& nCore);
111
116double RT_LineWidth(const TransitionProxy& t, realnum DopplerWidth);
117#endif /* RT_ESCPROB_H_ */
t_abund abund
Definition abund.cpp:5
float realnum
Definition cddefines.h:127
Definition rt_escprob.h:10
dest_t
Definition rt_escprob.h:12
@ ipINVALID
Definition rt_escprob.h:13
@ ipDEST_LYA
Definition rt_escprob.h:21
@ ipDEST_K2
Definition rt_escprob.h:15
@ ipDEST_SIMPL
Definition rt_escprob.h:19
@ ipDEST_INCOM
Definition rt_escprob.h:17
enum dest_t t
Definition rt_escprob.h:23
DestType()
Definition rt_escprob.h:25
double dest
Definition rt_escprob.h:24
Definition transition.h:24
double esc_PRD_1side(double tau, double a)
Definition rt_escprob.cpp:116
double esc_CRDcore(double tau_in, double tau_out)
Definition rt_escprob.cpp:382
double esca0k2(double taume)
Definition rt_escprob.cpp:427
double RT_LineWidth(const TransitionProxy &t, realnum DopplerWidth)
Definition rt_escprob.cpp:974
double esc_CRDwing_1side(double tau, double a)
Definition rt_escprob.cpp:165
void RT_DestProb(const TransitionProxy &t, double widl, const DestType &nCore)
Definition rt_escprob.cpp:726
double esc_CRDwing(double tau_in, double tau_out, double damp)
Definition rt_escprob.cpp:359
double RTesc_lya(double *esin, double *dest, double abund, const TransitionProxy &t, realnum DopplerWidth)
Definition rt_escprob.cpp:208
double esc_PRD(double tau, double tau_out, double damp)
Definition rt_escprob.cpp:351
double esccon(double tau, double hnukt)
Definition rt_escprob.cpp:555