<div dir="ltr"><div><div><div><div>hi all,<br><br></div>I need to re-create a finite element mesh from XY data, (from input files for a groundwater model someone else built in a different platform (IWFM). Would appreciate some help in figuring out how to take the 2 files below, and create a polygon vector layer with element ID assigned to polygons.<br>
<br></div>The nodes and elements are in 2 files, here is what they look like:<br>
<br></div>1. nodes file has node id, x,y (utm 10 wgs 84 i think), and a region id<br><br><div style="margin-left:40px"><i>C Groundwater Node Locations<br>C The following lists the node number and x & y coordinate of each node<br>
C<br>C ID; Groundwater node number<br>C X,Y; Coordinates of groundwater node location; [L]<br>C<br>C-------------------------------------------------------------------------------<br>C Node ----------Coordinates----------<br>
C ID X Y<br>C-------------------------------------------------------------------------------<br> 1 563734 4308465<br> 2 565407 4308558<br> 3 566687 4308507<br>
4 567636 4308465<br></i></div><div style="margin-left:80px">...<br></div><br><br></div>2. element files links the nodes to element ids<br><div><br> File Description<br>C<br>C This file contains the element configuration for each element.<br>
C The nodes that make a finite element are listed for each element in<br>C a counter-clock wise fashion starting with any node. For triangular elements,<br>C the fourth node is specified as zero.<br>C<br>C<br>C For example,<br>
C<br>C 13-------------14----------17<br>C I I I<br>C I 2 I 3 I<br>C I I I<br>C I I I<br>
C 15------------- 16<br>C<br>C<br>C The configuration for elements 2 and 3 will be listed as,<br>C<br>C element node 1 node 2 node 3 node 4<br>C 2 13 15 16 14<br>
C 3 14 16 17 0<br>...<br>----------------------------------------------------------------------------<br>C Element ------------Corresponding Nodes------------------ Subregion<br>
C IE IDE(1) IDE(2) IDE(3) IDE(4) IRGE <br>C-------------------------------------------------------------------------------<br><div style="margin-left:40px"> 1 1 5 6 2 1 <br>
2 3 2 6 7 1 <br> 3 3 7 8 4 1 <br> 4 11 6 5 10 1 <br>
5 11 12 7 6 1 <br> 6 12 16 8 7 1 <br> 7 13 9 17 0 1 <br>
</div>...<br><br></div><div>Thanks for any help!<br></div><div>Vishal<br></div><div><div><div><div><div><br clear="all"><div><br>-- <br>
Vishal K. Mehta, PhD<br>Sr. Scientist<br>Stockholm Environment Institute - US<br>133 D St Suite F<br>Davis CA 95616<br><a href="http://www.sei-us.org" target="_blank">www.sei-us.org</a>
</div></div></div></div></div></div></div>