|
[Sponsors] |
January 29, 2017, 09:53 |
"aie_set_global" error in batch mode
|
#1 |
New Member
Sergey
Join Date: May 2016
Posts: 4
Rep Power: 9 |
Hello everyone!
I'm trying run ICEM in batch mode using replay file I've created earlier using Replay Control. But although replay works perfectly in GUI mode, I keep getting this error invalid command name "aie_set_global" in Windows command line while trying to run prism layer creating command ic_run_prism {} temp_prism0.uns prism.uns params .prism_params log prism_cmd.log n_processors 1 first_layer_smoothing_steps 1 fillet 0.1 max_prism_angle 180 min_prism_quality 0.001 tetra_smooth_limit 0.30000001 family LVLSRF.0 which was generated by ICEM Replay Control, as I mentioned earlier. I've googled this error, but it seems that there's absolutely no information about it so far. I personally have no idea why the same command gets executed in GUI, but throws an error in batch mode. But I'm quite new to ICEM in general and ICEM scripting in particular, so I hope that somebody can give me a hint for solution of this problem. |
|
February 1, 2017, 04:09 |
|
#2 |
Senior Member
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20 |
Hey Sergey,
are you sure it's this line? aie_xxxx is some gui-related function. How do you run the replay file in batch? Would you mind sharing the replay file? With regards, Sebastian |
|
February 1, 2017, 18:19 |
|
#3 |
New Member
Sergey
Join Date: May 2016
Posts: 4
Rep Power: 9 |
Hi, Sebastian!
I'm quite sure that the problem is in ic_run_prism function because after getting an error I've started deleting one line after another in replay file and trying to run it again. And error disappeared after deleting this function. To run script file I used this command in Command Prompt: C:\Program Files\ANSYS Inc\v172\icemcfd\win64_amd\bin\med_batch.exe -batch -script D:\Projects\ICEM\Test_ICEMScript.rpl Replay file is in attachment. I'll be very glad to hear any comment regarding it's content. |
|
February 2, 2017, 06:03 |
|
#4 |
Senior Member
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20 |
Hi Sergey,
i can confirm your problem! And here is the fix: Instead of using ...\icemcfd\win64_amd\bin\med_batch.exe -batch ... use ...\icemcfd\win64_amd\bin\icemcfd.bat -batch ... I don't know why you have used med_batch directly in the first place. Was this recommended somewhere? The bat file is a Script, too, which calls med somewhere, but it also initializes required environment variables, such as the aie-stuff. And it's deciding whether to run in batch or gui mode. With regards, Sebastian |
|
February 2, 2017, 17:48 |
|
#5 |
New Member
Sergey
Join Date: May 2016
Posts: 4
Rep Power: 9 |
Hey, Sebastian!
Thanks a lot for your advise After I've changed med_batch.exe to icemcfd.bat everything works perfect! Why I chose med_batch.exe over icemcfd.bat is a small story filled with lack of knowledge about how generation of geometry and mesh in ICEM is arranged. Many thanks to you once more! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Workbench in batch mode with parametric study (design point) | Veronique Pe | ANSYS | 0 | June 1, 2016 03:56 |
[PyFoam] Problems with the new PyFoam release | zfaraday | OpenFOAM Community Contributions | 13 | December 9, 2014 18:58 |
[PyFoam] having problems with pyfoam Installation | vitorspadetoventurin | OpenFOAM Community Contributions | 3 | December 2, 2014 07:18 |
[ICEM] ICEM CFD error when running in batch mode | bgp723 | ANSYS Meshing & Geometry | 0 | August 14, 2014 13:45 |
to run a replayfile in batch mode from UNIX | froztbear | ANSYS Meshing & Geometry | 4 | May 13, 2014 08:00 |