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

[Workbench] Run ICEM Script in Workbench Script

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2015, 12:09
Default Run ICEM Script in Workbench Script
  #1
New Member
 
Michelangelo
Join Date: Apr 2015
Posts: 17
Rep Power: 11
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: 9
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: 17
Rep Power: 11
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: 9
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: 9
Rep Power: 9
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: 17
Rep Power: 11
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: 9
Rep Power: 9
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

Old   April 1, 2018, 10:59
Default
  #8
New Member
 
Mengjie Zhao
Join Date: Jun 2016
Posts: 1
Rep Power: 0
Mengjie is on a distinguished road
Hi LLevente,

I'm currently facing the same problem as you do, did you find a solution to solve this?
Mengjie is offline   Reply With Quote

Old   April 4, 2018, 02:56
Default
  #9
New Member
 
Levente Lázár
Join Date: Oct 2016
Posts: 9
Rep Power: 9
LLevente is on a distinguished road
I can not find it.
LLevente is offline   Reply With Quote

Old   April 4, 2018, 07:45
Default
  #10
Member
 
CT
Join Date: May 2016
Location: Turkey
Posts: 32
Rep Power: 9
cturutoglu is on a distinguished road
If there's a replay named after the ICEM project directory inside the directory itself, workbench will automatically run the replay file when you update.

So if there's an ICM-1.rpl inside Workbench_files/dp0/ICM-1 folder, ICEM should automatically use that replay when you update from workbench. You don't need to put special commands in wbpj file . . . at least that's how I do it.
cturutoglu 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
[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 14: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 10:35


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