|
[Sponsors] |
March 17, 2003, 08:48 |
Feeding Data using File in Gambit
|
#1 |
Guest
Posts: n/a
|
I want to create about 300 Vertices in gambit for creating a complex 3-D geometry. Is it possible to type and save the co-ordinates of the vertices in a proper seuential manner in a file and then read the same vertices in Gambit?
If it is possible please tell me how to do it in DETAIL. Which type of file (text or other) has to be used in that case?? Thanks in advance! |
|
March 17, 2003, 11:34 |
Re: Feeding Data using File in Gambit
|
#2 |
Guest
Posts: n/a
|
You need to write a journal file. Journal files for Gambit are just ascii text files you can write with a text editor or, if the coordinates of your 300 vertexes are related by some mathematical relationship you can let a subroutine write it for you. You can find more info about using journal files in your USER Documentation in the section named:
PARAMETRIC JOURNALING WITH GAMBIT read it carefully and pay attention at the syntax of your journal, bacause as far as I know gambit has no debug tools for journal files. Best Regards, Jkl. PS: Take also a look at the journals gambit is writing while you work with its gui. For example to create a vertex in the position (-1,1,0) you will write: vertex create coordinates -1 1 0 |
|
March 17, 2003, 14:09 |
Re: Feeding Data using File in Gambit
|
#3 |
Guest
Posts: n/a
|
Dear JKL,
Thanks for the reply. My points are haphazard. If I type the vertices in the order I want them in Gambit, in a file using say Notepad (.txt file), then for reading and executing(i.e. creating) those vertices in the desired Gambit file, How do I proceed?? I mean how to read that .txt file in Gambit? Waiting for your reply. With regards, Sharad |
|
March 18, 2003, 05:48 |
Re: Feeding Data using File in Gambit
|
#4 |
Guest
Posts: n/a
|
As you can read in the section PARAMETRIC JOURNALING WITH GAMBIT go to the Gambit menů:
FILE --> Run Journal... --> Edit/Run Choose using Browse button, the file you've just created. You'd better choose Edit/Run, instead of Run, in the 'Run Journal' window, so that you can select the lines gambit has to execute and you can see what gambit is doing. Don't forget to read/find on the fulent user area the documentation about PARAMETRIC JOURNAL.... Good Luck, Jkl. |
|
March 18, 2003, 06:38 |
Re: Feeding Data using File in Gambit
|
#5 |
Guest
Posts: n/a
|
You could save your xyz points in a file (*.dat) and use the file-import-vertex data menu commands in Gambit to import the points.
I have written a Fortran program to produce the data files for me; I can specify different geometric parameters in the program and the points for that particularly geometry are produced. I use a journal file to import these points, create the geometry from these points, mesh, set boundary conditions and export the mesh file. |
|
March 18, 2003, 14:45 |
Re: Feeding Data using File in Gambit
|
#6 |
Guest
Posts: n/a
|
Thanx again jkl & An Modh Coinniolach!
I will try what you have suggested. Regards, Sharad |
|
March 21, 2003, 14:25 |
Re: Feeding Data using File in Gambit
|
#7 |
Guest
Posts: n/a
|
<font face = "courier new">Another simple way to produce this complex geometry:
(1) Consider columns B,C and D in MS-Excel. (2) Type all your x y and z co-ordinates in B,C and D columns respectively (3) Type "vertex create coordinates" (no quotes) in cell A1 and drag it down all the way down column A. (4) Now you have the following format A B C D vertex create coordinates 0 0 1 vertex create coordinates 1 1 1 etc.. (5) Save this as a text file say "mymesh.txt". (6) Open GAMBIT nad choose "Run journal" from the File menu. The input file would be "mymesh.txt" (7) All the vertices are plotted. If you are working on unix, you can use K-office or star-office where u have similar spread sheet software. </font> |
|
March 24, 2003, 01:49 |
Re: Feeding Data using File in Gambit
|
#8 |
Guest
Posts: n/a
|
Dear Murali,
Thanx a lot for such a nice detailed reply. This is most simple way, you have given! Regards, Sharad |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 | flakid | OpenFOAM Installation | 16 | December 28, 2010 09:48 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
[OpenFOAM] Paraview command not found | hardy | ParaView | 7 | September 18, 2008 05:59 |
PHI file structure | Eugene | Phoenics | 9 | November 2, 2001 23:00 |