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

[ICEM] scrip file too long

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2017, 09:58
Default scrip file too long
  #1
New Member
 
Join Date: Mar 2017
Posts: 10
Rep Power: 9
shrikant.p is on a distinguished road
hi I writing script file but it is too long to it is right now 7000 command ,i want to reduce this command, but don't know what command should i delete. please anybody knows that tell me.
shrikant.p is offline   Reply With Quote

Old   October 25, 2017, 07:13
Default
  #2
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20
bluebase will become famous soon enough
Hi shrikant,

first of all, try using the clean-up command (in the replay control window). It will clean up the file from unnecessary commands. But beware, if you have done any undos, the clean up feature will not remove unwanted functions. Then you need to correct the script manually.

If you want to do something more comprehensive, then start reading about the interpreter language "tcl". This is the language in which the ICEM GUI and the replay scripts are written.

The ICEM programming manual might help a little bit, in order to destinguish between native commands and ICEM specifc commands. However, i think this will be clear after you have done a few tutorials on tcl.

If you come to a point, where this sources of information will not help you, put the string "break" into a line to stop a script at that specifc point while running it. That way you can find out yourself what part of the script does what regarding you meshing.

Feel free to ask specific further questions.


In short:
  1. Learn about tcl
  2. Learn about ICEM specific scripting
  3. Test what function in your script corresponds to what GUI interaction.

Best regards,
Sebastian

If you have commercial background, i could offer comprehensive help upon request.
bluebase is offline   Reply With Quote

Old   October 25, 2017, 11:17
Default
  #3
New Member
 
Join Date: Mar 2017
Posts: 10
Rep Power: 9
shrikant.p is on a distinguished road
sir, It run script file upto some command then shows error " select 2 location"
but when i click right mouse button their it will execute the command for one line and so on.
shrikant.p is offline   Reply With Quote

Old   October 25, 2017, 11:18
Default
  #4
New Member
 
Join Date: Mar 2017
Posts: 10
Rep Power: 9
shrikant.p is on a distinguished road
second thing I can not able to find filter option. If possible please send screen shot of "how to clean the filter in script".
shrikant.p is offline   Reply With Quote

Old   October 26, 2017, 12:14
Default
  #5
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20
bluebase will become famous soon enough
Hi shrikant,

"select 2 locations" might not be an error. It could be the request to interactively pick 2 locations in the GUI (such as points). There is a function which calls the ICEM routine to get into the "pick mode". By clicking right you might just cancel this mode. The script would then just continue with the rest of the script.

Regarding the clean up. Open your replay control. In that window there is button called "clean".

With regards,
Sebastian
bluebase is offline   Reply With Quote

Old   October 26, 2017, 23:35
Default
  #6
New Member
 
Join Date: Mar 2017
Posts: 10
Rep Power: 9
shrikant.p is on a distinguished road
Thank you sir but, i tried to select two points it wont select, it is related to blocking i think.
how to use clean or filter function can you send me screenshot if possible.
shrikant.p is offline   Reply With Quote

Old   October 27, 2017, 06:49
Default
  #7
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20
bluebase will become famous soon enough
Dear shrikant,

as i wrote in my first answer, i believe, you need to step back once and engage a little bit more with ICEM and its scripts, how it works. (I know, it's not easy, but possible)
An additional option would be to elaborate your question more. e.g. posting code snippets, logs, screenshots,... this increases the chance of getting an answer and solution, although not garantueed. I am sure this is also explained in the sticky post for new users of this subforum.

Regarding the clean option for replay scripts, search the ICEM help manual. There you'll find information.

Path in ANSYS Help Viewer: ICEM CFD > Help Manual > Main Menu Area > File Menu > Replay Scripts

With regards,
Sebastian

bluebase 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
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 10:03
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 06:42
Missing math.h header Travis FLUENT 4 January 15, 2009 11:48
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


All times are GMT -4. The time now is 19:02.