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

root/gliderproc/trunk/MATLAB/opnml/html/2.FDCONT/genbfd.html

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

Initial import of Stark code.

Line 
1 <TITLE>/</TITLE>
2 <BODY>
3 <A HREF = "index.html">[Index for ./FDCONT]</A>
4 <A HREF = "../index.html">[Return to Master Index]</A>
5 <H1>genbfd</H1>
6 <H2>(./FDCONT/genbfd.m)</H2>
7 <HR><H3>Function Synopsis</H3>
8 <pre>[xy,nnx,nny]=gen_fd_points(nx,ny,fem_grid_struct)</pre>
9 <HR><H3>Help text</H3>
10 <pre>
11 GENBFD generate a &quot;basis function data&quot; file for FD contouring
12    GENBFD computes an information file for contouring FEM
13    node-based data using FD sampled points and MATLAB's
14    contourf routine.  The FD-based plotting tools are part
15    of the FDCONT toolkit.
16
17    Input: fem_grid_struct - FEM domain
18            xylist - FD point list (n X 2) or a 1x2 vector
19                     containing [nx ny], the number of FD
20                     points in (x,y) to discretize the area.
21                     See below.
22            outflag - flag to output .bfd file to disk
23                      if outflag==1, the bfd matrix is output to
24                      the current directory with the name
25                      &lt;gridname&gt;.bfd.
26                      if outflag==0, the bfd matrix is returned
27                      workspace.
28            bfdfilename - optional filename to write bfd matrix to.
29
30            Arguments 1-3 are required.
31
32            If xylist is passed in as [nx ny], GENBFD generates
33            the FD points convering an area equal to the
34            total extent of the FEM domain.  If only 1 integer
35            is passed in, then nx=ny, GENBFD takes the smaller
36            of [(xmax-xmin),(ymax-ymin)] for equal spacing.
37
38    Output: The result of GENBFD is a matrix
39    containing the following information.
40
41    For each FD point:
42     x y elem n1 n2 n3 b1 b2 b3 depth
43
44    where x,y = FD point coordinate
45           elem = FE element containing x y (==0 if outside FE mesh)
46           n1,n2,n3 = node numbers of containing element (or closest)
47           b1,b2,b3 = basis function values (or 1 0 0 if outside FEM)
48           depth = depth at xy (or depth of closest node)
49
50    For any given FD discretization, the bfd matrix need only be
51    computed once.  The bfd matrix is passed to <A HREF = "../2.FDCONT/fe2fd.html">FE2FD</A> to perform
52    the actual FE to FD interpolation.
53
54    Call:  bfd=genbdf(fem_grid_struct,xylist,outflag)
55      OR   bfd=genbdf(fem_grid_struct,xylist,outflag,bfdfilename)
56      OR   bfd=genbdf(fem_grid_struct,[nx ny],outflag,bfdfilename)
57
58    Written by: Brian Blanton (Spring 99) to implement
59    Chris Naimie's &quot;bfd&quot; file in MATLAB.
60
61 </pre>
62 <HR>
63 Produced by <A HREF="http://www.nd.edu/Courses/kantor/matlab/mat2html">mat2html</A> on Tue Feb  2 16:15:45 EST 1999
64 <BR>
65 Cross-Directory links are: OFF<BR>
66 </BODY>
Note: See TracBrowser for help on using the browser.