Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
deuterium.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 DEUTERIUM_H_
5 #define DEUTERIUM_H_
6 
7 #include "module.h"
8 
9 class t_deuterium : public module
10 {
11 public:
13  {
14  lgElmtOn = false;
15  gas_phase = 0.f;
16  xIonDense[0] = 0.;
17  xIonDense[1] = 0.;
18  fractionation = 0.f;
19  m_xMolecules = 0.f;
20  }
21  bool lgElmtOn;
23  double xIonDense[2];
25 private:
29 public:
31  {
32  return m_xMolecules;
33  }
34  void updateXMolecules();
35  void zero();
36  void comment(t_warnings&) {}
37  const char* chName() const
38  {
39  return "deuterium";
40  }
41 };
42 
43 extern t_deuterium deut;
44 
45 void ScaleDensitiesDeuterium( const realnum &factor );
47 void SetGasPhaseDeuterium( const realnum &Hdensity );
48 void SetDeuteriumIonization( const double &xNeutral, const double &xIonized );
50 
51 #endif /* DEUTERIUM_H_ */
Definition: warnings.h:11
bool lgElmtOn
Definition: deuterium.h:21
const char * chName() const
Definition: deuterium.h:37
void SetDeuteriumIonization(const double &xNeutral, const double &xIonized)
Definition: deuterium.cpp:37
t_deuterium deut
Definition: deuterium.cpp:7
realnum m_xMolecules
Definition: deuterium.h:28
Definition: deuterium.h:9
float realnum
Definition: cddefines.h:127
void ScaleDensitiesDeuterium(const realnum &factor)
Definition: deuterium.cpp:21
realnum gas_phase
Definition: deuterium.h:22
double xIonDense[2]
Definition: deuterium.h:23
realnum fractionation
Definition: deuterium.h:24
void SetDeuteriumFractionation(const realnum &frac)
Definition: deuterium.cpp:57
void InitDeuteriumIonization()
Definition: deuterium.cpp:29
realnum xMolecules(void)
Definition: deuterium.h:30
void comment(t_warnings &)
Definition: deuterium.h:36
t_deuterium()
Definition: deuterium.h:12
double frac(double d)
Definition: thirdparty.cpp:3369
void SetGasPhaseDeuterium(const realnum &Hdensity)
Definition: deuterium.cpp:65
Definition: module.h:26
void updateXMolecules()
Definition: deuterium.cpp:16
void zero()
Definition: deuterium.cpp:9