How to increase Stack Size when starting ANSYS Batch?

2 visualizaciones (últimos 30 días)
Pablo Noever
Pablo Noever el 18 de Ag. de 2016
Respondida: Masato Takahashi el 11 de Nov. de 2016
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

Respuestas (1)

Masato Takahashi
Masato Takahashi el 11 de Nov. de 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

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by