shapeDerivatives

| main | Tutorials | Functions | website |

Computes the shape function derivatives and the determinant of the Jacobian matrix

Version : 1.0

Author : George Kourakos

email: giorgk@gmail.com

web : http://groundwater.ucdavis.edu/msim

Date 18-Mar-2014

Department of Land Air and Water

University of California Davis

Contents

Usage

[B Jdet]=shapeDerivatives(p, MSH, n, opt)

Input

p: [Np x 3] Coodrinates of nodes [x1 y1 z1; x2 y2 z2;...xn yn zn], Np is the number of nodes

MSH : [Nel x Np_el] id of elements. Each row correspond to an element. Nel is the number of elements. Np_el is the number of nodes to define the element.

n: the intergration point where the derivatives will be evaluated

opt : Structure with the following fields

dim: Dimension of the problem : 1, 2 or 3.

el_type: type of element e.g. triangle, prism etc...

el_order: order of the element: linear or quadratic

Output

B : Shape function derivatives

Jdet : The determinant of the Jacobian Matrix

| main | Tutorials | Functions | website |