Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
continuum.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 CONTINUUM_H_
5 #define CONTINUUM_H_
6 
7 #include "module.h"
8 
10 void ContCreatePointers();
11 
13 void ContSetIntensity();
14 
17 
19 void ContCreateMesh();
20 
22 void ContNegative();
23 
30 double ffun(
31  /* the energy in Rydbergs where the continuum will be evaluated */
32  double anu ,
33  /* fraction of beamed continuum that is varies with time */
34  double *frac_beam_time,
35  /* fraction of beamed continuum that is constant */
36  double *frac_beam_const,
37  /* fraction of continuum that is isotropic */
38  double *frac_isotropic );
39 
41 double ffun(double anu);
42 
46 double ffun1(double xnu);
47 
48 /*outsum sum outward continuum beams */
49 void outsum(double *outtot, double *outin, double *outout);
50 
56 double cont_gaunt_calc(double, double, double);
57 
58 struct t_continuum : public module {
59  const char *chName () const
60  {
61  return "continuum";
62  }
63  void zero();
64  void comment(t_warnings&) {}
65 
67  bool lgCon0,
69 
71  double TotalLumin,
72  totlsv;
73 
76  cn1216,
77  cn1367,
78  cn2066,
79  sv4861,
80  sv1216,
81  sv2066,
82  sv1367;
83 
86 
89  long int nContBand;
90  vector<string> chContBandLabels;
91  vector<realnum> ContBandWavelength;
92  vector<long> ipContBandLow, ipContBandHi;
95  vector<realnum> BandEdgeCorrLow, BandEdgeCorrHi;
96 
99 
102  long int KshellLimit;
104 
105  /* set check energy every zone to check energy balance, slow */
107 };
108 
109 extern t_continuum continuum;
110 
111 
114 
117 
125 void addUniqueSpeciesBand( const string &filename, const string &speciesLabel );
126 
128 void SpeciesBandsCreate();
129 
131 void SpeciesBandsAccum();
132 
133 #endif /* CONTINUUM_H_ */
realnum cn2066
Definition: continuum.h:75
Definition: warnings.h:11
vector< long > ipContBandHi
Definition: continuum.h:92
realnum sv1367
Definition: continuum.h:75
double ffun1(double xnu)
Definition: cont_ffun.cpp:110
realnum sv4861
Definition: continuum.h:75
vector< string > chContBandLabels
Definition: continuum.h:90
void ContSetIntensity()
Definition: cont_setintensity.cpp:91
bool lgCheckEnergyEveryZone
Definition: continuum.h:106
realnum sv1216
Definition: continuum.h:75
long int KshellLimit
Definition: continuum.h:102
realnum fluxv
Definition: continuum.h:84
void SpeciesPseudoContCreate()
Definition: species_pseudo_cont.cpp:343
void zero()
Definition: continuum.cpp:8
realnum cn4861
Definition: continuum.h:75
double cont_gaunt_calc(double, double, double)
t_continuum continuum
Definition: continuum.cpp:6
bool lgCoStarInterpolationCaution
Definition: continuum.h:67
vector< realnum > BandEdgeCorrLow
Definition: continuum.h:95
void IncidentContinuumHere()
Definition: cont_setintensity.cpp:58
void comment(t_warnings &)
Definition: continuum.h:64
void ContCreateMesh()
Definition: cont_createmesh.cpp:16
vector< realnum > ContBandWavelength
Definition: continuum.h:91
bool lgPrtIsotropicCont
Definition: continuum.h:98
float realnum
Definition: cddefines.h:127
realnum cn1367
Definition: continuum.h:75
realnum EnergyKshell
Definition: continuum.h:103
void addUniqueSpeciesBand(const string &filename, const string &speciesLabel)
Definition: species_pseudo_cont.cpp:858
long int nContBand
Definition: continuum.h:89
Definition: continuum.h:58
void SpeciesBandsCreate()
Definition: species_pseudo_cont.cpp:873
double TotalLumin
Definition: continuum.h:71
realnum fbeta
Definition: continuum.h:85
bool lgCon0
Definition: continuum.h:67
vector< long > ipContBandLow
Definition: continuum.h:92
double totlsv
Definition: continuum.h:71
void ContNegative()
Definition: cont_negative.cpp:10
double ffun(double anu, double *frac_beam_time, double *frac_beam_const, double *frac_isotropic)
Definition: cont_ffun.cpp:34
void SpeciesBandsAccum()
Definition: species_pseudo_cont.cpp:907
void SpeciesPseudoContAccum()
Definition: species_pseudo_cont.cpp:360
vector< realnum > BandEdgeCorrHi
Definition: continuum.h:95
realnum sv2066
Definition: continuum.h:75
Definition: module.h:26
void ContCreatePointers()
Definition: cont_createpointers.cpp:61
const char * chName() const
Definition: continuum.h:59
realnum cn1216
Definition: continuum.h:75
void outsum(double *outtot, double *outin, double *outout)
Definition: cont_ffun.cpp:345