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

root/gliderproc/trunk/MATLAB/opnml/html/3.FEM/findelem.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>findelem</H1>
6 <H2>(./FEM/findelem.m)</H2>
7 <HR><H3>Function Synopsis</H3>
8 <pre>j=findelem(fem_grid_struct,xylist)</pre>
9 <HR><H3>Help text</H3>
10 <pre>
11 FINDELEM element finding utility
12    FINDELEM finds the element number for the
13    current mouse position.  FINDELEM 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; NaN is returned
21    for each point outside of the FEM domain.
22
23    In determining which element has been selected,
24    FINDELEM needs elemental areas and shape functions.
25    The routines <A HREF = "../3.FEM/belint.html">BELINT</A> and <A HREF = "../3.FEM/el_areas.html">EL_AREAS</A> compute these arrays
26    and add them to a previously created <A HREF = "../3.FEM/fem_grid_struct.html">fem_grid_struct</A>.
27    These two functions MUST be run before FINDELEM will
28    run.
29           <A HREF = "../3.FEM/belint.html">BELINT</A> is run as:
30                  new_struct=<A HREF = "../3.FEM/belint.html">belint</A>(<A HREF = "../3.FEM/fem_grid_struct.html">fem_grid_struct</A>);
31           <A HREF = "../3.FEM/el_areas.html">EL_AREAS</A> is run as:
32                  [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>);
33
34    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>)
35             xylist          - points to find elements for [n x 2 double]
36
37    OUTPUT : an element number(s)
38  
39    CALL : &gt;&gt; j=findelem(<A HREF = "../3.FEM/fem_grid_struct.html">fem_grid_struct</A>)   for interactive
40      OR   &gt;&gt; j=findelem(<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 This function is called by
52 <pre><UL>
53 <LI><A HREF = "../3.FEM/basis2d.html">basis2d</A>        ./FEM/basis2d.m</LI>
54 <LI><A HREF = "../3.FEM/showelem.html">showelem</A>       ./FEM/showelem.m</LI>
55 </UL></pre>
56 <HR>
57 Produced by <A HREF="http://www.nd.edu/Courses/kantor/matlab/mat2html">mat2html</A> on Tue Feb  2 16:15:45 EST 1999
58 <BR>
59 Cross-Directory links are: OFF<BR>
60 </BODY>
Note: See TracBrowser for help on using the browser.