Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Run batch mode analysis in MAPDL

    • OscarEspinosa95
      Subscriber

      Hi, everybody


      I'm trying to run a static analysis in MAPDL's batch mode (BM). But first, I tried to run it in interactive mode (IM). The macro is the next: 


      CDREAD,DB,'MATLAB2APDL','cdb',,'','' ! Import the file
      CPINTF,ALL,0.0001,                   ! Merge conincident nodes
      /SOLU                                 
      SOLVE   
      SOLVE                                ! Needed in interactive mode 

      The batch file code its this simple line:


      SET KMP_STACKSIZE=2048k & "C:Program FilesANSYS IncANSYS Studentv194ANSYSbinwinx64MAPDL.exe" -b -i "COINNODE.mac" -o "test.out"

      I add a second SOLVE in order to run the analysis in IM, and works. This doesn't affect the execution in BM, that keeps giving the next issue:



       *** NOTE ***                            CP =       7.644   TIME= 10:46:20


       The Distributed Sparse Matrix Solver is currently running in the        


       in-core memory mode.  This memory mode uses the most amount of memory   


       in order to avoid using the hard drive as much as possible, which most  


       often results in the fastest solution time.  This mode is recommended   


       if enough physical memory is present to accommodate all of the solver   


       data.                                                                   


       Distributed sparse solver maximum pivot= 1.966963211E+10 at node 4147   


       ROTY.                                                                   


       Distributed sparse solver minimum pivot= -21.2980198 at node 2075 ROTX. 


       Distributed sparse solver minimum pivot in absolute value=              


       2.030464831E-19 at node 7037 UZ.                                        


       


       


       NUMBER OF WARNING MESSAGES ENCOUNTERED=        301


       NUMBER OF ERROR   MESSAGES ENCOUNTERED=          1


       


       


       


       ***** PROBLEM TERMINATED BY INDICATED ERROR(S) OR BY END OF INPUT DATA *****



      I didn't encounter this problem in IM. What should I do to correctly run the analysis in BM?


       


      Regards


      Oscar Espinosa


      Samara University

    • OscarEspinosa95
      Subscriber

      I was able to get it working.


      The attempts I made were:



      • A second SOLVE;

      • Executing the /NERR command as its written in the Command Reference and in the URL written below;

      • Executing the /NERR command, a little bit unorthodox, but this option worked.


      !/NERR,,99999999,,0,0,             ! 2ND ATTEMPT http://www.xansys.org/forum/viewtopic.php?p=55366&sid=84ff7a189ee2e3817d7c03634a3de1a5
      /NERR,,,-1    ! 3RD ATTEMPT http://www.xansys.org/forum/viewtopic.php?p=42137&sid=2c464a96f232848909c44763df273711
      /PREP7
      CDREAD,DB,'MATLAB2APDL','cdb',,'','' 
      CPINTF,ALL,0.0001,
      /SOLU 
      SOLVE
      !SOLVE        ! 1ST ATTEMPT
      /POST1
      SET,LAST
      /OUTPUT,deformation3,txt 
      PRNSOL,U,SUM
      /OUTPUT 
      /OUTPUT,von_mises,txt 
      PRNSOL,S,EQV
      /OUTPUT 


      I'm still can get the Von Misses stress. Somebody know why?

Viewing 1 reply thread
  • The topic ‘Run batch mode analysis in MAPDL’ is closed to new replies.
[bingo_chatbox]