programming

flowfield

Binh Lieu, 2009-04-24 10:32

Discussion

Binh Lieu, 2009-04-24 10:35

Hi Professor Gibson,

I have a question about the flowfield, how do you arrange the data to be save as .ff? In other words, can I load this .ff file to other source to be plotted? I'm trying to build a visual movie to see how the flow is evolving. Can you recommend some software or matlab?

Thanks,

Binh

John F. Gibson, 2009-05-06 13:35

.ff is a binary format specialized for fast IO in channelflow. I am working with Milos Ilak on replacing it with HDF5, so that the binary files can be loaded into matlab and other plotting packages directly. In the meantime, you convert .ff files into ASCII, via the channelflow utility field2ascii.

field2ascii outputs the data on all the gridpoints. Check out field2ascii for information on the data ordering. All the data on all the gridpoints is probably more than you need for any given visualization. I have also written a FlowField member function that extracts and saves data on given 2D slices. For example,

u.makePhysical();
u.saveSlice(i, j, n,   "slice");

saves the jth component of u in an i-normal slice (i==0,1,2 means x,y, or z normal) at the nth gridpoint in the ith direction into the file slice.asc E.g. i=0, j=2, n=17 saves a yz plane of the w component of u at x = 17/Nx * Lx;

Sorry to keep you waiting –I haven't checked this forum is a while.

John

 
programming/flowfield.txt · Last modified: 2010-02-02 07:55 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki