forked from N-BodyShop/gasoline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparameters.h
406 lines (400 loc) · 8.93 KB
/
parameters.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
#ifndef PARAMETERS_HINCLUDED
#define PARAMETERS_HINCLUDED
#include <sys/param.h> /* for MAXPATHLEN */
#ifndef MAXPATHLEN
#define MAXPATHLEN 256
#endif
#ifndef MAXLISTLEN
#define MAXLISTLEN 1024
#endif
#include "cosmo.h"
#include "patch.h"
struct parameters {
/*
** Parameters for PKDGRAV.
*/
int nThreads;
int bDiag;
int bOverwrite;
int bVWarnings;
int bVStart;
int bVStep;
int bVRungStat;
int bVDetails;
int bLogTiming;
int bLogTimingSubStep;
int bLogTimingStep;
int bLogTimingSubStepTot;
int bLogTimingStepTot;
int bPeriodic;
int bInflowOutflow;
int bRestart;
int bParaRead;
int bParaWrite;
int nIOProcessor;
int bCannonical;
int bStandard;
int bKDK;
int bBinary;
int bGravStep;
int bEpsAccStep;
int bSqrtPhiStep;
int bAccelStep; /* true if bEpsAccStep or bSqrtPhiStep */
int bDensityStep;
int bDeltaAccelStep;
int bDeltaAccelStepGasTree;
int bLongRangeStep;
int nTruncateRung;
int bNonSymp;
int iBinaryOutput;
int bNoReOrder;
int bPackedVector;
int bDoDensity;
int bInitGasDensity;
int iReadIOrder;
int bDoIOrderOutput;
int bDohOutput;
int bDoSphhOutput;
int bDoPressureOutput;
int bDoHydroOutput;
int bDoBalsaraOutput;
int bDoDivvOutput;
int bDoCurlvOutput;
int bDoCSoundOutput;
int bDodtOutput;
int bDoIonOutput;
#ifdef COOLING_MOLECULARH
int bDoCorreL; /* Output the correlation length used for calculating H2 shielding*/
#endif
int bDoCSound;
#ifdef PARTICLESPLIT
double dInitGasMass;
#endif
int bDoDminOutput;
int bSymCool;
int bDoGravity;
int bDoSelfGravity;
int bFandG;
int bHeliocentric;
double dSunSoft;
int bLogHalo;
double dLogHaloVcirc;
double dLogHaloEps;
double dLogHaloFlat;
double dLogHaloSoft;
int bHernquistSpheroid;
int bNFWSpheroid;
double dNFWm200;
double dNFWr200;
double dNFWconc;
double dNFWsoft;
int bElliptical;
int bEllipticalDarkNFW;
int bHomogSpheroid;
double dHomogSpheroidM;
double dHomogSpheroidR;
int bBodyForce;
double dBodyForceConst;
int bGalaxyDiskVerticalPotential;
double dGalaxyDiskVerticalPotentialVc;
double dGalaxyDiskVerticalPotentialR;
double dGalaxyDiskVerticalPotentialStarSigma;
double dGalaxyDiskVerticalPotentialStarH;
double dGalaxyDiskVerticalPotentialGasSigma;
double dGalaxyDiskVerticalPotentialGasH;
int bMiyamotoDisk;
int bTimeVarying;
int bRotatingBar;
ROTBAR rotbar;
int bRotFrame;
double dOmega;
double dOmegaDot;
int bPatch;
PATCH_PARAMS PP;
int bSimpleGasDrag;
int bEpstein;
double dGamma;
int nBucket;
int iOutInterval;
int iOutMinorInterval;
int iLogInterval;
int iCheckInterval;
int iOrder;
int bEwald;
int iEwOrder;
int nReplicas;
int iStartStep;
int iStopStep;
int nSteps;
int nSmooth;
int nSmoothMax;
int iMaxRung;
int nSuperCool;
int nGrowMass;
int bGrowGas;
int bGrowStar;
int bGrowDark;
int iWallRunTime;
int bPhysicalSoft;
int bSoftMaxMul;
int bVariableSoft;
int nSoftNbr;
int bSoftByType;
int bVariableSoftStar;
int bVariableSoftGas;
int bVariableSoftDark;
int bDoSoftOutput;
int bDoSinks;
int bBHSink;
int iOrbitOutInterval;
int bDoSinksAtStart;
int bSinkThermal;
int bSinkForm;
int bSinkFormJeans;
int bSinkFormDivV;
int bSinkFormDivAcc;
int bSinkFormDV;
int bSinkFormPotMin;
int bSinkFormSimple;
int nSinkFormMin;
int bSinkMerge;
int bSinkAngMomOutput;
double dSinkFormDivVCoeff;
double dSinkFormDivAccCoeff;
double dSinkFormDensity;
double dSinkTimeEligible;
int iSinkRung;
int iSinkCurrentRung;
int nJeans;
double dEta;
double dEtaDeltaAccel;
double dExtraStore;
double dSoft;
double dSoftMax;
double dDelta;
double dEwCut;
double dEwhCut;
double dTheta;
double dTheta2;
double daSwitchTheta;
double dAbsPartial;
double dRelPartial;
double dAbsTotal;
double dRelTotal;
double dPeriod;
double dxPeriod;
double dyPeriod;
double dzPeriod;
double dxInflow;
double dxOutflow;
double drLastInflow;
double dxLastInflow;
CSM csm;
double dRedTo;
double dCentMass;
double dSinkRadius;
double dSinkBoundOrbitRadius;
double dSinkMustAccreteRadius;
double dDeltaSink;
double dSinkMassMin;
double dJeansConstant;
double dBHSinkEddEff;
double dBHSinkFeedbackEff;
double dBHSinkEddFactor;
double dBHSinkFeedbackFactor;
double dBHSinkAlpha;
double dSinkCurrentDelta;
int bBHTurnOffCooling;
int bSmallBHSmooth;
int bDoBHKick;
int bBHForm;
double dBHFormProb;
double dInitBHMass;
int bBHMindv;
int bBHAccreteAll;
char achDigitMask[MAXPATHLEN];
char achInFile[MAXPATHLEN];
char achWallFile[MAXPATHLEN];
char achSpecialFile[MAXPATHLEN];
char achOutName[MAXPATHLEN];
char achDataSubPath[MAXPATHLEN];
char achOutputListGasRed[MAXLISTLEN];
char achOutputListDarkRed[MAXLISTLEN];
char achOutputListStarRed[MAXLISTLEN];
char achOutputListGasInterval[MAXLISTLEN];
char achOutputListDarkInterval[MAXLISTLEN];
char achOutputListStarInterval[MAXLISTLEN];
char achOutputListGasMinorInterval[MAXLISTLEN];
char achOutputListDarkMinorInterval[MAXLISTLEN];
char achOutputListStarMinorInterval[MAXLISTLEN];
double dCoolFac;
double dCoolDens;
double dCoolMaxDens;
double dGrowMinM;
double dGrowMaxM;
double dGrowDeltaM;
double dGrowStartT;
double dGrowEndT;
double dFracNoDomainDecomp;
double dFracNoDomainDimChoice;
int bSplitWork;
int bRungDD;
double dRungDDWeight;
/*
** Additional parameters for GASOLINE.
*/
int bGeometric;
int bGasAdiabatic;
int bGasIsothermal;
int bGasCooling;
int bGasCoolingNonEqm;
int iGasModel;
double dEtaCourant;
double dEtauDot;
double dEtaCourantLong;
double dTMinDt;
double duMinDt;
double duDotLimit;
double dShockTrackerA;
double dShockTrackerB;
double dTauAlpha;
double dAlphaMax;
double dAlphaMin;
double dNAlphaNoise;
double dAFac;
double dConstAlpha;
double dConstBeta;
double dConstGamma;
double dMeanMolWeight;
double dGasConst;
double dTuFac;
double dMsolUnit;
double dKpcUnit;
double ddHonHLimit;
double dGmPerCcUnit;
double dComovingGmPerCcUnit;
double dErgPerGmUnit;
double dSecUnit;
int bViscosityLimiter;
int iViscosityLimiter;
int bViscosityLimitdt;
int bShockTracker;
int bVariableAlpha;
int bBulkViscosity;
int bGasDomainDecomp;
int bLowerSoundSpeed;
int bFastGas;
double dFracFastGas;
double dhMinOverSoft;
double dResolveJeans;
double dMetalDiffusionCoeff;
double dThermalDiffusionCoeff;
double dFBMassRatio;
double dThermalCondCoeff;
double dThermalCondCoeffCode;
double dThermalCondSatCoeff;
double dThermalCond2Coeff;
double dThermalCond2CoeffCode;
double dThermalCond2SatCoeff;
double dEvapCoeff;
double dEvapMinTemp;
double dEvapCoeffCode;
double dEtaDiffusion;
double dDeltaSph;
int bConstantDiffusion;
int bDoGas;
int bSphStep;
int bSphSingleStep;
int iRungForceCheck;
#if defined(GASOLINE) && !defined(NOCOOLING)
COOLPARAM CoolParam;
#endif
#ifdef OUTURBDRIVER
OUTURBPARAM outurbparam;
#endif
double dDumpFrameStep;
double dDumpFrameTime;
int iTreeZipStep;
int bTreeZipLocal;
int iDirector;
int bStarForm;
int bFeedBack;
int bFormOutputs;
int bIonize;
double dIonizeTime;
double dIonizeMultiple;
double dIonizeTMin;
double dIonizeT;
#ifdef TWOPHASE
double dFBInitialMassLoad;
double dMultiPhaseMinTemp;
double dMultiPhaseMaxFrac;
double dMultiPhaseMaxTime;
#endif
#ifdef STARFORM
STFM stfm;
FB fb;
SN sn;
double dDeltaStarForm;
int bSNTurnOffCooling;
int bShortCoolShutoff;
double dExtraCoolShutoff;
int bSmallSNSmooth;
int iStarFormRung;
int iRandomSeed;
int nSmoothFeedback;
#endif
double dHotConvTime;
double dHotConvTimeMul;
double dHotConvTimeMin;
double dHotConvVelMin;
int bESF;
double dESFEnergy;
double dESFTime;
double dKBoltzUnit;
double dPext;
double dvturb;
#ifdef GLASS
/*
** Additional parameters for GLASS.
*/
double dGlassDamper;
/* Hack for shock tube glasses */
double dGlassPoverRhoL;
double dGlassPoverRhoR;
double dGlassxL;
double dGlassxR;
double dGlassVL;
double dGlassVR;
#endif
#ifdef COLLISIONS
/*
** Additional parameters for collision code...
*/
int bFindRejects;
int iCollLogOption;
int iMinCollRung;
char achCollLog[MAXPATHLEN];
double dSmallStep;
double dxUnifGrav;
double dyUnifGrav;
double dzUnifGrav;
int iMinBinaryRung;
double dBallVelFact;
double dMaxBinaryEcc;
#ifdef SLIDING_PATCH
int iRandStep;
double dLargeMass;
double dRandBall;
int iNextRandomization;
#endif
COLLISION_PARAMS CP;
int nSpecial;
int iSpecialId[MAX_NUM_SPECIAL_PARTICLES];
SPECIAL_PARTICLE_DATA sSpecialData[MAX_NUM_SPECIAL_PARTICLES];
#endif /* COLLISIONS */
#ifdef RUBBLE_ZML
int bRubbleStep; /* at the moment, this cannot be changed by user */
#endif
};
#endif