makenodes {SpatialfdaR}R Documentation

Compute the matrix nodes containing all the nodes in the mesh.

Description

Each basis function is associated with a node. If the order of the finite elements is 1, the nodes are the vertices of the triangles. If the order is 2, the nodes are also at the midpoints of the edges.

Usage

  makenodes(pts, tri, order=2)

Arguments

pts

A two-column matrix of the locations of the vertices of the mesh.

tri

A three-column matrix of the indices in pts of the triangle vertices.

order

The order of the finite element, which is either 1 or 2.

Details

Computes a matrix nodes containing coordinates for all of the nodes to be used, a matrix nodeindex defining which nodes correspond to each element. If norder is 1, nodes corresponds to vertices and nodeindex is identical to triangles. If norder is 2, the midpoint of each edge is computed and added to points to obtain matrix nodes. The row index of that midpoint is then added to the rows of triangles containing that edge to define nodeindex.

Value

A list object containing these members:

See Also

mass.FEM, stiff.FEM


[Package SpatialfdaR version 1.0.0 Index]