31 geo = fem.geometry.Cube8Node;
33 this =
this@fem.BaseFEM(geo);
39 Nx = [(1-x(1,:)).*(1-x(2,:)).*(1-x(3,:));...
41 (1+x(1,:)).*(1-x(2,:)).*(1-x(3,:));...
42 (1-x(1,:)).*(1+x(2,:)).*(1-x(3,:));...
44 (1+x(1,:)).*(1+x(2,:)).*(1-x(3,:));...
45 (1-x(1,:)).*(1-x(2,:)).*(1+x(3,:));...
47 (1+x(1,:)).*(1-x(2,:)).*(1+x(3,:));...
48 (1-x(1,:)).*(1+x(2,:)).*(1+x(3,:));...
50 (1+x(1,:)).*(1+x(2,:)).*(1+x(3,:));]/8;
55 dNx = [-(1-x(2,:)).*(1-x(3,:)) -(1-x(1,:)).*(1-x(3,:)) -(1-x(1,:)).*(1-x(2,:));...
57 (1-x(2,:)).*(1-x(3,:)) -(1+x(1,:)).*(1-x(3,:)) -(1+x(1,:)).*(1-x(2,:));...
58 -(1+x(2,:)).*(1-x(3,:)) (1-x(1,:)).*(1-x(3,:)) -(1-x(1,:)).*(1+x(2,:));...
60 (1+x(2,:)).*(1-x(3,:)) (1+x(1,:)).*(1-x(3,:)) -(1+x(1,:)).*(1+x(2,:));...
61 -(1-x(2,:)).*(1+x(3,:)) -(1-x(1,:)).*(1+x(3,:)) (1-x(1,:)).*(1-x(2,:));...
63 (1-x(2,:)).*(1+x(3,:)) -(1+x(1,:)).*(1+x(3,:)) (1+x(1,:)).*(1-x(2,:));...
64 -(1+x(2,:)).*(1+x(3,:)) (1-x(1,:)).*(1+x(3,:)) (1-x(1,:)).*(1+x(2,:));...
66 (1+x(2,:)).*(1+x(3,:)) (1+x(1,:)).*(1+x(3,:)) (1+x(1,:)).*(1+x(2,:))]/8;
73 q = fem.HexahedronTrilinear;
74 res = fem.BaseFEM.test_BasisFun(q);
77 [
X,
Y,Z] = ndgrid(-1:2:1,-1:2:1,-1:2:1);
78 p = [
X(:)
Y(:) Z(:)]^
t;
79 res = res && isequal(q.N(p),eye(8));
FEMBASE Summary of this class goes here Detailed explanation goes here.
function Nx = N(colvec< double > x)
static function res = test_TrilinearBasisFun()
function dNx = gradN(colvec< double > x)
HexahedronTrilinear: Base class for linear ansatz functions on hexahedral geometry (8-Point elements)...