#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "variables_global.h"
#include "prototypes.h"
Go to the source code of this file.
Function Documentation
int density_increaser |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z |
|
) |
| |
wind.c
Author: Wolfgang Kapferer
A function to increase the density/pressure by a fixed factor
Definition at line 17 of file wind.c.
References pre, rho, x, y, and z.
{
int i, j, k;
double max;
max = 0.0;
for (i = 0; i <
x; i++) {
for (j = 0; j <
y; j++) {
for (k = 0; k <
z; k++) {
rho[i][j][k] = 1.1 *
rho[i][j][k];
pre[i][j][k] = 1.1 *
pre[i][j][k];
}
}
}
return 0;
}
int wind |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z |
|
) |
| |
The Wind routine, which gives a constant flow with wind-speed velocity
Definition at line 39 of file wind.c.
References vx, vy, vz, wind_marker, wind_speed, x, y, and z.
Referenced by hydro_sweeps().
{
int i, j, k;
for (i = 0; i <
x; i++) {
for (j = 0; j <
y; j++) {
for (k = 0; k <
z; k++) {
vy[i][j][k] =
vy[i][j][k];
vz[i][j][k] =
vz[i][j][k];
}
vy[i][j][k] =
vy[i][j][k];
vz[i][j][k] =
vz[i][j][k];
}
vx[i][j][k] =
vx[i][j][k];
vz[i][j][k] =
vz[i][j][k];
}
vx[i][j][k] =
vx[i][j][k];
vz[i][j][k] =
vz[i][j][k];
}
vx[i][j][k] =
vx[i][j][k];
vy[i][j][k] =
vy[i][j][k];
}
vx[i][j][k] =
vx[i][j][k];
vy[i][j][k] =
vy[i][j][k];
}
}
}
}
return 0;
}