<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><P>All,</P>
<P> </P>
<P>First, since this is not a question to the developers but rather a supplementary topic/useful tool for</P>
<P>importing complex geometries, please reply to my personal email rather than clogging up the user list with questions.</P>
<P>If a developer replies that it is not a problem to respond directly then go ahead, but I feel it may be intrusive to some users</P>
<P>searching for real questions.     email:   <A href="mailto:cmeador@tamu.edu">cmeador@tamu.edu</A></P>
<P> </P>
<P><EM><STRONG>(for questions, I will try to get to them when I can)</STRONG></EM></P>
<P> </P>
<P>Attached is the matlab m-files necessary to convert a neutral file to a Nekton REA file. </P>
<P>Note that it only creates the heart of the REA and you must paste it into a template REA of your choice. </P>
<P>The main file to use is called "<U>rea_write.m</U>". Here you specify the inputs at the top. You can read through the comments</P>
<P>and get an idea of what functions do what.  I am sure that much of the program can be improved to run faster, but at</P>
<P>the moment I don't have time for that and it is working for what I needed it to.</P>
<P> </P>
<P>To get started with Gambit, assuming you imported/created your geometry in gambit, follow these 3 basic steps:</P>
<P> </P>
<P>1.    Set Solver type to GENERIC</P>
<P> </P>
<P>2.   When Meshing, make sure the edge node count is 3 (for midpoints).  This should make the face count 8 and the volume count 20 nodes. </P>
<P>      This setting is necessary to take advantage of Nektons mid side node support.</P>
<P> </P>
<P>3.   Use the zones to label faces as Boundary conditions. Select multiple faces if you like. Since the solver is set to generic, just call the BC</P>
<P>anything you like, "Inlet" for example.  The Matlab code will ask you "What did you mean by Inlet", where you would input 'v' for a fortran </P>
<P>velocity input.  If it is a thermal problem (TBC = 1 in the inputs in rea_write), it will ask for the momentum and thermal BC.  In gambit, any</P>
<P>face that is not labeled with a BC type is assumed to be a Wall. </P>
<P> </P>
<P><STRONG>NOTE:   The Mesh must be HEX & Edge node count 3!...  ONLY works for 3D cases!</STRONG></P>
<P><EM></EM> </P>
<P>I also included a few sample NEU files that you can try as examples, and to help check if your gambit mesh is set up correctly. Also, the code </P>
<P>is written assuming Gambit calls the z-axis "y" and the y-axis "z". I found this was the case with the Gambit we were using, so the code will switch the coordinates.</P>
<P>When we imported from Solidworks we noticed that it was doing this. </P>
<P> </P>
<P>Hope this is enough to get started and good luck with it!!</P>
<P> </P>
<P>- Michael M.</P></div></body></html>