Go to the first, previous, next, last section, table of contents.


GNUPLOT Functions

This chapter describes interface functions for GNUPLOT ox server ox_sm1_gnuplot. These interface functions are defined in the file gnuplot. The file `gnuplot.rr' is at
`$(OpenXM_HOME)/lib/asir-contrib'.


[255] gnuplot.start();
0
[257] gnuplot.gnuplot("plot sin(x**2);");
0

The function gnuplot.heat(dt,step) demonstrates our gnuplot interface. It numerically solves the heat equation The segment [0,1] is devided into Heat_N segments. The static variable Heat_N can be set by the function gnuplot.heat_set_N. If the celebrated Courant-Friedrichs-Levi number dt*Heat_N*Heat_N is less than or equal to 0.5, then the explicit scheme is numerically stable. One can observe the instability by changing CFL number.

  gnuplot.heat_set_N(20); gnuplot.heat(0.001,30);   (CFL number is 0.4)
  gnuplot.heat_set_N(20); gnuplot.heat(0.003,30);   (CFL > 0.5 unstable)

Author of GNUPLOT: Thomas Williams, Colin Kelley. http://www.gnuplot.info

Functions


Go to the first, previous, next, last section, table of contents.