Ansys analysis hangs when run from Matlab
I am performing a material optimisation using the lsqnonlin function in Matlab. As part of this procedure, a call to Ansys is made and a finite element analysis is run:
dos(ansys140 -b -i FE_Analysis.inp -o output.txt),
When the above line is executed, Ansys hangs and a window pops up saying the program is not responding.
If I run this same Ansys input file (FE_Analysis.inp) outside of Matlab, it runs to completion without any problems. Also, when I fire up Matlab and execute the same analysis from the Matlab command line, there are no problems. If I try and run it from the Matlab command line after it fails when running through the optimisation script, it doesnt run.
Anyone have any idea what might be the issue? I dont think it is a memory issue. There are no messages other than Program is not responding. Im running it on a Windows 7 64 bit machine with 24 GB of RAM.
Thanks in advance for any input.
I do not know the answer to your interesting question. It would be great if you post the solution once youve found one.
I have basically stopped using Matlab (I use Python instead), but if I remember right there is another Matlab function that you can use to execute a system command. Perhaps that function is called system(ansys...) or something similar...
Also, what material model are you trying to calibrate?
The [URL= https://polymerfem.com/content.php?9-MCalibration ]MCalibration [/URL]software can calibrate all ANSYS material models, and supports 4-5 different optimization algorithms.
Ive tried system and ! and the response is the same. I might end up checking out python but I have my framework all set up in Matlab and am reluctant to spend time at the moment setting up another one. I used this procedure before running optimisations with Abaqus and never had a problem.
Im optimising Ogden material parameters plus stress field parameters to fit a simulation to in vivo skin deformation data. Ill have a look at MCalibration but I suspect I need to use a full FE package.
Id give guys at Red Cedar Tech (makers of HEEDS MDO) a call. I know HEEDS can drive ABAQUS and perform material calibration. I am not sure about ANSYS. Ask for a trial license and see if it does the job for you.
Right. I think I found a solution but it seems fairly random and doesnt explain why it is happening.
In my script, I plotted two figures at the start to visually compare the model and experimental results. When I comment out the code to plot the figures, the ansys analysis runs without any problems.
I believe I will need to do this at some stage too. Is there any guidance you could provide? Could you upload a simplified INP/script or a document that shows how to do it or something of that nature? I use ABAQUS.