-
Notifications
You must be signed in to change notification settings - Fork 7
/
patch.h
34 lines (30 loc) · 1.3 KB
/
patch.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef PATCH_HINCLUDED
#define PATCH_HINCLUDED
typedef struct {
double dCentMass;
double dOrbDist;
double dWidth; /* same as dxPeriod */
double dLength; /* same as dyPeriod */
/* following values computed from other parameters */
double dOrbFreq;
double dOrbFreqZ2;
/* external perturber parameters */
int bExtPert;
double dPertOrbDist;
double dPertMass;
double dPertMaxZ; /* maximum vertical displacement of perturber from orbital plane */
double dPertOrbFreqZ; /* vertical frequency of perturber oscillation */
double dPertPhase; /* initial phase of perturber's orbit, relative to patch */
double dPertPhaseZ; /* initial phase of perturber's vertical oscillation, relative to orbital plane */
double dPertOrbFreq; /* computed */
/* azimuthal wrap randomization parameters */
int bRandAzWrap;
int iStripOption; /* 0=left only,1=right only,2=both */
double dStripInner; /* between 0 and dWidth/2 */
double dStripOuter; /* ditto (dStripOuter > dStripInner) */
double dVelDispX,dVelDispY; /* desired velocity dispersion components after wrap */
double dAvgVertAmp; /* desired mean vertical oscillation amplitude after wrap */
double dAvgMass; /* should not include any perturbers */
} PATCH_PARAMS;
enum {STRIP_LEFT_ONLY,STRIP_RIGHT_ONLY,STRIP_BOTH};
#endif /* !PATCH_HINCLUDED */