CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Gambit geometry creation: loading data to gambit (http://www.cfd-online.com/Forums/fluent/30661-gambit-geometry-creation-loading-data-gambit.html)

C Ariyaratne December 12, 2002 09:43

Gambit geometry creation: loading data to gambit
 
Hello,

I have a spreadsheet of x,y,z data and want to plot the points in gambit to create geometry. Since it's a lot of data it is not possible to input manually. Is there a way to load the data onto Gambit and make it plot?

njoy December 12, 2002 12:44

Re: Gambit geometry creation: loading data to gamb
 
yes, i would also like to know this if it is possible? How?

An Modh Coinniolach December 12, 2002 13:05

Re: Gambit geometry creation: loading data to gamb
 
You can import xyz type point data in Gambit from the menuy using File/Import/Vertex Data.

njoy December 12, 2002 13:29

Re: Gambit geometry creation: loading data to gamb
 
What type of file it should be?

charlis December 14, 2002 11:22

Re: Gambit geometry creation: loading data to gamb
 
you can write your jou file ,which can autorun in gambit, it is very easy to learn , just like this: vortex create... edge create...

Taher December 16, 2002 15:56

Re: Gambit geometry creation: loading data to gamb
 
I have tried this once before and used and .dat file and works fine

njoy December 17, 2002 08:38

Re: Gambit geometry creation: loading data to gamb
 
Dear Taher,

Can you please write the procedure in detail. Thanks in advance!

Taher December 18, 2002 08:57

Re: Gambit geometry creation: loading data to gamb
 
1. This is an example of how to import three columns - x,y z, vertex data. The first line must contain the number of points and the number of curves example: 1 129 for 1 curve and 129 points. open the file 2. get rid of all text 3. get rid of duplicate set of data 4. get rid of any blank line

5. Save this page as a text file in the C:\temp directory - "filename.txt"

6. Run GAMBIT (from the run command)

7. In GAMBIT - in the Command Text box enter

import vertexdata "C:\temp\|filename.txt"

8. If all goes well you should see 129 points in the graphics window

mp December 18, 2002 09:39

Re: Gambit geometry creation: loading data to gamb
 
Dear Taher,

Thanks for your explanation,

I tried the same, but the got the following

ERROR: Error reading number of points per curve and number of curves.

ERROR(850) - UNTERMINATED STRING VALUE

I took care of no text, no duplicate data and no blank line in my .txt file.

I just have

1 in the first line and

129 in the second line

where did i do mistake.....please let me know.

Thanks and Regards

- mp

Taher December 18, 2002 10:22

Re: Gambit geometry creation: loading data to gamb
 
your text file should look something like this- the first error is because 1 and 129 are both on the first line with a space inbetween.

For example: ----------------- 1 5 0.0 1.0 0 0.1 1.1 0 0.2 1.2 0 0.3 1.3 0 0.4 1.4 0

----------------


ATABAK March 17, 2011 17:39

Quote:

Originally Posted by Taher
;103832
1. This is an example of how to import three columns - x,y z, vertex data. The first line must contain the number of points and the number of curves example: 1 129 for 1 curve and 129 points. open the file 2. get rid of all text 3. get rid of duplicate set of data 4. get rid of any blank line

number of curves must be greater than 1


All times are GMT -4. The time now is 09:51.