Reference page for Nodal2D

Contents

Summary

Nodal2D Lagrange (nodal) shape function in 2D.

Class for representing and evaluating shape functions and their partial derivatives. Objects of the class can be instantiated with

The actual evaluation is performed with N.eval(args) by specifying


PROPERTIES


METHODS

Class methods are listed below. Inherited methods are not included.

this = Nodal2D(arguments) Constructor

this = Nodal()

For evaluating raw nodal shape function N.

this = Nodal( Operators.grad )

this = Nodal( Operators.curl )

For evaluating grad N or curl N, respectively.

this.eval(arguments) Global evaluation.

vals = eval(this, k, x_local, mesh, elements)

Evaluates (this.op x N_k), where N_k is the k:th node of the elementType of the given mesh. The expression is *eval*uated at the global coordinates corresponding to the given local coordinates, on the specified elements of the given mesh.

Input arguments:

vals = eval(this, k, x_local, mapping, mapping_determinant)

The same as above, but specify the local-to-global mapping and its determinant instead of the element indices. Mainly used for speed purposes.

Input arguments:

evaluates the reference shape function (either identity or

gradient)

Nref = eval(ref, this, k, x_local, mesh)

this.getData(arguments) Data for matrix assembly.

Nodal2D/this.getIndices(arguments) is a function.

inds = getIndices(~, k, msh, varargin)