cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
wind.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2022 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_ */
bool m_lgBallistic
Definition: wind.h:103
void setDefault(void)
Definition: wind.h:82
realnum dvdr
Definition: wind.h:21
realnum AccelLine
Definition: wind.h:61
bool lgWindOK
Definition: wind.h:42
bool lgDisk
Definition: wind.h:74
realnum windv0
Definition: wind.h:11
realnum AccelAver
Definition: wind.h:46
realnum AccelElectron
Definition: wind.h:58
bool lgVelPos
Definition: wind.h:71
bool m_lgStatic
Definition: wind.h:101
realnum AccelMax
Definition: wind.h:68
Wind wind
Definition: wind.cpp:5
bool lgBallistic(void) const
Definition: wind.h:31
Definition: wind.h:8
realnum AccelGravity
Definition: wind.h:49
realnum AccelCont
Definition: wind.h:55
void setStatic(void)
Definition: wind.h:88
float realnum
Definition: cddefines.h:124
realnum AccelTotalOutward
Definition: wind.h:52
Wind(void)
Definition: wind.h:80
void setBallistic(void)
Definition: wind.h:94
#define ASSERT(exp)
Definition: cddefines.h:613
realnum emdot
Definition: wind.h:39
bool lgStatic(void) const
Definition: wind.h:24
double DiskRadius
Definition: wind.h:78
realnum acldr
Definition: wind.h:46
realnum windv
Definition: wind.h:18
realnum comass
Definition: wind.h:14
realnum fmul
Definition: wind.h:65