|
[Sponsors] |
[Workbench] Run ICEM Script in Workbench Script |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 17, 2015, 13:09 |
Run ICEM Script in Workbench Script
|
#1 |
New Member
Michelangelo
Join Date: Apr 2015
Posts: 17
Rep Power: 11 |
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 |
|
October 4, 2016, 12:18 |
|
#2 |
New Member
Johannes Hall
Join Date: Sep 2016
Posts: 21
Rep Power: 10 |
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 |
|
October 6, 2016, 17:42 |
|
#3 |
New Member
Michelangelo
Join Date: Apr 2015
Posts: 17
Rep Power: 11 |
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 |
|
October 7, 2016, 03:16 |
|
#4 |
New Member
Johannes Hall
Join Date: Sep 2016
Posts: 21
Rep Power: 10 |
Thank you Mizor, I will try it out
Regards |
|
June 22, 2017, 14:20 |
|
#5 |
New Member
Levente Lázár
Join Date: Oct 2016
Posts: 9
Rep Power: 10 |
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 ( ) Thanks Levente |
|
June 22, 2017, 19:49 |
|
#6 |
New Member
Michelangelo
Join Date: Apr 2015
Posts: 17
Rep Power: 11 |
I levente,
your script work well in ICEM? You can try use only ICEM to test script. |
|
June 23, 2017, 04:52 |
|
#7 |
New Member
Levente Lázár
Join Date: Oct 2016
Posts: 9
Rep Power: 10 |
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 |
|
April 1, 2018, 11:59 |
|
#8 |
New Member
Mengjie Zhao
Join Date: Jun 2016
Posts: 1
Rep Power: 0 |
Hi LLevente,
I'm currently facing the same problem as you do, did you find a solution to solve this? |
|
April 4, 2018, 03:56 |
|
#9 |
New Member
Levente Lázár
Join Date: Oct 2016
Posts: 9
Rep Power: 10 |
I can not find it.
|
|
April 4, 2018, 08:45 |
|
#10 |
Member
CT
Join Date: May 2016
Location: Turkey
Posts: 32
Rep Power: 10 |
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. |
|
|
|
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 03: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 08:56 |
[ANSYS Meshing] Problem with Icem Script | Krish | ANSYS Meshing & Geometry | 0 | October 18, 2011 13:10 |
ICEM CFD in Workbench | marek | CFX | 1 | February 15, 2008 11:35 |