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

[ICEM] Importing a set of triangles into ICEM CFD

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 9, 2009, 01:02
Thumbs down Importing a set of triangles into ICEM CFD
  #1
New Member
 
Ram Ranjan
Join Date: Jun 2009
Posts: 4
Rep Power: 17
rambabu is on a distinguished road
Hi
I want to create a set of triangles in ICEM CFD. Information available to me is the vertex coordinates and connectivity of each triangle. I tried doing .stl file but it makes one whole surface out of all triangles which I do not want. I could not create a .tin file (from information on its syntax available on internet ) which could be imported into ICEM. Is there an easy way which I am missing?
Is it possible to triangulate a set of vertices imported into ICEM?
Thanks a lot for any help!
- Ram
rambabu is offline   Reply With Quote

Old   November 9, 2009, 21:55
Default Hmm...
  #2
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
I am not really clear on what you want to do, but perhaps you could create a script that would create the triangles in ICEM CFD from a list of points taking them three at a time?

If you can explain more, I may have a better idea of your end goal and provide another solution.
PSYMN is offline   Reply With Quote

Old   November 9, 2009, 22:02
Default thank you very much
  #3
New Member
 
Ram Ranjan
Join Date: Jun 2009
Posts: 4
Rep Power: 17
rambabu is on a distinguished road
Writing a script file would be excellent and very much similar to what journal files do in case of gabmit. I was unable to find a suitable reference which talk about generating these script files. Can you point me to right reference?

TIA.
rambabu is offline   Reply With Quote

Old   November 9, 2009, 22:05
Default problem
  #4
New Member
 
Ram Ranjan
Join Date: Jun 2009
Posts: 4
Rep Power: 17
rambabu is on a distinguished road
The problem is as simple as: importing a set of triangles - grouping them as a surface (in order to prescribe same boundary condition on those triangles); importing another set of triangles and then grouping them again. In gambit, I do this by creating a .jou file (I can create faces from vertices and then group faces). I generate that jou file using Matlab. Can a similar thing be done in ICEM CFD?
rambabu is offline   Reply With Quote

Old   November 12, 2009, 18:10
Default Programmers guide.
  #5
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
Yes, ICEM CFD uses replay scripting. It is all tcl based, can batch drive the software, and doesn't change from release to release.

To get started, I recommend turning on the replay functionality and working interactively. This will give you a good idea of the command structure. You can then find out more about any command or about working with ICEM CFD scripting in general by looking in the Programmers Guide (under Help in ICEM CFD).

For instance, go into ICEM CFD, turn on the replay control window (will record commands). Then Import an STL file and assign it to a certain part...

1. ic_file_is_ascii {C:/My Documents/demo/TrumpetVHsc.stl}
2. ic_run_application_exec . icemcfd/output-interfaces stl2df {"C:/My Documents/demo/TrumpetVHsc.stl" "./tmpdomain0.uns" -fam TRUMPETVHSC}
4. ic_geo_import_mesh ./tmpdomain0.uns 1 1

11. ic_geo_set_part surface TRUMPETVHSC/0 TRUMPET 0
12. ic_geo_delete_family TRUMPETVHSC

The first few lines are about importing the STL file. Then line 11 is about putting its surface into a new part (called Trumpet). Then line 12 is about deleting the old part...

If you need more scripting help, I can give you the names of the best ICEM CFD tech support person near you. If you are in India, I recommend Lalan Singh in our Bangalore office.
PSYMN is offline   Reply With Quote

Old   November 12, 2009, 18:13
Default Process? End goal?
  #6
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
One more thought...

You haven't explained what your end goal is yet, but I suspect this is the hard way to get there with ICEM CFD.

If we talk a bit more about what you want to do, perhaps we can tell you the easiest way to get there with ICEM CFD instead of just trying to replicate your Gambit process.

Where are these triangles coming from?
PSYMN is offline   Reply With Quote

Reply

Tags
gambit, icem cfd, importing data, meshing


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
icem cfd ai environment 11.0, laptop keyboard problem, linux pertupd Hardware 3 October 3, 2011 09:27
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 05:27
How to set environment variables kanishka OpenFOAM Installation 1 September 4, 2005 11:15
Mesh from ICEM CFD to CFX ! Error ! Why ? Thanks ! Vu Trinh Tuan CFX 11 March 28, 2005 20:04


All times are GMT -4. The time now is 14:04.