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

elgen

(./FEM/elgen.m)


Function Synopsis

ellist=elgen(nhorz,nvert)

Help text

 
 ELGEN generate an element list for a rectangular FEM mesh
 
 ELGEN generate an element list for a FEM mesh with nhorz nodes in the 
       x-direction and nvert nodes in the y-direction.  This function 
       is used primarily to provide element lists for transect data
       so that contours can be computed for the normal component of
       the transect.  

       Example: If a transect is made with 25 horizontal and 10 vertical
       stations,  ELGEN would be called as follows:
       
           >> ellist=elgen(25,10);

       The result would be an element list containing the node numbers
       for the three vertices of 2*(nhorz-1)*(nvert-1) elements in a matrix
       with 2*(nhorz-1)*(nvert-1) rows and 3 columns.


        Brian O. Blanton
        Curriculum in Marine Sciences
        Ocean Processes Numerical Modeling Laboratory
        15-1A Venable Hall
        CB# 3300
        Uni. of North Carolina
        Chapel Hill, NC
                 27599-3300

        919-962-4466
        blanton@marine.unc.edu

        September 1994


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