interp_with_shapefnc

| main | Tutorials | Functions | website |

Interpolate value P defined on nodes using the shape functions N

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

P_interp = interp_with_shapefnc(N, P, MSH, opt)

Input

N: [1 x N_sh] Shape functions values. This is the outcome of the functions shapefunctions.m

P : [Np x 1] The property for interpolation defined on the nodes. Np is the number of nodes in the mesh

opt : a structure variable with fields:

dim: dimension of the elements e.g. 1, 2 or 3

el_type: type of elements

el_order: order of elements

Output

P_interp: interpolated values on the points defined by the shape function values

| main | Tutorials | Functions | website |