TEC_IO 
 Read and Write TECPLOT ASCII Files
    
    
    
      TEC_IO
      is a FORTRAN90 library which
      reads or writes
      a TECPLOT ASCII file containing a finite element model.
    
    
      There are several kinds of TECPLOT ASCII files; the routines given here can only
      handle the case where a single ZONE record is used to define finite
      element data, using a DATAPACKING value of "POINT" (not "BLOCK"),
      and a ZONETYPE of
      
        - 
          FETRIANGLE
        
- 
          FEQUADRILATERAL
        
- 
          FETETRAHEDRON
        
- 
          FEBRICK
        
      The data to be written or read is assumed to have a logical
      organization into three groups:
      
        - 
          Node coordinate data;
        
- 
          Element definitions, that is, the sequence of node indices
          that define each element;
        
- 
          Node data, such as finite element coefficients for pressure,
          velocity, and so on.
        
      
      The TECPLOT home page contains a description of the
      TECPLOT program.
    
    
      Licensing:
    
    
      The computer code and data files made available on this web page
      are distributed under
      the GNU LGPL license.
    
    
      Languages:
    
    
      TEC_IO is available in
      a FORTRAN90 version and
      a MATLAB version.
    
    
      Related Data and Programs:
    
    
      
      FEM_TO_TEC,
      a FORTRAN90 program which
      reads the three files
      defining an FEM model and writes an equivalent TEC file.
    
    
      
      TEC,
      a data directory which
      contains a description and examples
      of the TEC graphics files used by TECPLOT
    
    
      
      TEC_TO_FEM,
      a FORTRAN90 program which
      reads a TEC file and writes a set of three files defining the
      equivalent FEM model.
    
    
      
      TEC_TO_OBJ,
      a FORTRAN90 program which
      can read a TECPLOT file describing a surface in 3D composed of triangles
      or quadrilaterals, and write an OBJ file.
    
    
      
      TEC_WRITE,
      a FORTRAN90 library which
      can write TEC files.
    
    
      Reference:
    
    
      
        - 
          Tecplot, Inc,
 TECPLOT Reference Manual,
 Version 10, Release 4,
 Tecplot, Inc, 2005.
- 
          Tecplot, Inc,
 TECPLOT User's Manual,
 Version 10,
 Tecplot, Inc, 2005.
      Source Code:
    
    
      
    
    
      Examples and Tests:
    
    
      
    
    
      List of Routines:
    
    
      
        - 
          CH_CAP capitalizes a single character.
        
- 
          CH_EQI is a case insensitive comparison of two characters for equality.
        
- 
          CH_IS_ALPHA is TRUE if C is an alphabetic character.
        
- 
          DTABLE_DATA_WRITE writes data to a double precision table file.
        
- 
          DTABLE_HEADER_WRITE writes the header to a double precision table file.
        
- 
          DTABLE_WRITE writes a double precision table file.
        
- 
          FILE_NAME_INC increments a partially numeric filename.
        
- 
          GET_UNIT returns a free FORTRAN unit number.
        
- 
          I4MAT_TRANSPOSE_PRINT prints an I4MAT, transposed.
        
- 
          I4MAT_TRANSPOSE_PRINT_SOME prints some of the transpose of an I4MAT.
        
- 
          ITABLE_DATA_WRITE writes data to an integer table file.
        
- 
          ITABLE_HEADER_WRITE writes the header to an integer table file.
        
- 
          ITABLE_WRITE writes an integer table file.
        
- 
          R8MAT_TRANSPOSE_PRINT prints an R8MAT, transposed.
        
- 
          R8MAT_TRANSPOSE_PRINT_SOME prints some of an R8MAT, transposed.
        
- 
          S_ALPHA_LAST returns the location of the last alphabetic character.
        
- 
          S_BEGIN is TRUE if one string matches the beginning of the other.
        
- 
          S_BEHEAD_SUBSTRING "beheads" a string, removing a given substring.
        
- 
          S_EQI is a case insensitive comparison of two strings for equality.
        
- 
          S_INC "increments" a string.
        
- 
          S_REPLACE_CH replaces all occurrences of one character by another.
        
- 
          S_TO_I4 reads an I4 from a string.
        
- 
          S_WORD_COUNT counts the number of "words" in a string.
        
- 
          S_WORD_EXTRACT extracts the next word from a string.
        
- 
          TEC_DATA_READ reads the data from a TEC file.
        
- 
          TEC_DATA_WRITE writes the data to a TEC file.
        
- 
          TEC_HEADER_PRINT prints the header to a TEC file.
        
- 
          TEC_HEADER_READ reads the header from a TEC file.
        
- 
          TEC_HEADER_WRITE writes the header to a TEC file.
        
- 
          TEC_OPEN_READ opens a TEC file for reading.
        
- 
          TEC_OPEN_WRITE opens a TEC file for writing.
        
- 
          TEC_WRITE writes finite element data to a TEC file.
        
- 
          TEC_ZONE_LINE_PARSE parses the "ZONE" line of a TEC file.
        
- 
          TIMESTAMP prints the current YMDHMS date as a time stamp.
        
- 
          TIMESTRING writes the current YMDHMS date into a string.
        
      You can go up one level to 
      the FORTRAN90 source codes.
    
    
    
      Last revised on 13 November 2006.