STRING_SIMULATION
Vibrating String Simulation {#string_simulation-vibrating-string-simulation align="center"}
STRING_SIMULATION is a C++ program which simulates the behavior of a vibrating string by solving the corresponding initial boundary value problem (IBVP), creating files that can be displayed by gnuplot.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
STRING_SIMULATION is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.
FD1D_WAVE, a C++ program which applies the finite difference method to solve a version of the wave equation in one spatial dimension.
GNUPLOT, C++ programs which illustrate how a program can write data and command files so that gnuplot can create plots of the program results.
HIGH_CARD_SIMULATION, a C++ program which simulates a situation in which you see the cards in a deck one by one, and must select the one you think is the highest and stop; the program uses GNUPLOT for graphics.
- George Lindfield, John Penny,
Numerical Methods Using MATLAB,
Second Edition,
Prentice Hall, 1999,
ISBN: 0-13-012641-1,
LC: QA297.P45.
- string_simulation.cpp, the source code.
- string_simulation_output.txt, the output file.
- string_data.txt, a data file containing the solution values.
- string_commands.txt, GNUPLOT commands that can create an image from the solution data file.
- string.png, an image of the solution as it changes over time.
- MAIN is the main program for STRING_SIMULATION.
- F supplies the initial condition.
- G supplies the initial time derivative.
- TIMESTAMP prints the current YMDHMS date as a time stamp.
You can go up one level to the C++ source codes.
Last revised on 01 December 2012.