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

[ICEM] "aie_set_global" error in batch mode

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By bluebase

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2017, 10:53
Default "aie_set_global" error in batch mode
  #1
New Member
 
Sergey
Join Date: May 2016
Posts: 4
Rep Power: 9
zgkr is on a distinguished road
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.
zgkr is offline   Reply With Quote

Old   February 1, 2017, 05:09
Default
  #2
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20
bluebase will become famous soon enough
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
bluebase is offline   Reply With Quote

Old   February 1, 2017, 19:19
Default
  #3
New Member
 
Sergey
Join Date: May 2016
Posts: 4
Rep Power: 9
zgkr is on a distinguished road
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.
Attached Files
File Type: txt Test_ICEMScript.txt (42.7 KB, 9 views)
zgkr is offline   Reply With Quote

Old   February 2, 2017, 07:03
Default
  #4
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20
bluebase will become famous soon enough
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 likes this.
bluebase is offline   Reply With Quote

Old   February 2, 2017, 18:48
Default
  #5
New Member
 
Sergey
Join Date: May 2016
Posts: 4
Rep Power: 9
zgkr is on a distinguished road
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!
zgkr is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Workbench in batch mode with parametric study (design point) Veronique Pe ANSYS 0 June 1, 2016 04:56
[PyFoam] Problems with the new PyFoam release zfaraday OpenFOAM Community Contributions 13 December 9, 2014 19:58
[PyFoam] having problems with pyfoam Installation vitorspadetoventurin OpenFOAM Community Contributions 3 December 2, 2014 08:18
[ICEM] ICEM CFD error when running in batch mode bgp723 ANSYS Meshing & Geometry 0 August 14, 2014 14:45
to run a replayfile in batch mode from UNIX froztbear ANSYS Meshing & Geometry 4 May 13, 2014 09:00


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