-
Notifications
You must be signed in to change notification settings - Fork 7
/
cosmo.h
29 lines (25 loc) · 893 Bytes
/
cosmo.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
#ifndef COSMO_HINCLUDED
#define COSMO_HINCLUDED
typedef struct csmContext {
int bComove;
double dHubble0;
double dOmega0;
double dLambda;
double dOmegaRad;
double dQuintess; /* w = -1/2 equation of state */
double dOmegab;
} * CSM;
void csmInitialize(CSM *pcsm);
double csmExp2Hub(CSM csm, double dExp);
double csmTime2Hub(CSM csm,double dTime);
double csmExp2Time(CSM csm,double dExp);
double csmTime2Exp(CSM csm,double dTime);
double csmComoveDriftInt(CSM csm, double dIExp);
double csmComoveKickInt(CSM csm, double dIExp);
double csmComoveDriftFac(CSM csm,double dTime,double dDelta);
double csmComoveKickFac(CSM csm,double dTime,double dDelta);
double csmComoveLookbackTime2Exp(CSM csm,double dComoveTime);
double csmGrowthFac(CSM csm, double dExp);
double csmGrowthFacDot(CSM csm, double dExp);
double csmExp2Om(CSM csm, double dExp);
#endif