Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
wind.h
Go to the documentation of this file.
1/* This file is part of Cloudy and is copyright (C)1978-2025 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
8struct 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
43
47
50
53
56
59
62
66
69
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
107extern Wind wind;
108
109
110#endif /* WIND_H_ */
#define ASSERT(exp)
Definition cddefines.h:637
float realnum
Definition cddefines.h:127
Definition wind.h:8
realnum fmul
Definition wind.h:65
void setBallistic(void)
Definition wind.h:94
Wind(void)
Definition wind.h:80
double DiskRadius
Definition wind.h:78
realnum windv
Definition wind.h:18
realnum acldr
Definition wind.h:46
realnum dvdr
Definition wind.h:21
realnum AccelAver
Definition wind.h:46
bool lgVelPos
Definition wind.h:71
bool lgStatic(void) const
Definition wind.h:24
realnum AccelTotalOutward
Definition wind.h:52
bool lgBallistic(void) const
Definition wind.h:31
bool lgDisk
Definition wind.h:74
bool m_lgStatic
Definition wind.h:101
realnum AccelLine
Definition wind.h:61
void setDefault(void)
Definition wind.h:82
realnum emdot
Definition wind.h:39
void setStatic(void)
Definition wind.h:88
realnum AccelMax
Definition wind.h:68
bool lgWindOK
Definition wind.h:42
realnum AccelElectron
Definition wind.h:58
realnum AccelCont
Definition wind.h:55
bool m_lgBallistic
Definition wind.h:103
realnum windv0
Definition wind.h:11
realnum comass
Definition wind.h:14
realnum AccelGravity
Definition wind.h:49
Wind wind
Definition wind.cpp:5