rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
Functions
fem_global_dof_index.m File Reference

function computing the local-to-global dof map of a fem discrete function More...

Go to the source code of this file.

Functions

function
global_dof_index = 
fem_global_dof_index (params,triagrid grid)
 function computing the local-to-global dof map of a fem discrete function More...
 

Detailed Description

function computing the local-to-global dof map of a fem discrete function

Definition in file fem_global_dof_index.m.

Function Documentation

function global_dof_index = fem_global_dof_index (   params,
triagrid  grid 
)

function computing the local-to-global dof map of a fem discrete function

gid = global_dof_index(elid,lagrange_node) yields the global index of the first dof of the basis function corresponding to the given Lagrange node and element elid. gid:(gid+dimrange-1) are the subsequent dof indices of the vectorial function in the lagrange node. first all dofs in nodes are counted, then all dofs in element interior, then the dofs on edge-interiors.

The Lagrange nodes l_1,...,l_m with m=0.5*(pdeg+1)*(pdeg+2) are sorted in the following order

       l_m = v_3
       *
       |\
       | \
       |  \
       *   *
       |    \
       |     \
       |______\
       *   *   *
 v_1 = l_1      v_2 = l_(pdeg+1)

where v_1,v_2,v_3 denote the sorting of the triangles corners.

Parameters
paramsparams
gridan object
Return values
global_dof_indexglobal dof index
Required fields of params:
  • pdeg —  pdeg
  • dimrange —  dimrange
Required fields of grid:
  • nelements —  number of elements
  • VI —  matrix of vertex indices: VI(i,j) is the global index of the j-th vertex of element i
  • nvertices —  number vertices
  • NBI —  NBI

Definition at line 17 of file fem_global_dof_index.m.

Here is the caller graph for this function: