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

[ICEM] Error with tcl script occuring sometimes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2018, 02:56
Default Error with tcl script occuring sometimes
  #1
Member
 
Michal
Join Date: May 2017
Posts: 35
Rep Power: 8
michal.s is on a distinguished road
Hello everybody!

I have some problem with scripting ICEM CFD.
My script usually works well without any issues, this problem happens only sometimes on our cluster (on other computer works well all the time).
I run CFD using batch command with the *.tcl script. Sometimes while excecuting ICEM crashes with the error (shown below).
ICEM version 15.0 or 19.1 - doesn't matter.


Screen:

https://imgur.com/a/4aGqudU


Anybody could suggest how to solve it?


Best regards,
M
michal.s is offline   Reply With Quote

Old   November 6, 2018, 08:21
Default
  #2
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20
bluebase will become famous soon enough
Hi Michal,


could you share the head of your script, until line 57.

Alternatively,share the parts where you set the variable err and the variable ret?


So, it seems the variable err is true in your case and tries to raise an error.
There might be some command left in the ret variable.




Best regards,
Sebastian

best regards,
Sebastian
bluebase is offline   Reply With Quote

Old   November 6, 2018, 08:30
Default
  #3
Member
 
Michal
Join Date: May 2017
Posts: 35
Rep Power: 8
michal.s is on a distinguished road
Hi Sebastian


Quote:
if {$case==1} {
set dw $do
}
### GEOMETRY
ic_set_global geo_cad 0 toptol_userset
ic_set_global geo_cad 0.0 toler
ic_geo_new_family GEOM
The last line from the part above is the line 57 from my script. All lines being before are just comments and variables definition like:
Quote:
set do 6.0
set dw 5.0
In my script I don't have variables "err" or "ret" to be clear. I don't really know what is it about.


Best regards,
M
michal.s is offline   Reply With Quote

Old   November 6, 2018, 09:34
Default
  #4
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20
bluebase will become famous soon enough
Quote:
Originally Posted by michal.s View Post
In my script I don't have variables "err" or "ret" to be clear. I don't really know what is it about.

I see...


So there must be something going wrong with

Code:
ic_geo_new_family GEOM
But i can't imagine what.


It never has been any issue in my work, anyways: do you work in different operating systems, such as windows and linux?
Are the issues only occuring on a specific os?

By any chance, are you using Notepad++?
I could reproduce a similar error when using UTF8-BOM encoding. Plain UTF8 seems to be no problem. Can you try to save your script in UTF8 without BOM


Best regards,
Sebastian
bluebase is offline   Reply With Quote

Old   November 6, 2018, 09:40
Default
  #5
Member
 
Michal
Join Date: May 2017
Posts: 35
Rep Power: 8
michal.s is on a distinguished road
I work on Windows Server 2012.
The strangest thing is that it usually works and crashes only sometimes. It's a little bit annoying because I run simulations one by one and that issue stops whole process.
I use Notepad++. I will try with different oding, thank you for involvement!
michal.s 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
Split connectors at their intersection FOUAD12 Pointwise & Gridgen 3 October 8, 2018 10:42
[Workbench] Run ICEM Script in Workbench Script MIZOR ANSYS Meshing & Geometry 9 April 4, 2018 07:45
[ICEM] Tcl script problem : can't insert a list into a blocking command macfly ANSYS Meshing & Geometry 0 March 5, 2016 11:59
CentFOAM Python Script Installation: Error socon009 OpenFOAM Installation 2 May 26, 2012 09:36
Error in Tcl script Haider Fidelity CFD 2 October 5, 2007 01:44


All times are GMT -4. The time now is 00:57.