cloudy  trunk
wind.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 WIND_H_
5 #define WIND_H_
6 
8 struct Wind {
9 
12 
15 
19 
22 
24  bool lgStatic(void) const
25  {
26  ASSERT( ( windv0 == 0.) == m_lgStatic);
27  return m_lgStatic;
28  }
29 
31  bool lgBallistic(void) const
32  {
33  return m_lgBallistic ;
34  }
35 
40 
42  bool lgWindOK;
43 
47 
50 
53 
56 
59 
62 
66 
69 
71  bool lgVelPos;
72 
73  /* option to do rotating disk, set true with DISK option on wind command */
74  bool lgDisk;
75 
76  /* for rotating disk this is inner radius, else it is zero,
77  * divide by this to get centrifugal acceleration */
78  double DiskRadius;
79 
80  Wind(void) : windv0(0.), m_lgStatic(true), m_lgBallistic(false) {}
81 
82  void setDefault(void)
83  {
84  m_lgStatic = false;
85  m_lgBallistic = false;
86  }
87 
88  void setStatic(void)
89  {
90  m_lgStatic = true;
91  m_lgBallistic = false;
92  }
93 
94  void setBallistic(void)
95  {
96  m_lgStatic = false;
97  m_lgBallistic = true;
98  }
99 
100  private:
102 
104 
105  };
106 
107 extern Wind wind;
108 
109 
110 #endif /* WIND_H_ */
Wind::lgWindOK
bool lgWindOK
Definition: wind.h:42
Wind::lgVelPos
bool lgVelPos
Definition: wind.h:71
Wind::fmul
realnum fmul
Definition: wind.h:65
Wind::comass
realnum comass
Definition: wind.h:14
Wind::AccelAver
realnum AccelAver
Definition: wind.h:46
realnum
float realnum
Definition: cddefines.h:103
Wind::AccelElectron
realnum AccelElectron
Definition: wind.h:58
Wind::DiskRadius
double DiskRadius
Definition: wind.h:78
Wind::lgDisk
bool lgDisk
Definition: wind.h:74
Wind::m_lgStatic
bool m_lgStatic
Definition: wind.h:101
Wind::AccelTotalOutward
realnum AccelTotalOutward
Definition: wind.h:52
ASSERT
#define ASSERT(exp)
Definition: cddefines.h:578
Wind::lgStatic
bool lgStatic(void) const
Definition: wind.h:24
Wind::AccelLine
realnum AccelLine
Definition: wind.h:61
Wind
Definition: wind.h:8
Wind::setDefault
void setDefault(void)
Definition: wind.h:82
Wind::Wind
Wind(void)
Definition: wind.h:80
Wind::AccelMax
realnum AccelMax
Definition: wind.h:68
wind
Wind wind
Definition: wind.cpp:5
Wind::AccelGravity
realnum AccelGravity
Definition: wind.h:49
Wind::dvdr
realnum dvdr
Definition: wind.h:21
Wind::lgBallistic
bool lgBallistic(void) const
Definition: wind.h:31
Wind::setBallistic
void setBallistic(void)
Definition: wind.h:94
Wind::acldr
realnum acldr
Definition: wind.h:46
Wind::emdot
realnum emdot
Definition: wind.h:39
Wind::windv
realnum windv
Definition: wind.h:18
Wind::windv0
realnum windv0
Definition: wind.h:11
Wind::m_lgBallistic
bool m_lgBallistic
Definition: wind.h:103
Wind::AccelCont
realnum AccelCont
Definition: wind.h:55
Wind::setStatic
void setStatic(void)
Definition: wind.h:88