#include <stdio.h>
#include <math.h>
#include <stdlib.h>
Go to the source code of this file.
Defines | |
#define | local static |
#define | M 200 |
#define | N 200 |
#define | STANDING_WAVE 1 |
#define | OVERDENSE 1 |
#define | EPS 0.5 |
#define | TMAX 5.0 |
#define | A 1.0 |
#define | GAMMA 1.666667 |
Typedefs | |
typedef double | real |
Functions | |
local void | output_grid (int m, int n, real *rho, real rhoi, real amp) |
local real | pressure (real rho) |
local void | initialize_grid () |
local void | copy_grid () |
local void | apply_bc () |
local void | single_step () |
local void | step () |
void | main (int argc, char *argv[]) |
Variables | |
real | xmin |
real | xmax |
real | dx |
real | ymin |
real | ymax |
real | dy |
real | rhoi = 1.0 |
real | amp = 0.1 |
real | u [M+2][N+2] |
real | v [M+2][N+2] |
real | rho [M+2][N+2] |
real | p [M+2][N+2] |
real | u0 [M+2][N+2] |
real | v0 [M+2][N+2] |
real | rho0 [M+2][N+2] |
real | csound |
real | dtcourant |
real | dt |
real | dtdx |
real | dtdy |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 182 of file hydro2.c. Referenced by step(). |
|
Definition at line 166 of file hydro2.c. Referenced by step(). |
|
Definition at line 107 of file hydro2.c. Referenced by main(). |
|
|
|
Definition at line 23 of file hydro2.c. Referenced by main(). |
|
Definition at line 102 of file hydro2.c. Referenced by copy_grid(), and initialize_grid(). |
|
Definition at line 218 of file hydro2.c. Referenced by step(). |
|
Definition at line 252 of file hydro2.c. Referenced by low_n3_evolve(), low_n_evolve(), and main(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|