./maketx fea_assemble.c -I/usr/local/sqlite-2.8.4/include

LD_LIBRARY_PATH must include
  1. the directory containing the .tx file (typically ".", the cwd)
  2. the SQLite library directory (eg: /usr/local/sqlite-2.8.4/lib )

# for element 652329582

# find node coordinates (in proper element order) for any element type by EID
select N.id, N.x1, N.x2, N.x3 from element_node E, node N where 
       E.eid='652329582' and E.nid=N.id order by E.seq_no;

# find Young's modulus, Poisson's ratio, thickness for any element type by EID
select E,nu,rho from tri3,shell_prop,material where
         tri3.id='652329582'              and
         tri3.shell_prop=shell_prop.id    and
         material.id=shell_prop.material_id;

# renumber nodes from 1 to N according to node ID's lexical sort sequence:
create table renumbered_nid (orig_id integer, new_id integer primary key );
# the null below will result in an autoincremented integer 1..N
insert into renumbered_nid select id , null from node order by id;

