How to increase Stack Size when starting ANSYS Batch?
2 views (last 30 days)
Show older comments
Dear all,
I am facing problems when trying to perform an Ansys calculation via a Batch file started from Matlab. I simply start the Batch file like this:
system('"BATCH.bat"');
Ansys starts bulding the model and ends just when starting to calculate the model. If I start the Batch file directly from the cmd there is no problem. Evene starting it with VBA from Excel it works fine. I even tried the way to start the vba command in excel from matlab, this failed again.
So I guess it has to do something with how Matlab starts the Batch file or any other external programm. Is there any space restrinctions built in the system command?
I have read something about increasing the stack size to improve Ansys Performance. The FE-Model is quite big. So how can I increase the stack size in the system command call?
I am using MatLAB R2016a, ANSYS 17.0 and Windows 7
Thanks a lot for your help in advance. Regards, Pablo
0 Comments
Answers (1)
Masato Takahashi
on 11 Nov 2016
Hi Pablo,
My friend faced a similar problem. Though we haven't tried the solution yet, the thread may be helpful: http://www.mathworks.com/matlabcentral/answers/160210-how-can-i-run-ansys-from-matlab
I hope it works.
Regards,
Masato
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!