Input datafiles into the GAMBIT preprocessor software

In summary, the conversation discusses a method for inputting a series of datafiles into the Gambit preprocessor package. The datafiles contain 2 columns representing points of a 2D curvature and are available in *.dat and *.txt extensions. The format is similar to airfoil data, and the suggested method involves converting the data to dxf, editing in CATIA, exporting to IGS, and then importing back into Gambit. There is a program called dat2dxf that can assist with this process, but it may be difficult to find and requires certain dependencies. This method has been used successfully for design and CFD work.
  • #1
Goodman
2
0
Dear Friends
How can I input a series of datafiles into the Gambit preprocessor package? Let assume that these datafiles contain 2 columns representing the points of a 2D curvature. There is no text header above the column, and datafiles are available in both *.dat and *.txt extensions. Also the data can be stored in both point and block patterns according to the Tecplot software standard for writing the datafiles.:smile:

Thanks in advance,
Kevin.
 
Engineering news on Phys.org
  • #2
Are you talking about airfoil data by any chance? I ask because it usually comes in dat or txt, and consists of two columns which you described. I am not sure if it is the same format that tecplot uses (but it sounds very similar). Since I am 99% sure you are talking about airfoils, so I'll just tell you my experience in doing the presumably exact same thing that you are doing. There is a program floating around called dat2dxf, but it is quite hard to find. I think I have a copy sitting on my remote folder all the way at school in AZ (gotta love the internet). You can find it attached.

http://infernalandroid.tripod.com/dat2dxf-0.8.3a.tar.gz"

I always would convert to dxf, edit in CATIA (or whatever), export to IGS, then import back into gambit. It does beat coding things in by hand though. Beware of GAMBIT's wacky and craptastic handling of IGS curves. I always split my airfoil into the top and bottom surfaces, built top and boundary sketches in catia, then converted those to areas, then exported to IGS, and meshed the areas, set up boundaries, etc... So you have to go from dat to dxf to IGS (I don't believe GAMBIT handles DXF). You probably won't need CATIA to do it, but that is what I used- anything should do.

As for running the dat2dxf program, it compiles and runs fine on Linux (I tried Ubuntu on a PC and an old version of something else running on an SGI). Probably runs fine in OS X (maybe), any Unix, or BSD. Couldn't get it running in Cygwin on Windows (but it should if you get the right dependencies).

Despite all the hurdles you have to jump through, you will probably use this more than once. I used it in two classes for design work and CFD work. Good luck.

Cheers.

BTW- if you weren't talking about airfoils, then I'll feel a bit dumb, but at least you'll know how to get airfoil data into gambit. :)
 
Last edited by a moderator:

Related to Input datafiles into the GAMBIT preprocessor software

1. What types of input data files can be used in GAMBIT preprocessor software?

The GAMBIT preprocessor software accepts several types of input data files, including CAD files in formats such as IGES, STEP, and Parasolid, as well as mesh files in formats such as ANSYS, FLUENT, and CGNS.

2. How do I import a CAD file into GAMBIT preprocessor software?

To import a CAD file into GAMBIT, go to the File menu and select Import CAD. Then, choose the appropriate file type and browse for the file on your computer. Click Open and the CAD data will be imported into GAMBIT.

3. Can I generate a mesh directly from my CAD file in GAMBIT?

Yes, GAMBIT has the capability to automatically generate a mesh from a CAD file. This can be done by selecting the CAD file in the Model Tree and then clicking on the Generate Mesh button in the toolbar.

4. How do I import a mesh file into GAMBIT preprocessor software?

To import a mesh file into GAMBIT, go to the File menu and select Import Mesh. Then, choose the appropriate file type and browse for the file on your computer. Click Open and the mesh data will be imported into GAMBIT.

5. Is it possible to combine multiple input data files in GAMBIT?

Yes, GAMBIT allows you to combine multiple input data files, such as CAD and mesh files, to create a complete model. This can be done by importing each file separately and then using the Merge feature to combine them into one model.

Similar threads

  • STEM Academic Advising
Replies
13
Views
2K
  • Special and General Relativity
Replies
13
Views
2K
  • Quantum Physics
Replies
8
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
Replies
89
Views
34K
Back
Top