The detailed set of steps is as follows:
It's advisable to store the generator input in a file as well. If this is called say gen.in, and if it contains comments (lines or ends of lines starting with #), then the generator would be run with a command like
expandec < gen.in | lag_gen1d.x > gen.out
++gen.outat the appropriate place in the data.
The input for the main program can then be set up with a command like
expandec < pc.dat | xpan > pc.in(assuming the basic data for the main program is stored in commented form in a file pc.dat).
lag_pc1d.x < pc.in > pc.outor just
lag_pc1d.x < pc.inif you want to watch the time step info scroll past. (Some terminal programs abort if too much text comes through too quickly, so if this happens then try saving it in pc.out and looking later.
gnuplot stube.gp > stube.epsApart from the commands which specify Postscript output, the other commands can be edited at the Gnuplot command line to generate on-line graphics if your terminal is set up to display them. Example:
gnuplot > set xlabel "position" > set ylabel "pressure" > set data style lines > plot "PLOT000" using 1:8 title "t = 0.1", \ "PLOT001" using 1:8 title "t = 0.2", \ "PLOT002" using 1:8 title "t = 0.3", \ "PLOT003" using 1:8 title "t = 0.4"(See the Gnuplot manual for abbreviations, other options etc.)
expandec
.)