SHALLOW_WATER_1D
The Shallow Water Equations in 1D
SHALLOW_WATER_1D
is a FORTRAN90 program which
simulates a system governed by the shallow water equations in 1D.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
SHALLOW_WATER_1D is available in
a C version and
a C++ version and
a FORTRAN90 version and
a MATLAB version and
a Python version.
Related Data and Programs:
SHALLOW_WATER_1D_DISPLAY,
a MATLAB program which
can display a solution of the shallow water equations in 1D,
generally as computed by the program shallow_water_1d.
SHALLOW_WATER_2D,
a MATLAB program which
solves the 2D shallow water equations.
Reference:
-
Cleve Moler,
Experiments with MATLAB,
http://www.mathworks.com/moler/exm/index.html
Source Code:
Examples and Tests:
The program was run with the default settings.
List of Routines:
-
MAIN is the main program for SHALLOW_WATER_1D.
-
INITIAL_CONDITIONS sets the initial conditions.
-
CH_CAP capitalizes a single character.
-
CH_EQI is a case insensitive comparison of two characters for equality.
-
CH_TO_DIGIT returns the integer value of a base 10 digit.
-
GET_UNIT returns a free FORTRAN unit number.
-
INITIAL_CONDITIONS sets the initial conditions.
-
R8MAT_WRITE writes an R8MAT file.
-
R8VEC_LINSPACE creates a vector of linearly spaced values.
-
R8VEC_WRITE writes an R8VEC file.
-
S_TO_I4 reads an I4 from a string.
-
S_TO_R8 reads an R8 from a string.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
You can go up one level to
the FORTRAN90 source codes.
Last revised on 11 June 2012.