[Index for ./IO_Functions] [Return to Master Index]

read_v2c

(./IO_Functions/read_v2c.m)


Function Synopsis

[data,freq,gridname]=read_v2c(fname)

Help text

READ_V2C read a FEM output file of .v2c filetype.
   READ_V2C is part of a suite of OPNML I/O functions  
   to read specific filetypes pertaining to FEM model  
   input and output.   These functions allow the user to
   get these data files into MATLAB without copying the
   files and removing the header info by hand.

   READ_V2C reads the FEM filetype .v2c, as 
   detailed in "Data File Standards for the Gulf of Maine
   Project" from the Numerical Methods Laboratory at 
   Dartmouth College.  (This document is located in the OPNML
   notebook under External Documents.)  There are five
   columns, the first of which is the node number.  The
   remaining columns are floating point. The filetype 
   suffix ('.v2c') must be included in the input file name.  

   Input :   If fname is omitted, READ_V2C enables a file browser
             with which the user can specify the .v2c file.

             Otherwise, fname is the name of the file, relative or 
             absolute (fullpath).  This input is a string so it must 
             must be enclosed in single quotes. The comment line 
             is discarded.

  Output :   Call READ_V2C as:
             >> [data,freq,gname]=read_v2c(fname);
             The domain name will be returned in "gname".
             The frequency in rads/secs is returned in "freq".
             The node counter and amplitude and phase of the 
             u and v components of the vector field are returned 
             in "data".

             If READ_V2C cannot locate the file, it exits, returning 
             a -1 instead of the data matrix.

 Call as: [data,freq,gname]=read_v2c(fname);

 Written by : Brian O. Blanton


Produced by mat2html on Tue Feb 2 16:15:45 EST 1999
Cross-Directory links are: OFF