-
Notifications
You must be signed in to change notification settings - Fork 7
/
coldeos.c
169 lines (124 loc) · 3.32 KB
/
coldeos.c
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
//////////////////////////////////////////////////////
//
// COLD EOS or COLD EOMTYPE==EOMCOLDGRMHD
//
// Also used for EOMTYPE==EOMFFDE
//
// then explicitly set pressure/ie to 0 so can keep some parts of code similar
//
//////////////////////////////////////////////////////
// p(rho0, u) (needed to get initial guess for W)
FTYPE pressure_rho0_u_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE u)
{
return(0.0) ;
}
// u(rho0, p) (used for initial conditions)
FTYPE u_rho0_p_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE p)
{
return(0.0) ;
}
// dp(rho0, u)/du
FTYPE dpdu_rho0_u_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE u)
{
return(0.0) ;
}
// dp(rho0, u)/drho0
FTYPE dpdrho0_rho0_u_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE u)
{
return(0.0) ;
}
// sound speed squared (for vchar.c)
FTYPE cs2_compute_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE u)
{
return(0.0) ;
}
// used for dudp_calc
FTYPE compute_dSdrho_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE u)
{
return(0.0) ;
}
// used for dudp_calc
FTYPE compute_dSdu_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE u)
{
return(0.0) ;
}
// entropy as function of rho0 and internal energy (u)
// S(rho0,u)
FTYPE compute_entropy_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE u)
{
return(0.0) ;
}
// u(rho0,S)
FTYPE compute_u_from_entropy_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE entropy)
{
return(0.0) ;
}
FTYPE compute_specificentropy_wmrho0_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE wmrho0)
{
return(0.0);
}
FTYPE compute_dspecificSdrho_wmrho0_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE wmrho0)
{
return(0.0);
}
FTYPE compute_dspecificSdwmrho0_wmrho0_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE wmrho0)
{
return(0.0);
}
// p(rho0, w-rho0 = u+p)
FTYPE pressure_wmrho0_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE wmrho0)
{
return(0.0) ;
}
// 1 / (d(u+p)/dp) holding rho0 fixed
FTYPE compute_idwmrho0dp_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE wmrho0)
{
return(0.0);
}
// 1 / (drho0/dp) holding wmrho0 fixed
FTYPE compute_idrho0dp_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE wmrho0)
{
return(0.0);
}
FTYPE compute_qdot_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE u)
{
return(0.0);
}
int compute_sources_EOS_coldgrmhd(FTYPE *EOSextra, FTYPE *pr, struct of_geom *geom, struct of_state *q, FTYPE *Ui, FTYPE *dUother, FTYPE(*dUcomp)[NPR])
{
return(0);
}
void compute_allextras_coldgrmhd(int justnum, FTYPE *EOSextra, FTYPE rho0, FTYPE u, int *numextrasreturn, FTYPE *extras)
{
return;
}
int get_extrasprocessed_coldgrmhd(int doall, FTYPE *EOSextra, FTYPE *pr, FTYPE *extras, FTYPE *processed)
{
return(0);
}
FTYPE compute_temp_coldgrmhd(FTYPE *EOSextra, FTYPE rho0, FTYPE u)
{
return(0.0);
}
void compute_EOS_parms_coldgrmhd(FTYPE (*EOSextra)[NSTORE2][NSTORE3][NUMEOSGLOBALS], FTYPE (*prim)[NSTORE2][NSTORE3][NPR])
{
return; // do nothing
}
void store_EOS_parms_coldgrmhd(int numparms, FTYPE *EOSextra, FTYPE *parlist)
{
return; // do nothing
}
void get_EOS_parms_coldgrmhd(int*numparms, FTYPE *EOSextra, FTYPE *parlist)
{
return; // do nothing
}
void fix_primitive_eos_scalars_coldgrmhd(FTYPE *EOSextra, FTYPE *pr)
{
return; // do nothing
}
void getall_forinversion_coldgrmhd(int eomtype, int whichd, FTYPE *EOSextra, FTYPE quant1, FTYPE quant2, FTYPE *fun, FTYPE *dfunofrho, FTYPE *dfunofu)
{
*fun=0.0;
*dfunofrho=0.0;
*dfunofu=0.0;
}