Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rt_escprob.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2023 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 
7 class TransitionProxy;
8 
9 class DestType
10 {
11 public:
12  enum dest_t {
13  ipINVALID = -1,
14  /* core function for K2 destruction */
15  ipDEST_K2 = 1,
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;
25 DestType() : t(ipINVALID), dest(0.0) {}
26 };
27 
32 double esc_PRD_1side(double tau,
33  double a);
34 
36 double esc_CRDwing_1side(double tau,
37  double a );
38 
46 double 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 
61 double esc_PRD(
62  double tau,
63  double tau_out,
64  double damp );
65 
71 double esc_CRDwing(
72  double tau_in,
73  double tau_out,
74  double damp);
75 
80 double esc_CRDcore(
81  double tau_in,
82  double tau_out);
83 
87 double esca0k2(double taume);
88 
93 double esccon(double tau,
94  double hnukt);
95 
105 void RT_DestProb(
106  const TransitionProxy& t,
107  /* line width */
108  double widl,
109  /* type of redistribution function */
110  const DestType& nCore);
111 
116 double RT_LineWidth(const TransitionProxy& t, realnum DopplerWidth);
117 #endif /* RT_ESCPROB_H_ */
Definition: rt_escprob.h:19
double esc_PRD(double tau, double tau_out, double damp)
Definition: rt_escprob.cpp:348
DestType()
Definition: rt_escprob.h:25
Definition: rt_escprob.h:9
Definition: rt_escprob.h:15
double esc_CRDwing(double tau_in, double tau_out, double damp)
Definition: rt_escprob.cpp:356
double dest
Definition: rt_escprob.h:24
double esccon(double tau, double hnukt)
Definition: rt_escprob.cpp:552
double esc_CRDcore(double tau_in, double tau_out)
Definition: rt_escprob.cpp:379
double esc_PRD_1side(double tau, double a)
Definition: rt_escprob.cpp:116
Definition: rt_escprob.h:17
dest_t
Definition: rt_escprob.h:12
t_abund abund
Definition: abund.cpp:5
float realnum
Definition: cddefines.h:127
void RT_DestProb(const TransitionProxy &t, double widl, const DestType &nCore)
Definition: rt_escprob.cpp:722
Definition: rt_escprob.h:13
enum dest_t t
Definition: rt_escprob.h:23
Definition: rt_escprob.h:21
Definition: transition.h:23
double esca0k2(double taume)
Definition: rt_escprob.cpp:424
double RT_LineWidth(const TransitionProxy &t, realnum DopplerWidth)
Definition: rt_escprob.cpp:958
double esc_CRDwing_1side(double tau, double a)
Definition: rt_escprob.cpp:165
double RTesc_lya(double *esin, double *dest, double abund, const TransitionProxy &t, realnum DopplerWidth)
Definition: rt_escprob.cpp:208