FEATool  v1.6
Finite Element Analysis Toolbox
 All Files Functions Pages
sf_tri_P4.m File Reference

Description

SF_TRI_P4 Fourth order Lagrange shape functions for triangles (P4).

[ VBASE, NLDOF, XLDOF, SFUN ] = SF_TRI_P4( I_EVAL, N_SDIM, N_VERT, I_DOF, XI, AINVJAC, VBASE ) Evaluates conforming fourth order P4 Lagrange shape functions on 2D triangular elements with values defined in the nodes, edges, and center. XI are Barycentric coordinates.

Input       Value/[Size]           Description
-----------------------------------------------------------------------------------
i_eval      scalar:  1             Evaluate function values
                    >1             Evaluate values of derivatives
n_sdim      scalar: 2              Number of space dimensions
n_vert      scalar: 3              Number of vertices per cell
i_dof       scalar: 1-15           Local basis function to evaluate
xi          array [3,1]            Local coordinates of evaluation point
aInvJac     [n,6]                  Inverse of transformation Jacobian
vBase       [n]                    Preallocated output vector
                                                                                  .
Output      Value/[Size]           Description
-----------------------------------------------------------------------------------
vBase       [n]                    Evaluated function values
nLDof       [4]                    Number of local degrees of freedom on
                                   vertices, edges, faces, and cell interiors
xLDof       [3,n_ldof]             Local coordinates of local dofs
sfun        string                 Function name of called shape function