Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

hydro2.c File Reference

#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


Define Documentation

#define A   1.0
 

Definition at line 82 of file hydro2.c.

#define EPS   0.5
 

Definition at line 77 of file hydro2.c.

#define GAMMA   1.666667
 

Definition at line 83 of file hydro2.c.

#define M   200
 

Definition at line 69 of file hydro2.c.

#define N   200
 

Definition at line 70 of file hydro2.c.

#define OVERDENSE   1
 

Definition at line 73 of file hydro2.c.

#define STANDING_WAVE   1
 

Definition at line 72 of file hydro2.c.

#define TMAX   5.0
 

Definition at line 78 of file hydro2.c.

#define local   static
 

Definition at line 9 of file hydro2.c.


Typedef Documentation

typedef double real
 

Definition at line 8 of file hydro2.c.


Function Documentation

local void apply_bc ( )
 

Definition at line 182 of file hydro2.c.

Referenced by step().

local void copy_grid ( )
 

Definition at line 166 of file hydro2.c.

Referenced by step().

local void initialize_grid ( )
 

Definition at line 107 of file hydro2.c.

Referenced by main().

void main ( int argc,
char * argv[] )
 

Definition at line 261 of file hydro2.c.

local void output_grid ( int m,
int n,
real * rho,
real rhoi,
real amp )
 

Definition at line 23 of file hydro2.c.

Referenced by main().

local real pressure ( real rho ) [inline]
 

Definition at line 102 of file hydro2.c.

Referenced by copy_grid(), and initialize_grid().

local void single_step ( )
 

Definition at line 218 of file hydro2.c.

Referenced by step().

local void step ( )
 

Definition at line 252 of file hydro2.c.

Referenced by low_n3_evolve(), low_n_evolve(), and main().


Variable Documentation

real amp = 0.1
 

Definition at line 88 of file hydro2.c.

real csound
 

Definition at line 99 of file hydro2.c.

real dt
 

Definition at line 100 of file hydro2.c.

real dtcourant
 

Definition at line 99 of file hydro2.c.

real dtdx
 

Definition at line 100 of file hydro2.c.

real dtdy
 

Definition at line 100 of file hydro2.c.

real dx
 

Definition at line 87 of file hydro2.c.

real dy
 

Definition at line 87 of file hydro2.c.

real p[M+2][N+2]
 

Definition at line 96 of file hydro2.c.

real rho[M+2][N+2]
 

Definition at line 96 of file hydro2.c.

real rho0[M+2][N+2]
 

Definition at line 97 of file hydro2.c.

real rhoi = 1.0
 

Definition at line 88 of file hydro2.c.

real u[M+2][N+2]
 

Definition at line 96 of file hydro2.c.

real u0[M+2][N+2]
 

Definition at line 97 of file hydro2.c.

real v[M+2][N+2]
 

Definition at line 96 of file hydro2.c.

real v0[M+2][N+2]
 

Definition at line 97 of file hydro2.c.

real xmax
 

Definition at line 87 of file hydro2.c.

real xmin
 

Definition at line 87 of file hydro2.c.

real ymax
 

Definition at line 87 of file hydro2.c.

real ymin
 

Definition at line 87 of file hydro2.c.


Generated at Sun Feb 24 09:57:27 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001