|
[Sponsors] |
[GAMBIT] Imported surfaces identification in Gambit?? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 9, 2012, 06:24 |
Imported surfaces identification in Gambit??
|
#1 |
Member
Jorge Muņoz
Join Date: Apr 2009
Posts: 56
Rep Power: 17 |
Hi everybody!
I need your help cause honestly I'm desperated!!! Here's the deal. I'm working with Gambit and I need to import a model (IGES or STP file) to work laterly with it. Since I'm running an optimization task, I need to write a journal to run automatically. The problem is that for each optimal candidate the name of the surfaces, edges and vertices are different, so there is no way to call them automatically. Obviously all the models have the same surfaces and edges, although their shape is different. I realized vertices are imported and sorted according to its Z, Y and X coordinate value, being vertex.1 that which has the lowest value of Z, and so on. This is a clue that might help me to fix the problem, but I cannot get information of the edges of my model, to know which vertices they have. Actually, I can, using edge summarize "edge.N" but I cannot load this information on a variable or array to be used. If there were any way to identify each edge and surface in order to know which is its name to deal with it in the journal... Any idea?? Thanks in advance... |
|
January 9, 2012, 07:09 |
|
#3 |
Member
Jorge Muņoz
Join Date: Apr 2009
Posts: 56
Rep Power: 17 |
Hi! thanks for your help!
Identify the vertices is fine, I can write the gambit journal in matlab, so as input I can give the standard label of each vertice and then identify the gambit-label with the standard one. Then the edges I don't know...what do you mean to their respective position? I don't know how to handle the edge information I get from summarize, so I cannot identify them by their x,y,z location or position... |
|
January 9, 2012, 07:13 |
|
#4 |
Super Moderator
|
when you are making the optimization study, then there must be some geometric features which need to be studied and they are similar to each other. you can rename them in gambit, for example
x1,y1,z1>>>>vertex 1(gambit default name) >>>>> vertex a (renamed vertex) x2,y2,z2>>>>>vertex 13>>>>> vertex b similarly edge 1 made by vertex a and vertex b and therefore you rename it to edgeab. may be you need to use the if-else and to speed up process do loops as well |
|
January 9, 2012, 07:25 |
|
#5 |
Member
Jorge Muņoz
Join Date: Apr 2009
Posts: 56
Rep Power: 17 |
Yes, that's the idea. About the vertices ok, solved. But the problem is that edges in gambit are not always defined by the same vertices. I don't know a priori how is made edge1, because sometimes is with vertices (gambitname) 1 and 2, and others 5 and 6. If I don't get information of the edge from gambit I cannot go on...
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Import surfaces with mesh from Gambit | Peter | FLUENT | 3 | July 19, 2007 18:00 |
gambit: generate mesh from premeshed surfaces | Ralf Schmidt | FLUENT | 2 | August 23, 2006 06:43 |
Can model made in Airpak been imported in gambit | lei | FLUENT | 4 | April 19, 2003 08:02 |
define faces within GAMBIT in imported mesh | Elmar | FLUENT | 0 | February 25, 2001 07:10 |
Dead cells created on edges when a grid file is generated in GAMBIT and imported into FLUENT4 | Isaac Manohar Ch. | FLUENT | 1 | June 2, 2000 04:58 |