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>is_valid_struct</H1> |
---|
6 |
<H2>(./FEM/is_valid_struct.m)</H2> |
---|
7 |
<HR><H3>Function Synopsis</H3> |
---|
8 |
<pre>errflag=is_valid_struct(fem_grid_struct)</pre> |
---|
9 |
<HR><H3>Help text</H3> |
---|
10 |
<pre> |
---|
11 |
IS_VALID_STRUCT - Determine if the input structure is "valid" |
---|
12 |
|
---|
13 |
IS_VALID_STRUCT determines whether or not the input |
---|
14 |
structure is valid or invalid according to the |
---|
15 |
description of <A HREF = "../3.FEM/fem_grid_struct.html">FEM_GRID_STRUCT</A>. A valid <A HREF = "../3.FEM/fem_grid_struct.html">FEM_GRID_STRUCT</A> |
---|
16 |
contains (atleast) the following (NOT EMPTY) fields: |
---|
17 |
|
---|
18 |
.name - the domain name of the FEM grid |
---|
19 |
.e - node connectivity list (linear, triangular) [ne x 3 double] |
---|
20 |
.x - x-horizontal node coordinates [nn x 1 double] |
---|
21 |
.y - y-horizontal node coordinates [nn x 1 double] |
---|
22 |
.z - bathymetry list [nn x 1 double] |
---|
23 |
.bnd - boundary segment list [nb x 2 double] |
---|
24 |
|
---|
25 |
As a (not very rigorous) check, the maximum node number in the |
---|
26 |
element and boundary lists must not exceed the length of the node |
---|
27 |
list, and the node list ane bathymetry lists must be the same length. |
---|
28 |
|
---|
29 |
There is no way to guarantee that the data in the fields actually |
---|
30 |
all came from the same domain (mesh). However, if the |
---|
31 |
<A HREF = "../3.FEM/fem_grid_struct.html">FEM_GRID_STRUCT</A> was output from <A HREF = "../3.FEM/loadgrid.html">LOADGRID</A> or LOADG, then it is guaranteed. |
---|
32 |
|
---|
33 |
CALL: errflag=is_valid_struct(<A HREF = "../3.FEM/fem_grid_struct.html">fem_grid_struct</A>) |
---|
34 |
|
---|
35 |
Written by : Brian O. Blanton |
---|
36 |
Summer 1997 |
---|
37 |
|
---|
38 |
</pre> |
---|
39 |
<HR><H3>Cross-Reference Information</H3>This function is called by |
---|
40 |
<pre><UL> |
---|
41 |
<LI><A HREF = "../3.FEM/basis2d.html">basis2d</A> ./FEM/basis2d.m</LI> |
---|
42 |
<LI><A HREF = "../3.FEM/belint.html">belint</A> ./FEM/belint.m</LI> |
---|
43 |
<LI><A HREF = "../3.FEM/breakstruct.html">breakstruct</A> ./FEM/breakstruct.m</LI> |
---|
44 |
<LI><A HREF = "../3.FEM/colormesh2d.html">colormesh2d</A> ./FEM/colormesh2d.m</LI> |
---|
45 |
<LI><A HREF = "../3.FEM/colormesh3d.html">colormesh3d</A> ./FEM/colormesh3d.m</LI> |
---|
46 |
<LI><A HREF = "../3.FEM/curl.html">curl</A> ./FEM/curl.m</LI> |
---|
47 |
<LI><A HREF = "../3.FEM/drawelems.html">drawelems</A> ./FEM/drawelems.m</LI> |
---|
48 |
<LI><A HREF = "../3.FEM/drawelems3d.html">drawelems3d</A> ./FEM/drawelems3d.m</LI> |
---|
49 |
<LI><A HREF = "../3.FEM/el_areas.html">el_areas</A> ./FEM/el_areas.m</LI> |
---|
50 |
<LI><A HREF = "../3.FEM/findelem.html">findelem</A> ./FEM/findelem.m</LI> |
---|
51 |
<LI><A HREF = "../3.FEM/interp_scalar.html">interp_scalar</A> ./FEM/interp_scalar.m</LI> |
---|
52 |
<LI><A HREF = "../3.FEM/lcontour.html">lcontour</A> ./FEM/lcontour.m</LI> |
---|
53 |
<LI><A HREF = "../3.FEM/numbnd.html">numbnd</A> ./FEM/numbnd.m</LI> |
---|
54 |
<LI><A HREF = "../3.FEM/numelems.html">numelems</A> ./FEM/numelems.m</LI> |
---|
55 |
<LI><A HREF = "../3.FEM/numnodes.html">numnodes</A> ./FEM/numnodes.m</LI> |
---|
56 |
<LI><A HREF = "../3.FEM/plotbnd.html">plotbnd</A> ./FEM/plotbnd.m</LI> |
---|
57 |
<LI><A HREF = "../3.FEM/sample_field_2d.html">sample_field_2d</A>./FEM/sample_field_2d.m</LI> |
---|
58 |
<LI><A HREF = "../3.FEM/showelem.html">showelem</A> ./FEM/showelem.m</LI> |
---|
59 |
<LI><A HREF = "../3.FEM/vecplot.html">vecplot</A> ./FEM/vecplot.m</LI> |
---|
60 |
<LI><A HREF = "../3.FEM/which_elem.html">which_elem</A> ./FEM/which_elem.m</LI> |
---|
61 |
</UL></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> |
---|