12.07.2015 Views

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

industrial-strength data visualization 589✞Figure C.20 Left: Use of the Visual Program Editor to produce the image of a wave packetthat passes through a slit. Right: The visual program used to produce frames for an OpenDXanimation.4. Merge the .jpg image files into a movie by using a program such as Mplayerin Linux. We suggest producing the movie in the .avi or .mpg format.To illustrate these steps, assume that you have a solution to Laplace’s equationfor a two-plate capacitor, with the voltage on the plates having a sinusoidal timedependence. Data files lapl000.dat, lapl001.dat, ..., lapl120.dat are produced inthe Gnuplot 3-D format, each corresponding to a different time. To produce thefirst OpenDX image, lapl000.dat is copied to data.dat, which is a generic nameused for importing data into OpenDX, and the file lapl.general describing the datais saved:file = /home/mpaez/data . dat grid = 50 x 50 format = asciiinterleaving = field majority = column f i e l d = field0 structure =scalar type = float dependency = positions positions = regular ,regular , 0, 1, 0, 1 end✝☎Next, the Visual Program Editor is used to create the visual program (Figure C.20right), and the program is saved as the file lapl.net.To manipulate the first image so that the rest of them have the same appearance,we assembled the visual program in Figure C.20.−101<strong>COPYRIGHT</strong> <strong>2008</strong>, PRINCET O N UNIVE R S I T Y P R E S SEVALUATION COPY ONLY. NOT FOR USE IN COURSES.ALLpup_06.04 — <strong>2008</strong>/2/15 — Page 589

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!