|
[Sponsors] |
June 8, 2017, 08:54 |
batch script - window pops up
|
#1 |
New Member
-
Join Date: Jun 2017
Posts: 1
Rep Power: 0 |
Hello,
I have prepared a batch script for my windows machine for preparing several grids. I prepare the first one, then the second one and so on... The problem is that if there is any problem while creating any of these geometries, a window pops up (saying that there was an error) and manually I need to close it... It is really anoying because everything is done in the background unless an error hits... My batch file in windows looks like: @echo off call "C:\\Program Files\\ANSYS Inc\\v150\\icemcfd\\win64_amd\\bin\\icemcfd.bat" -batch -script "meshing_instance_0.rpl call "C:\\Program Files\\ANSYS Inc\\v150\\icemcfd\\win64_amd\\bin\\icemcfd.bat" -batch -script "meshing_instance_1.rpl"" ..... exit Is there any way for avoiding that window when a error hits? Linux would skip to the next file of the script... but windows doesn't! Thanks in advance |
|
February 25, 2019, 05:16 |
|
#2 |
New Member
Martijn
Join Date: Nov 2016
Posts: 13
Rep Power: 9 |
Dear Fer,
Hav you been able to find a solution for this? I have to create 1000+ meshes using a Matlab script and it is very anoying to physically have to click ok when an error pops-up. Generating the meshes over the weekend for example is now not possible. Trying to handle the errors from Matlab does not work for this particular instance. Any help would be highly appreciated! |
|
March 1, 2019, 11:31 |
|
#3 |
Senior Member
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20 |
Hi Martijn,
i don't use icem in batch on windows, so i am not experienced in writing bat files, and therefore can't directly solve your problem ... However, i could propose some workarounds... You might start with cleaning up the tcl (replay) script to handle errors: https://www.tutorialspoint.com/tcl-t...r_handling.htm You might run icem only once and use tcl to loop through your mesh generation while reading some input file generated somewhere else(matlab). Or you could try to use med_batch.exe instead of icemcfd.bat. Med is the actual program doing a lot of the work within the ICEM toolbox, while med_batch is the batch version. However, med_batch.exe is missing some highlevel GUI functions which might be called in your replay script. Therefore, you might still have to clean up your replay script. Best regards, Sebastian |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help using FLUENT in batch mode: script in the Journal file | danobis | FLUENT | 23 | November 26, 2019 23:23 |
script to check convergence in live during a run launched in batch mode | Veronique Pe | CFX | 5 | March 13, 2015 10:15 |
[ICEM] Script file : how to reset all, fit window, etc. | macfly | ANSYS Meshing & Geometry | 0 | July 25, 2012 11:07 |
[ICEM] .msh files via -batch script | despaired student | ANSYS Meshing & Geometry | 0 | May 21, 2012 12:13 |
running OF on local machine with batch script / job scheduler | val46 | OpenFOAM | 13 | November 10, 2010 03:22 |