cloudy
trunk
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
source
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
11
realnum
windv0
;
12
14
realnum
comass
;
15
18
realnum
windv
;
19
21
realnum
dvdr
;
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
39
realnum
emdot
;
40
42
bool
lgWindOK
;
43
46
realnum
AccelAver
,
acldr
;
47
49
realnum
AccelGravity
;
50
52
realnum
AccelTotalOutward
;
53
55
realnum
AccelCont
;
56
58
realnum
AccelElectron
;
59
61
realnum
AccelLine
;
62
65
realnum
fmul
;
66
68
realnum
AccelMax
;
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
:
101
bool
m_lgStatic
;
102
103
bool
m_lgBallistic
;
104
105
};
106
107
extern
Wind
wind
;
108
109
110
#endif
/* WIND_H_ */
Wind::m_lgBallistic
bool m_lgBallistic
Definition:
wind.h:103
Wind::setDefault
void setDefault(void)
Definition:
wind.h:82
Wind::dvdr
realnum dvdr
Definition:
wind.h:21
Wind::AccelLine
realnum AccelLine
Definition:
wind.h:61
Wind::lgWindOK
bool lgWindOK
Definition:
wind.h:42
Wind::lgDisk
bool lgDisk
Definition:
wind.h:74
Wind::windv0
realnum windv0
Definition:
wind.h:11
Wind::AccelAver
realnum AccelAver
Definition:
wind.h:46
Wind::AccelElectron
realnum AccelElectron
Definition:
wind.h:58
Wind::lgVelPos
bool lgVelPos
Definition:
wind.h:71
Wind::m_lgStatic
bool m_lgStatic
Definition:
wind.h:101
Wind::AccelMax
realnum AccelMax
Definition:
wind.h:68
wind
Wind wind
Definition:
wind.cpp:5
Wind::lgBallistic
bool lgBallistic(void) const
Definition:
wind.h:31
Wind
Definition:
wind.h:8
Wind::AccelGravity
realnum AccelGravity
Definition:
wind.h:49
Wind::AccelCont
realnum AccelCont
Definition:
wind.h:55
Wind::setStatic
void setStatic(void)
Definition:
wind.h:88
realnum
float realnum
Definition:
cddefines.h:124
Wind::AccelTotalOutward
realnum AccelTotalOutward
Definition:
wind.h:52
Wind::Wind
Wind(void)
Definition:
wind.h:80
Wind::setBallistic
void setBallistic(void)
Definition:
wind.h:94
ASSERT
#define ASSERT(exp)
Definition:
cddefines.h:613
Wind::emdot
realnum emdot
Definition:
wind.h:39
Wind::lgStatic
bool lgStatic(void) const
Definition:
wind.h:24
Wind::DiskRadius
double DiskRadius
Definition:
wind.h:78
Wind::acldr
realnum acldr
Definition:
wind.h:46
Wind::windv
realnum windv
Definition:
wind.h:18
Wind::comass
realnum comass
Definition:
wind.h:14
Wind::fmul
realnum fmul
Definition:
wind.h:65
Generated by
1.8.5