Go to the documentation of this file.
24 int init_ppm(
double **rho_1D,
double **pre_1D,
double **eng_1D,
double **vx_1D,
double **vy_1D,
25 double **vz_1D,
double **marker_1D,
double **dx0,
double **xa0,
double **xa,
double **dx,
double **a_coef,
26 double **ai_coef,
double **b_coef,
double **bi_coef,
double **c_coef,
double **ci_coef,
27 double **d_x,
double **da,
double **ar,
double **dp,
double **dr,
double **du,
28 double **pl,
double **p6,
double **rl,
double **r6,
double **ul,
double **u6,
29 double **vl,
double **v6,
double **wl,
double **w6,
double **el,
double **e6,
30 double **ql,
double **q6,
double **deltaa,
double **dv,
double **dw,
double **dq,
31 double **de,
double **scratch1,
double **scratch2,
double **scratch3,
double **diffa,
32 double **plft,
double **prgh,
double **ulft,
double **urgh,
double **rlft,
double **rrgh,
33 double **Cdtdx,
double **fCdtdx,
double **clft,
double **crgh,
double **plfti,
double **prghi,
34 double **pmid,
double **pmold,
double **wlft,
double **wrgh,
double **zlft,
double **zrgh,
35 double **umidl,
double **umidr,
double **umid,
double **dm,
double **dtbdm,
double **upmid,
36 double **xa1,
double **xa2,
double **xa3,
double **vx_1D_old,
double **e_int_1D,
double **dvol,
37 double **dvol0,
double **dvol1,
double **delta,
double **fluxr,
double **fluxu,
double **fluxv,
38 double **fluxw,
double **fluxe,
double **fluxq,
double **dm0,
double **steep,
double **flat,
39 double ***para,
double **pressure_solid_1D,
double **rhodown,
double **rhoup,
double **rhofront,
40 double **rhoback,
double **vxdown,
double **vxup,
double **vxfront,
double **vxback,
double **vydown,
41 double **vyup,
double **vyfront,
double **vyback,
double **vzdown,
double **vzup,
double **vzfront,
44 int ppm_free(
double **rho_1D,
double **pre_1D,
double **eng_1D,
double **vx_1D,
double **vy_1D,
45 double **vz_1D,
double **marker_1D,
double **pressure_solid_1D,
46 double **dx0,
double **xa0,
double **xa,
double **dx,
double **a_coef,
47 double **ai_coef,
double **b_coef,
double **bi_coef,
double **c_coef,
double **ci_coef,
48 double **d_x,
double **da,
double **ar,
double **dp,
double **dr,
double **du,
49 double **pl,
double **p6,
double **rl,
double **r6,
double **ul,
double **u6,
50 double **vl,
double **v6,
double **wl,
double **w6,
double **el,
double **e6,
51 double **ql,
double **q6,
double **deltaa,
double **dv,
double **dw,
double **dq,
52 double **de,
double **scratch1,
double **scratch2,
double **scratch3,
double **diffa,
53 double **plft,
double **prgh,
double **ulft,
double **urgh,
double **rlft,
double **rrgh,
54 double **Cdtdx,
double **fCdtdx,
double **clft,
double **crgh,
double **plfti,
double **prghi,
55 double **pmid,
double **pmold,
double **wlft,
double **wrgh,
double **zlft,
double **zrgh,
56 double **umidl,
double **umidr,
double **umid,
double **dm,
double **dtbdm,
double **upmid,
57 double **xa1,
double **xa2,
double **xa3,
double **vx_1D_old,
double **e_int_1D,
double **dvol,
58 double **dvol0,
double **dvol1,
double **delta,
double **fluxr,
double **fluxu,
double **fluxv,
59 double **fluxw,
double **fluxe,
double **fluxq,
double **dm0,
double **steep,
double **flat,
60 double ***para,
double **rhodown,
double **rhoup,
double **rhofront,
61 double **rhoback,
double **vxdown,
double **vxup,
double **vxfront,
double **vxback,
double **vydown,
62 double **vyup,
double **vyfront,
double **vyback,
double **vzdown,
double **vzup,
double **vzfront,
65 int init_diffusion(
double **temperature_1D,
double **temperature_1D_future,
double **mass,
int **dom_1D);
66 int init_diffusion(
double **temperature_1D,
double **temperature_1D_future,
double **mass,
int **dom_1D);
82 long long int ntohll(
const long long int data);
103 int ppm_step(
int i,
int j,
int k,
int direction,
int flag,
int nmin,
int nmax,
double *a_coef,
double *ai_coef,
104 double *b_coef,
double *bi_coef,
double *c_coef,
double *ci_coef,
105 double *d_x,
double *diffa,
double *da,
double *ar,
double *pl,
106 double *p6,
double *rl,
double *r6,
double *u6,
double *ul,
107 double *vl,
double *v6,
double *wl,
double *w6,
double *el,
108 double *e6,
double *ql,
double *q6,
double *dp,
double *du,
109 double *dr,
double *dv,
double *dw,
double *dq,
double *de,
110 double *scratch1,
double *scratch2,
double *scratch3,
111 double *plft,
double *prgh,
double *ulft,
double *urgh,
112 double *rlft,
double *rrgh,
double *Cdtdx,
double *fCdtdx,
113 double *steep,
double *flat,
double **para,
double *clft,
114 double *crgh,
double *plfti,
double *prghi,
double *pmid,
115 double *pmold,
double *wlft,
double *wrgh,
double *zlft,
116 double *zrgh,
double *umidl,
double *umidr,
double *umid,
117 double *dm,
double *dtbdm,
double *upmid,
double *xa1,
118 double *xa2,
double *xa3,
double *vx_1D_old,
double *dvol,
119 double *dvol0,
double *dvol1,
double *delta,
double *fluxr,
120 double *fluxu,
double *fluxv,
double *fluxw,
double *fluxe,
121 double *fluxq,
double *dm0,
double *e_int_1D,
double *rho_1D,
122 double *pre_1D,
double *eng_1D,
double *vx_1D,
double *vy_1D,
123 double *vz_1D,
double *marker_1D,
double *pressure_solid_1D,
124 double *dx0,
double *xa0,
double *xa,
double *dx,
int bound_checker,
int lefter,
125 double *rhodown,
double *rhoup,
double *rhofront,
double *rhoback,
double *vxdown,
126 double *vxup,
double *vxfront,
double *vxback,
double *vydown,
double *vyup,
127 double *vyfront,
double *vyback,
double *vzdown,
double *vzup,
double *vzfront,
130 int set_boundary(
int nmin,
int nmax,
int flag,
int bound_checker,
int lefter,
131 double *rho_1D,
double *eng_1D,
double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
132 double *pressure_solid_1D,
double *xa0,
double *dx0,
double *xa,
double *dx,
double *rhodown,
133 double *rhoup,
double *rhofront,
double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
134 double *vxback,
double *vydown,
double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
138 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
139 double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
double *rhodown,
double *rhoup,
double *rhofront,
140 double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
double *vxback,
double *vydown,
141 double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
double *vzup,
double *vzfront,
145 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
146 double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
double *rhodown,
double *rhoup,
double *rhofront,
147 double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
double *vxback,
double *vydown,
148 double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
double *vzup,
double *vzfront,
152 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
153 double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
double *rhodown,
double *rhoup,
double *rhofront,
154 double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
double *vxback,
double *vydown,
155 double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
double *vzup,
double *vzfront,
159 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
160 double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
double *rhodown,
double *rhoup,
double *rhofront,
161 double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
double *vxback,
double *vydown,
162 double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
double *vzup,
double *vzfront,
166 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
167 double *pressure_solid_1D,
double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
168 double *rhodown,
double *rhoup,
double *rhofront,
double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
169 double *vxback,
double *vydown,
double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
173 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
174 double *pressure_solid_1D,
double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
175 double *rhodown,
double *rhoup,
double *rhofront,
double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
176 double *vxback,
double *vydown,
double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
180 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
181 double *pressure_solid_1D,
double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
182 double *rhodown,
double *rhoup,
double *rhofront,
double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
183 double *vxback,
double *vydown,
double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
187 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
188 double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
double *rhodown,
double *rhoup,
double *rhofront,
189 double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
double *vxback,
double *vydown,
190 double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
double *vzup,
double *vzfront,
194 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
195 double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
double *rhodown,
double *rhoup,
double *rhofront,
196 double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
double *vxback,
double *vydown,
197 double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
double *vzup,
double *vzfront,
201 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
202 double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
double *rhodown,
double *rhoup,
double *rhofront,
203 double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
double *vxback,
double *vydown,
204 double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
double *vzup,
double *vzfront,
208 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
209 double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
double *rhodown,
double *rhoup,
double *rhofront,
210 double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
double *vxback,
double *vydown,
211 double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
double *vzup,
double *vzfront,
215 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
216 double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
double *rhodown,
double *rhoup,
double *rhofront,
217 double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
double *vxback,
double *vydown,
218 double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
double *vzup,
double *vzfront,
222 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
223 double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
double *rhodown,
double *rhoup,
double *rhofront,
224 double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
double *vxback,
double *vydown,
225 double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
double *vzup,
double *vzfront,
229 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
230 double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
double *rhodown,
double *rhoup,
double *rhofront,
231 double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
double *vxback,
double *vydown,
232 double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
double *vzup,
double *vzfront,
236 double *pre_1D,
double *vx_1D,
double *vy_1D,
double *vz_1D,
237 double *xa0,
double *dx0,
double *xa,
double *dx,
int flag,
double *rhodown,
double *rhoup,
double *rhofront,
238 double *rhoback,
double *vxdown,
double *vxup,
double *vxfront,
double *vxback,
double *vydown,
239 double *vyup,
double *vyfront,
double *vyback,
double *vzdown,
double *vzup,
double *vzfront,
242 int para_coef(
int nmin,
int nmax,
int flag1,
double *a_coef,
double *dx,
243 double *ai_coef,
double *b_coef,
double *bi_coef,
double *c_coef,
244 double *d_x,
double **para,
double *ci_coef);
246 int volume(
int nmin,
int nmax,
double *vol,
double *dx,
double *vol0,
double *dx0);
248 int flatten(
int nmin,
int nmax,
double *pre_1D,
double *vx_1D,
249 double *steep,
double *flat);
251 int parabola(
int nmin,
int nmax,
double *a,
double *deltaa,
252 double *a6,
double *al,
int flag1,
double *diffa,
253 double *da,
double **para,
double *ar,
double *flat,
254 double *scratch1,
double *scratch2,
double *scratch3);
256 int states(
int nmin,
int nmax,
int flag,
double *pre_1D,
double *rho_1D,
257 double *dx,
double *Cdtdx,
double *fCdtdx,
double *plft,
258 double *pl,
double *dp,
double *p6,
double *ulft,
double *ul,
259 double *du,
double *u6,
double *rlft,
double *rl,
double *dr,
260 double *r6,
double *prgh,
double *urgh,
double *rrgh);
262 int riemann(
int nmin,
int nmax,
double *clft,
double *crgh,
263 double *rlft,
double *rrgh,
double *plfti,
264 double *prghi,
double *pmid,
double *pmold,
265 double *plft,
double *wrgh,
double *prgh,
double *wlft,
266 double *zlft,
double *zrgh,
double *umidl,
double *umidr,
267 double *umid,
double *urgh,
double *ulft);
269 int evolve(
int nmin,
int nmax,
int flag,
double *rho_1D,
270 double *dvol,
double *dm,
double *dtbdm,
double *xa1,
271 double *xa,
double *dvol1,
double *umid,
double *upmid,
272 double *pmid,
double *xa2,
double *dx,
double *xa3,
273 double *vx_1D_old,
double *vx_1D,
double *vy_1D,
274 double *vz_1D,
double *eng_1D,
double *e_int_1D,
277 int remap(
int nmin,
int nmax,
int flag,
double *a_coef,
double *dx,
278 double *ai_coef,
double *b_coef,
double *bi_coef,
double *c_coef,
279 double *d_x,
double **para,
double *ci_coef,
double *dr,
double *r6,
double *rl,
double *diffa,
280 double *da,
double *ar,
double *flat,
double *scratch1,
double *scratch2,
double *scratch3,
281 double *du,
double *u6,
double *ul,
double *dv,
double *v6,
double *vl,
double *w6,
double *wl,
282 double *dq,
double *q6,
double *ql,
double *de,
double *e6,
double *el,
double *xa,
double *xa0,
double *delta,
283 double *fluxr,
double *fluxu,
double *fluxv,
double *fluxw,
double *dw,
double *fluxe,
double *fluxq,
284 double *dm,
double *rho_1D,
double *dvol,
double *dvol0,
double *dm0,
double * vx_1D,
double *vy_1D,
285 double *vz_1D,
double *eng_1D,
double *e_int_1D,
double *pre_1D);
287 int advect(
int nmin,
int nmax,
int flag,
double *dx,
double *vx_1D,
double *marker_1D);
295 int viscosity(
int i,
int j,
int k,
int flag,
int nmin,
int nmax,
296 double *rho_1D,
double * vx_1D,
double *vy_1D,
double *vz_1D,
297 double *pre_1D,
double *e_int_1D,
double *eng_1D,
int lefter,
298 double *rhodown,
double *rhoup,
double *rhofront,
double *rhoback,
299 double *vxdown,
double *vxup,
double *vxfront,
double *vxback,
300 double *vydown,
double *vyup,
double *vyfront,
double *vyback,
301 double *vzdown,
double *vzup,
double *vzfront,
double *vzback,