CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [ICEM] "aie_set_global" error in batch mode (https://www.cfd-online.com/Forums/ansys-meshing/183188-aie_set_global-error-batch-mode.html)

zgkr January 29, 2017 09:53

"aie_set_global" error in batch mode
 
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. :)

bluebase February 1, 2017 04:09

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

zgkr February 1, 2017 18:19

1 Attachment(s)
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. :)

bluebase February 2, 2017 06:03

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

zgkr February 2, 2017 17:48

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!


All times are GMT -4. The time now is 14:29.