-
Notifications
You must be signed in to change notification settings - Fork 83
/
sf_simp_P2bub.m
67 lines (28 loc) · 1.79 KB
/
sf_simp_P2bub.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%SF_SIMP_P2BUB Quadratic Lagrange shape function for simplices with bubble (P2+).
%
% [ VBASE, NLDOF, XLDOF, SFUN ] = SF_SIMP_P2BUB( I_EVAL, N_SDIM, N_VERT, I_DOF, XI, AINVJAC, VBASE )
% Evaluates conforming quadratic P2 Lagrange shape functions on simplices
% an additional with bubble function. XI Barycentric coordinates.
%
% Input Value/[Size] Description
% -----------------------------------------------------------------------------------
% i_eval scalar: 1 Evaluate function values
% >1 Evaluate values of derivatives
% n_sdim scalar: 1-3 Number of space dimensions
% n_vert scalar: 2-4 Number of vertices per cell
% i_dof scalar: 1-n_ldof Local basis function to evaluate
% xi [n_sdim+1] Local coordinates of evaluation point
% aInvJac [n,n_sdim+1*n_sdim] 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 [n_sdim,n_ldof] Local coordinates of local dofs
% sfun string Function name of called shape function
%
% See also SF_SIMP_P2
% Copyright 2013-2024 Precise Simulation, Ltd.
% Evaluation type flag.