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

[Workbench] Run ICEM Script in Workbench Script

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 17, 2015, 12:09
Default Run ICEM Script in Workbench Script
  #1
New Member
 
Michelangelo
Join Date: Apr 2015
Posts: 11
Rep Power: 4
MIZOR is on a distinguished road
Hi User,

What's the command script in Workbench Scripting to run a ICEM journal?


Because I'm doing a optimization in WB and I have to control all program with a WB script. I use DesignModeler to generate geometry and then I'll pass the information to ICEM and I generate mesh with a ICEM script.
But I don't know run ICEM script in WB script, for DesignModeler the command is RunScript(file path) but for ICEM I don't know.

Thank you

MIZOR
MIZOR is offline   Reply With Quote

Old   October 4, 2016, 11:18
Default
  #2
New Member
 
Johannes Hall
Join Date: Sep 2016
Posts: 21
Rep Power: 2
yonpanman is on a distinguished road
I'm having the same problem, been trying to look for a way to run an ICEM script or journal from Workbench but I can't seem to find how to do it. Did you have any luck?

Regards
yonpanman is offline   Reply With Quote

Old   October 6, 2016, 16:42
Default
  #3
New Member
 
Michelangelo
Join Date: Apr 2015
Posts: 11
Rep Power: 4
MIZOR is on a distinguished road
Hi,
try with follow command:

icempath = "yourdirectory/icemscript.rpl"
script = open (icempath, "r")
array = [ ]
for line in script :
array.append (line)
script.close ( )

Version 14.5 Ansys Workbench
MIZOR is offline   Reply With Quote

Old   October 7, 2016, 02:16
Default
  #4
New Member
 
Johannes Hall
Join Date: Sep 2016
Posts: 21
Rep Power: 2
yonpanman is on a distinguished road
Thank you Mizor, I will try it out

Regards
yonpanman is offline   Reply With Quote

Old   June 22, 2017, 13:20
Default
  #5
New Member
 
Levente Lázár
Join Date: Oct 2016
Posts: 8
Rep Power: 2
LLevente is on a distinguished road
Hi guys,

I have an ICEM script, that works well, if I open the ICEM, but I would like to run this script in workbench.
I tried this workbench journal, what Mizor wrote, and I didn't get any error message, so it can run , but it didn't make the meshing.

Code:
# encoding: utf-8
# Release 17.0
SetScriptVersion(Version="17.0.323")
icempath = "mypath/ICM.rpl"
script = open (icempath, "r")
array = [ ]
for line in script :
	array.append (line)
script.close ( )
What else should I write?

Thanks
Levente
LLevente is offline   Reply With Quote

Old   June 22, 2017, 18:49
Default
  #6
New Member
 
Michelangelo
Join Date: Apr 2015
Posts: 11
Rep Power: 4
MIZOR is on a distinguished road
I levente,

your script work well in ICEM?
You can try use only ICEM to test script.
MIZOR is offline   Reply With Quote

Old   June 23, 2017, 03:52
Default
  #7
New Member
 
Levente Lázár
Join Date: Oct 2016
Posts: 8
Rep Power: 2
LLevente is on a distinguished road
Hi Mizor,
thanks for the quick answer!

The Icem script works perfect, if I run it in Icem.
Also, if I update the project in workbench (and the mesh is not ready).
By the way, the Icem script begins with Close Mesh.

It could be good too maybe, if the Workbench script opens the Icem, and automatically runs the Icem script.

The aim is, that I dont have to click on icem and wait until he opens, and after that click on the "Run script". Just: I am in Workbench, then press Enter (or click on sg) and until the simulation works everything.

Thanks
LLevente is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] launch ICEM replay file from wb script cillo273 ANSYS Meshing & Geometry 1 July 19, 2015 02:47
[ICEM] Remeshing script using ICEM CFD replay mateusdias89 ANSYS Meshing & Geometry 2 February 15, 2015 15:18
[ICEM] ICEM CFD script CFD-1987 ANSYS Meshing & Geometry 3 June 5, 2012 07:56
[ANSYS Meshing] Problem with Icem Script Krish ANSYS Meshing & Geometry 0 October 18, 2011 12:10
ICEM CFD in Workbench marek CFX 1 February 15, 2008 11:35


All times are GMT -4. The time now is 13:09.