CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

[ICEM] Problem in geometry creation by script

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2010, 07:54
Default Problem in geometry creation by script
New Member
Join Date: Mar 2010
Posts: 13
Rep Power: 16
lavoz is on a distinguished road
Dear Forum,

I'm trying to set up a geometry by script and ran into a problem when I tried to create surfaces by "4 Points". A small example, where the first surface is created and the second one isn't:

ic_geo_new_family INT_Z-F
ic_surface 4pts INT_Z-F srf.03 {POINTS.03 POINTS.04 POINTS.08 POINTS.07}
ic_surface 4pts INT_Z-F srf.04 {POINTS.02 POINTS.03 POINTS.07 POINTS.06}

Through the entire script, the first few surface creations run smoothly, but now and then, though giving the hopefully correct and exactly same command once more, nothing happens. And no error message is plotted, there's just no new surface.

To make it funnier, it doesn't happen everytime, only when ICEM was just started anew. And the problem goes away, when I mess around a little bit with the view in the model tree.

By the way, I couldn't find a possibility to create surfaces of more than 4 points or curves, icem always complains and does nothing or creates ugly surfaces...

I'd really appreciate any help very much.
Attached Files
File Type: txt myownPaket.txt (2.5 KB, 51 views)
lavoz is offline   Reply With Quote

Old   March 11, 2010, 19:50
Default Hmm?
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, surfaces 4, 5, 7, 8 and 10 were missing when I ran it the first time...

Perhaps you are missing some initialization stuff...

Try recording a live session where you create points and surfaces... Do you see any extra initialization commands that you may want to include?

I will ask around here and see if I get any good feedback...
PSYMN is offline   Reply With Quote

Old   March 12, 2010, 08:54
Default solved
New Member
Join Date: Mar 2010
Posts: 13
Rep Power: 16
lavoz is on a distinguished road
First of all, thank you for your answer Mr. Pereira.

The problem wasn't in the script, and it took me a while to get it, but it's simply the magnitude of the variable input. ICEM has problems with surfaces, that are too small. I thought of a hundred else things but this is a little bit uncommon.

The script I attached above is working, when you change the sizes of the input values to a higher magnitude. In any other case you'd have to use a real workaround.
lavoz is offline   Reply With Quote

Old   March 12, 2010, 09:35
Join Date: Mar 2009
Posts: 52
Rep Power: 17
Anorky is on a distinguished road
Hi lavoz,

I have been playing around with your script.
Indeed the problem was the small values you used as input for your variables.
One way indeed is to increase them to a higher value however there is another way around.
If you want to use your original input values, put the following code in the beginning of your script:

ic_set_meshing_params global 0
ic_set_meshing_params global 0 gttol 0.001 gtrel 1

Or manually set the model topo tolerance to a lower value.
Go to settings>model>topo tolerance
The value 2e-06 worked for me.

If you don't do this and you run the original script the value is 2e-05.

Anyway resetting the model topo tolerance and recording the action in the replay window will result in the code above.

Good luck,
Anorky is offline   Reply With Quote

Old   March 12, 2010, 10:56
Default Thanks
New Member
Join Date: Mar 2010
Posts: 13
Rep Power: 16
lavoz is on a distinguished road
Thank you Anorky, for this smoother solution.
lavoz is offline   Reply With Quote


geometry, icem, script, surface

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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] O-grid around wing geometry Anorky ANSYS Meshing & Geometry 15 November 27, 2017 13:43
Table script problem Scibor Siemens 0 April 30, 2007 05:10
Cooling simple 3D geometry problem Luk FLUENT 4 May 12, 2006 09:47
Need help with a geometry problem > Yumi FLUENT 1 February 25, 2006 19:06
Geometry setup for phase change problem Fred G. Kang Main CFD Forum 1 October 14, 1998 11:41

All times are GMT -4. The time now is 12:42.