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

[ICEM] Script file runs slowly

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2016, 15:38
Default Script file runs slowly
  #1
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
Hi,

I run a script that creates hundreds of surfaces with the command ic_surface 4pts:
Code:
ic_geo_new_family SURFACES
ic_surface 4pts SURFACES surf.0001 {{0.2500 0.3000 0.2500} {0.2500 0.5000 0.2500} {0.2500 0.5000 0.9080} {0.2500 0.3000 0.9080}}
ic_surface 4pts SURFACES surf.0002 {{1.7680 0.3000 0.2500} {1.7680 0.5000 0.2500} {1.7680 0.5000 0.9080} {1.7680 0.3000 0.9080}}
ic_surface 4pts SURFACES surf.0003 {{0.2500 0.5000 0.2500} {0.2500 0.7000 0.2500} {0.2500 0.7000 0.9080} {0.2500 0.5000 0.9080}}
...
...
...
The script runs fast at the beginning but it slows down as the number of surfaces grows. At some point it gets very slow, it can take 1 second to generate a single surface. It's like ICEM is clogging up as more and more surfaces are created. My CPU or memory use doesn't increase, the problem seems to be within ICEM.
Is there a way to 'unclog' ICEM when running a large script file?
macfly is offline   Reply With Quote

Old   December 7, 2016, 01:06
Default
  #2
Senior Member
 
Join Date: Feb 2011
Posts: 496
Rep Power: 18
Antanas is on a distinguished road
Quote:
Originally Posted by macfly View Post
Hi,

I run a script that creates hundreds of surfaces with the command ic_surface 4pts:
Code:
ic_geo_new_family SURFACES
ic_surface 4pts SURFACES surf.0001 {{0.2500 0.3000 0.2500} {0.2500 0.5000 0.2500} {0.2500 0.5000 0.9080} {0.2500 0.3000 0.9080}}
ic_surface 4pts SURFACES surf.0002 {{1.7680 0.3000 0.2500} {1.7680 0.5000 0.2500} {1.7680 0.5000 0.9080} {1.7680 0.3000 0.9080}}
ic_surface 4pts SURFACES surf.0003 {{0.2500 0.5000 0.2500} {0.2500 0.7000 0.2500} {0.2500 0.7000 0.9080} {0.2500 0.5000 0.9080}}
...
...
...
The script runs fast at the beginning but it slows down as the number of surfaces grows. At some point it gets very slow, it can take 1 second to generate a single surface. It's like ICEM is clogging up as more and more surfaces are created. My CPU or memory use doesn't increase, the problem seems to be within ICEM.
Is there a way to 'unclog' ICEM when running a large script file?
Maybe it's because of drawing?
Antanas is offline   Reply With Quote

Old   December 7, 2016, 01:15
Default
  #3
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14
Kapi is on a distinguished road
Ansys can handle given number of edges and faces at a given time which has improved considerably over the years with every new update.

I would suggest you to break your script in multiple parts and run it.
Also if you are doing like named selection and selecting all the faces you want and in exceeds certain limit then you should re-think that as well and break in into multiple named selection.

You can see when it is selection faces and edges in the bar below, mark after how many faces or edges it is slowing down and you can use that as number.

personally I dont have any trouble handling 4K+ faces at a given time with Ansys 17
Kapi is offline   Reply With Quote

Old   December 7, 2016, 03:51
Default
  #4
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
Quote:
Originally Posted by Kapi View Post
I would suggest you to break your script in multiple parts and run it.
You mean break my script into multiple scripts? Load part 1 of the script, run it, then load part 2 of the script, run it, and so on..? I had thought of that but didn't try yet.
macfly is offline   Reply With Quote

Old   December 7, 2016, 09:49
Default
  #5
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21
bluebase will become famous soon enough
Quote:
Originally Posted by macfly View Post
You mean break my script into multiple scripts? Load part 1 of the script, run it, then load part 2 of the script, run it, and so on..? I had thought of that but didn't try yet.
Make sure, you don't record the commands when you run a script.



Another option is to run your script in batch mode. Just add a few commands that the script will save the geometry. To run icem in batchmode you have to start it from command line in the following structure "icemcfd -batch -script myscript.tcl". Then you may avoid all the drawing necessary, which might have slowed down your script.

With regards,
Sebastian
bluebase is offline   Reply With Quote

Old   December 7, 2016, 18:53
Default
  #6
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14
Kapi is on a distinguished road
yes Macfly,

thats exactly what I mean.
I break my model in different set of bodies.
Draw them all thru different script via batch file one after other.

give it a go and see how it pans out for ya!
Kapi 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
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 07:42
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 22:50.