FEATool Multiphysics  v1.16.4
Finite Element Analysis Toolbox
gridedge.m File Reference


GRIDEDGE Generate grid cell edge numbering.

[ E, EV ] = GRIDEDGE( C, N_SDIM ) Generates an array E with global edge numbers. Input data is an array C with cell connectivities and N_SDIM specifying the number of space dimensions.

Input       Value/(Size)           Description
c           (n_v,n_c)              Cell connectivity pointer array where the
                                   entries in each column correspond to the
                                   cell vertex numbers specifying the cells.
n_sdim      scalar                 Number of space dimensions.
Output      Value/(Size)           Description
e           (n_e,n_c)              Array with global edge numbers for all cells.
ev          (n_e,2)                Array with indices to vertices for each edge.