cloudy  trunk
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
yield.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2008 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 
4 #ifndef _YIELD_H_
5 #define _YIELD_H_
6 
7 /* yield.h */
8 
10 #define MEWE_FLUOR 12000
11 
12 class t_yield : public Singleton<t_yield>
13 {
14  friend class Singleton<t_yield>;
15 protected:
16  t_yield();
17 private:
25  realnum frac_elec_eject[30][30][7][10];
26  long int n_elec_eject[30][30][7];
27 
39 
41  long int nfl_lines;
42 
45 public:
46  void init_yield();
47 
48  realnum elec_eject_frac( long n, long i, long ns, long ne ) const
49  {
50  if( lgKillAuger )
51  return ( ne == 0 ) ? 1.f : 0.f;
52  else
53  return frac_elec_eject[n][i][ns][ne];
54  }
55  long nelec_eject( long n, long i, long ns ) const
56  {
57  return lgKillAuger ? 1 : n_elec_eject[n][i][ns];
58  }
59  int nelem( long n ) const { return nfl_nelem[n]; }
60  int ion( long n ) const { return nfl_ion[n]; }
61  int nshell( long n ) const { return nfl_nshell[n]; }
62  int ion_emit( long n ) const { return nfl_ion_emit[n]; }
63  realnum energy( long n ) const { return fl_energy[n]; }
64  realnum yield( long n ) const { return fl_yield[n]; }
65  void set_ipoint( long n, long val ) { nfl_ipoint[n] = val; }
66  int ipoint( long n ) const { return nfl_ipoint[n]; }
67 
68  int nlines() const { return nfl_lines; }
69 
70  void kill_yield() { lgKillAuger = true; }
71  void reset_yield() { lgKillAuger = false; }
72 };
73 
74 #endif /* _YIELD_H_ */

Generated for cloudy by doxygen 1.8.1.2