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

root/gliderproc/trunk/MATLAB/opnml/html/3.FEM/which_elem.html

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

Initial import of Stark code.

Line 
1 <TITLE>/</TITLE>
2 <BODY>
3 <A HREF = "index.html">[Index for ./FEM]</A>
4 <A HREF = "../index.html">[Return to Master Index]</A>
5 <H1>which_elem</H1>
6 <H2>(./FEM/which_elem.m)</H2>
7 <HR><H3>Function Synopsis</H3>
8 <pre>j=which_elem(fem_grid_struct,xylist)</pre>
9 <HR><H3>Help text</H3>
10 <pre>
11  WHICH_ELEM determine bounding finite element in given domain
12     WHICH_ELEM finds the element number for the
13     current mouse position.  WHICH_ELEM prompts
14     the user to click on the current axes and returns
15     the element for the &quot;click-on&quot; position, or NaN
16     if the click is outside the domain.
17
18     Alternatively, a list of horizontal points can
19     be passed in and a list of element numbers, one for
20     each input point will be returned.
21
22     In determining which element has been selected,
23     WHICH_ELEM needs elemental areas and shape functions.
24     The routines <A HREF = "../3.FEM/belint.html">BELINT</A> and <A HREF = "../3.FEM/el_areas.html">EL_AREAS</A> compute these arrays
25     and add them to a previously created <A HREF = "../3.FEM/fem_grid_struct.html">fem_grid_struct</A>.
26     These two functions MUST be run before WHICH_ELEM will
27     run.
28     <A HREF = "../3.FEM/belint.html">BELINT</A> is run as:
29       &gt;&gt; new_struct=<A HREF = "../3.FEM/belint.html">belint</A>(<A HREF = "../3.FEM/fem_grid_struct.html">fem_grid_struct</A>);
30     <A HREF = "../3.FEM/el_areas.html">EL_AREAS</A> is run as:
31       &gt;&gt; [new_struct,ineg]=<A HREF = "../3.FEM/el_areas.html">el_areas</A>(<A HREF = "../3.FEM/fem_grid_struct.html">fem_grid_struct</A>);
32
33   INPUT : <A HREF = "../3.FEM/fem_grid_struct.html">fem_grid_struct</A> - (from <A HREF = "../3.FEM/loadgrid.html">LOADGRID</A>, see <A HREF = "../3.FEM/fem_grid_struct.html">FEM_GRID_STRUCT</A>)     
34           xylist          - points to find elements for [n x 2 double]
35            
36  OUTPUT : an element number(s)
37  
38    CALL : &gt;&gt; j=which_elem(<A HREF = "../3.FEM/fem_grid_struct.html">fem_grid_struct</A>)   for interactive
39     or
40           &gt;&gt; j=which_elem(<A HREF = "../3.FEM/fem_grid_struct.html">fem_grid_struct</A>,xylist)       
41
42  Written by : Brian O. Blanton
43  Summer 1997
44
45 </pre>
46 <HR><H3>Cross-Reference Information</H3>This function calls
47 <pre><UL>
48 <LI><A HREF = "../3.FEM/is_valid_struct.html">is_valid_struct</A>./FEM/is_valid_struct.m</LI>
49 <LI><A HREF = "../3.FEM/is_valid_struct2.html">is_valid_struct2</A>./FEM/is_valid_struct2.m</LI>
50 </UL></pre>
51 <HR>
52 Produced by <A HREF="http://www.nd.edu/Courses/kantor/matlab/mat2html">mat2html</A> on Tue Feb  2 16:15:45 EST 1999
53 <BR>
54 Cross-Directory links are: OFF<BR>
55 </BODY>
Note: See TracBrowser for help on using the browser.