I think DOS command is not wrong, because it run from CMD.exe, and it runs without problems partway.
Matlab2014B Matlab 2014B How To Identify ThatI suspect the cause is stack overflow, but I do not know how to identify that.
Matlab2014B Matlab 2014B Windows 7 Enterprise IntelMy PC environment is Windows 7 Enterprise Intel Core i7 970 16.0GB Truly yours. Matlab2014B Matlab 2014B Code Based OnWe have to write a code based on calculus in MATLAB and run it in ANSYS APDL as our final project for the course. Since this is really a system level error, ANSYS doesnt produce any error messages in its own logerror file. Support told me that the problem is related to a particular piece of 3rd party software (OpenMP) used by MATLAB. As of 2014b, when running system commands, the stack size is limited to 512k through an environment variable called KMPSTACKSIZE. It is possible to verify the existence and value of this environment variable by issuing the following command listing all the variables (in Windows): System( SET ) (produces a list of all environment variables currently set. For ANSYS to be able to run, you need to increase the stack size before calling the ANSYS executable. You can do this by wrapping the ANSYS call in a batch script or you can do the following: System( SET KMPSTACKSIZE2048k C:pathtoansysansysversion.exe input arguments. I havent played around with the stack size enough to find a critical value (may also be mesh sizesolver dependent). Ive tried several ways along many days but this command totally solved the problem. I have an ansys apdl code with a large number of nodes and elements. The MATLAB remains on Pause for a while when the ansys gets into the solution, then terminated. I tried the code you suggested as below: SET KMPSTACKSIZE15000M C:Program FilesANSYS Incv161ansysbinwinx64ANSYS161.exe -b -i Run1Test.mac -o Run1Testout.txt But still having the same issue, while only 50 my computer RAM is in use. Matlab 2018b ANSYS R19 It always return a status or ans -1.0737e009. However I want to know how to run ANSYS by DOS command and solutions for error. Ansys stops working just as its about to calculate the solution. The odd thing is that it works perfectly fine if i run my batch file outside of matlab. Sadly I have not yet found the solution for this problem, but was hoping that you could replay the answer if or when you find it. If not, then ill try to post my solution if i find one, good luck. I dont know the exact reason for this problem, however I think matlab2014b has some bugs. I tried two different ways of initiating the Ansys execution: cmd sprintf( ansyspath. FileName.inp. -o outputFilename.txt. When running the java-code from e.g. Netbeans (jdk 1.8) it works perfectly. Other MathWorks country sites are not optimized for visits from your location.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |