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

[ICEM] Documentation for basic geometry commands

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By macfly
  • 1 Post By macfly

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2013, 08:05
Question Documentation for basic geometry commands
  #1
New Member
 
Adam Læssøe
Join Date: Nov 2013
Posts: 29
Rep Power: 12
AdamAL is on a distinguished road
Following François Grégoire's advice in another thread, I've begun learning Tcl.

While ICEM's programmers guide is mentioned as poor in that thread, I'm struggling to find even basic documentation for the basic geometric functions. Some slightly more advanced ones are possible to find (there are descriptions for several "ic_geo_"-prefixed commands).

But specifically, I'm looking for documentation on:
  1. ic_point
  2. ic_curve
  3. ic_surface

The documentation does not seem to have any mention of them.

The way I have been moving forward so far is by recording clicks in the gui. But that seems to also set some default flags that gives me a feeling that others might exist.

E.g.:
  • ic_curve is given a list of points - if more than 2 are supplied it makes a bezier-like curve. There might well exist a flag that made it piecewise linear.
  • ic_surface, similarly, can take a list of curves, but there might exist a flag that prevents it from modifying the input curves (I've experienced it concatenating some of them - sometimes).

I've tried e.g.
Code:
info args ic_surface
But that just returns "args" - not very helpful.

Then I tried:
Code:
info body ic_surface
But the procedure body returned seems to be some sort of wrapper that reroutes to
Code:
in_ic_surface $args
, which I can't figure out how to access.

So: Does any one here know of alternative documentation channels where these basic commands are documented?

/adam
AdamAL is offline   Reply With Quote

Old   November 20, 2013, 15:15
Default
  #2
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
What I'm doing to 'get by': I type ic_curve alone and Icem returns Error: wrong # args: should be "ic_curve method part name def args", then I go in the Icem programmer's guide and I look for method, part, name, def and args... It's annoying but it's the only way I found.

I wonder if we are supposed to not use commands that are not in the programmer's guide. For example, ic_point is not in the guide but there is ic_geo_cre_pnt, is the latter supposed to be better? Same for ic_curve VS ic_geo_cre_line...?
AdamAL likes this.

Last edited by macfly; November 20, 2013 at 16:51.
macfly is offline   Reply With Quote

Old   November 21, 2013, 07:30
Default
  #3
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 25
stuart23 will become famous soon enoughstuart23 will become famous soon enough
Quote:
Originally Posted by AdamAL View Post
But specifically, I'm looking for documentation on:
  1. ic_point
  2. ic_curve
  3. ic_surface
Hi Adam,

In the programmers guide, look for ic_geo_cre_pnt, ic_geo_cre_line, ic_geo_create_surface_from_curves in the programmers guide. These commands also have demo scripts in the samples folder of the ICEM install. The programmers guide will tell you where to find them.

These commands are probably fine for most applications. Of course there are many other options for creating curves and surfaces though, such as elipses, b-splines, swept surfaces, extrudes, revolves, etc etc.


Stu
stuart23 is offline   Reply With Quote

Old   November 21, 2013, 07:35
Default
  #4
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 25
stuart23 will become famous soon enoughstuart23 will become famous soon enough
Hi Francois,

In my experience, both work equally well.

I think the equivalent of ic_curve is ic_geo_cre_bsp_crv_n_pnts, because
ic_geo_cre_line will not create splines like ic_curve.

Stu

stuart23 is offline   Reply With Quote

Old   November 21, 2013, 18:28
Default
  #5
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
Hi Stuart,

You're right ic_geo_cre_bsp_crv_n_pnts is more versatile.

Adam, here's a linear polyline, very convenient:
Code:
ic_geo_cre_pnt POINTS p1 {0 0 0} 
ic_geo_cre_pnt POINTS p2 {1 0 0} 
ic_geo_cre_pnt POINTS p3 {1 1 0} 
ic_geo_cre_pnt POINTS p4 {0 1 0} 
ic_geo_cre_bsp_crv_n_pnts CURVES c1 {p1 p2 p3 p4 p1} 0.0010 1
AdamAL likes this.
macfly is offline   Reply With Quote

Reply

Tags
documentation, icem, scripting, tcl


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
CoCoons Project - Community-driven Documentation on OpenFOAM® Technology holger_marschall OpenFOAM Announcements from Other Sources 6 February 2, 2022 14:42
Question about Geometry vs. Meshes EphemeralMemory ANSYS Meshing & Geometry 2 December 8, 2016 13:02
Doxygen documentation Tanay OpenFOAM Installation 9 September 23, 2011 11:40


All times are GMT -4. The time now is 01:38.