cloudy trunk
Loading...
Searching...
No Matches
rt.h
Go to the documentation of this file.
1/* This file is part of Cloudy and is copyright (C)1978-2013 by Gary J. Ferland and
2 * others. For conditions of distribution and use see copyright notice in license.txt */
3
4#ifndef RT_H_
5#define RT_H_
6
9void RT_line_all( void );
10
13double RT_line_driving(void);
14
15/* in following two the logical variable says whether to do the
16 * escape probabilities too (true) or just the destruction probabilities (false) */
17
27void RT_line_one(const TransitionProxy& t,
28 bool lgShield_this_zone,
29 realnum pestrk,
30 realnum DopplerWidth);
31
36
38void RT_diffuse(void);
39
41void RT_continuum(void);
42
45void RT_OTS(void);
46
51void RT_OTS_AddLine(double ots,
52 long int ip );
53
60void RT_OTS_Update(double* SumOTS);
61
63void RT_OTS_Zero( void );
64
66void RT_OTS_ChkSum(
67 long int ipPnt);
68
78 const TransitionProxy & t ,
79 long int mas_species,
80 long int mas_ion,
81 long int mas_hi,
82 long int mas_lo,
83 realnum DopplerWidth);
84
86void RT_tau_init(void);
87
91class TransitionProxy;
93 const TransitionProxy & t );
94
96void RT_tau_reset(void);
97
99void RT_tau_inc(void);
100
105void RT_OTS_PrtRate(
106 double weak ,
107 int chFlag );
108
113double esc_PRD_1side(double tau,
114 double a);
115
117double esc_CRDwing_1side(double tau,
118 double a );
119
127double RTesc_lya(
128 double *esin,
129 double *dest,
130 double abund,
131 const TransitionProxy& t,
132 realnum DopplerWidth);
133
139double esc_CRDwing(double tau,
140 double tout,
141 double damp);
142
147double esc_CRDcore(double tau,
148 double tout);
149
155double esc_PRD(double tau,
156 double tout,
157 double damp );
158
162double esca0k2(double taume);
163
168double esccon(double tau,
169 double hnukt);
170
180double RT_DestProb(
181 double abund,
182 double crsec,
183 long int ipanu,
184 double widl,
185 double escp,
186 int nCore);
187
188#if 0
193double RT_LyaWidth(
194 double tauin,
195 double tauout,
196 double a,
197 double vth);
198#endif
199
204double RT_LineWidth(
205 const TransitionProxy & t,
206 realnum DopplerWidth);
207
212double RT_DestHummer(
213 double beta);
214
218double RT_recom_effic(
219 long int ip);
220
222void RT_stark(void);
223
226/* #define DEST0 1e-8 */
227#define DEST0 SMALLFLOAT
228
283
284extern t_rt rt;
285
286void RT_iso_integrate_RRC( const long ipISO, const long nelem, const bool lgUpdateContinuum );
287
290#define LINE_CONT_SHIELD_PESC 1
291#define LINE_CONT_SHIELD_FEDERMAN 2
292#define LINE_CONT_SHIELD_FERLAND 3
293
294#endif /* RT_H_ */
t_abund abund
Definition abund.cpp:5
float realnum
Definition cddefines.h:103
t_rt rt
Definition rt.cpp:5
double RT_DestHummer(double beta)
double RT_line_driving(void)
void RT_iso_integrate_RRC(const long ipISO, const long nelem, const bool lgUpdateContinuum)
double esc_PRD_1side(double tau, double a)
void RT_continuum(void)
void RT_line_one(const TransitionProxy &t, bool lgShield_this_zone, realnum pestrk, realnum DopplerWidth)
void RT_tau_inc(void)
void RT_stark(void)
Definition rt_stark.cpp:14
void RT_OTS_ChkSum(long int ipPnt)
Definition rt_ots.cpp:631
void RT_diffuse(void)
void RT_line_all(void)
void RT_OTS_Zero(void)
Definition rt_ots.cpp:599
double esc_CRDwing(double tau, double tout, double damp)
void RT_line_one_tau_reset(const TransitionProxy &t)
void RT_line_one_tauinc(const TransitionProxy &t, long int mas_species, long int mas_ion, long int mas_hi, long int mas_lo, realnum DopplerWidth)
double esca0k2(double taume)
double RT_continuum_shield_fcn(const TransitionProxy &t)
double esc_CRDcore(double tau, double tout)
double RT_LineWidth(const TransitionProxy &t, realnum DopplerWidth)
double RT_DestProb(double abund, double crsec, long int ipanu, double widl, double escp, int nCore)
void RT_OTS_PrtRate(double weak, int chFlag)
Definition rt_ots.cpp:712
double esc_CRDwing_1side(double tau, double a)
void RT_OTS(void)
Definition rt_ots.cpp:39
void RT_OTS_Update(double *SumOTS)
Definition rt_ots.cpp:488
double RTesc_lya(double *esin, double *dest, double abund, const TransitionProxy &t, realnum DopplerWidth)
double esc_PRD(double tau, double tout, double damp)
double esccon(double tau, double hnukt)
double RT_recom_effic(long int ip)
void RT_tau_init(void)
void RT_tau_reset(void)
void RT_OTS_AddLine(double ots, long int ip)
Definition rt_ots.cpp:402
Definition rt.h:229
realnum wayin
Definition rt.h:232
realnum fracin
Definition rt.h:239
realnum tauxry
Definition rt.h:253
realnum TAddHeI
Definition rt.h:243
bool lgElecScatEscape
Definition rt.h:262
long int mas_ion
Definition rt.h:277
long int mas_hi
Definition rt.h:277
bool lgFstOn
Definition rt.h:256
int nLineContShield
Definition rt.h:259
realnum TAddHLya
Definition rt.h:242
long int ipxry
Definition rt.h:250
long int mas_lo
Definition rt.h:277
realnum dTauMase
Definition rt.h:267
bool lgMaserSetDR
Definition rt.h:270
realnum DoubleTau
Definition rt.h:247
long int mas_species
Definition rt.h:277
bool lgStarkON
Definition rt.h:280
realnum wayout
Definition rt.h:236
bool lgMaserCapHit
Definition rt.h:274