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... | |
function computing the local-to-global dof map of a fem discrete function
Definition in file fem_global_dof_index.m.
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.
params | params |
grid | an object |
global_dof_index | global dof index |
pdeg —
pdeg dimrange —
dimrangenelements —
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.