While still an undergraduate, one my CFD class projects was to analyze the flow over an airfoil. My first order of business was to figure out where I could obtain the airfoil profile (i.e. the coordinates of the vertices that define the airfoil profile). I eventually found the very useful NACA airfoil generator. It is a Java applet that runs in your (firefox) browser. It can be found here (4 digit series) or here (5 digit series).
Next, I had to figure out a way of input all the vertex data in Gambit. Obviously, it is very bad practice to input the data points one at a time. Being new to Gambit and CFD in general, my options were limited. Eventually, inputing the vertex data into Gambit turned out to be as easy as boiling eggs.
Next, I had to figure out a way of input all the vertex data in Gambit. Obviously, it is very bad practice to input the data points one at a time. Being new to Gambit and CFD in general, my options were limited. Eventually, inputing the vertex data into Gambit turned out to be as easy as boiling eggs.
Voila!
- Get the vertex data ready in a text file
- In Gambit, File->Import->Vertex Data
Note that if the data is two dimensional, the text file will have only two columns. Gambit, however, assumes this is 3D data and will mess things up. What you have to do in this case is add a third column to the data file and fill it with "0.0". You can do that manually, or write a code to do that for you. I've written a tiny application in C# that will append a value that you specify at the end of every line of a text file. You can download it from here.
Cite as:
Saad, T. "Importing Vertex Data in Gambit".
Weblog entry from
Please Make A Note.
https://pleasemakeanote.blogspot.com/2008/05/importing-vertex-data-in-gambit.html?m=0