CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

[GAMBIT] Imported surfaces identification in Gambit??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2012, 06:24
Default Imported surfaces identification in Gambit??
  #1
Member
 
Jorge Muņoz
Join Date: Apr 2009
Posts: 56
Rep Power: 17
L3munoz is on a distinguished road
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...
L3munoz is offline   Reply With Quote

Old   January 9, 2012, 07:03
Default
  #2
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
can't you identify the vertices and edges in terms of approximate x,y,z location? or simply rename them in gambit according to their respective position.
Far is offline   Reply With Quote

Old   January 9, 2012, 07:09
Default
  #3
Member
 
Jorge Muņoz
Join Date: Apr 2009
Posts: 56
Rep Power: 17
L3munoz is on a distinguished road
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...
L3munoz is offline   Reply With Quote

Old   January 9, 2012, 07:13
Default
  #4
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
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
Far is offline   Reply With Quote

Old   January 9, 2012, 07:25
Default
  #5
Member
 
Jorge Muņoz
Join Date: Apr 2009
Posts: 56
Rep Power: 17
L3munoz is on a distinguished road
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...
L3munoz is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -4. The time now is 18:03.