NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/gliderproc/trunk/MATLAB/opnml/FDCONT/fe2fd.m

Revision 495 (checked in by cbc, 11 years ago)

Initial import of Stark code.

Line 
1 function fd=fe2fd(fe,bfd)
2 %FE2FD - interpolate FE data to FD nodes contained in bfd array
3 %   FE2FD interpolates a 2-D FEM scalar field onto the FD nodes
4 %   contained in a bfd array.
5 %
6 %   Input:  fe  -  column vector of FEM scalar data
7 %           bfd -  basis function data array
8 %
9 %           FDCONTOUR takes care to pass in only the
10 %           node numbers and basis functions to FE2FD. 
11 %           Other calls to this function must be careful
12 %           to pass in only columns 4:9 of the bfd array;
13 %           i.e., fe2fd(q,bfd(:,4:9))
14 %
15 %   Output: fd  -  FD-based interpolated data
16 %
17 %   Written by:
18 %   Christopher E. Naimie
19 %   Dartmouth College
20 %   christopher.e.naimie@dartmouth.edu
21 %-----------------------------------------------------------------------
22 fd=fe(bfd(:,1)).*bfd(:,4)+fe(bfd(:,2)).*bfd(:,5)+fe(bfd(:,3)).*bfd(:,6);
Note: See TracBrowser for help on using the browser.