General Mechanical

General Mechanical

“Mechanical APDL Batch running with 2 cores requested” Problem

    • j.peach2
      Subscriber

      Hello to whoever is reading this.....,

      currently, i'm trying to use Python in combination with Ansys 2022 R1 for the first time using all the packages that falls under PyAnsys. This is the program in question......

      However, i'm running into an issue. When I run this program, it shows a new window saying "Mechanical APDL Batch running with 2 cores requested" but in task manager, its listed as "not responding". Furthermore, when I try to click on this new window, i'm met with the following System Errors:

      1) "The code excecution cannot proceed because AnsMPI.dll was not found. Reinstalling the programme may fix this problem"

      2) "The code excecution cannot proceed because AnsGPU.dll was not found. Reinstalling the programme may fix this problem"

      3) "The code excecution cannot proceed because ansScaLAPACK.dll was not found. Reinstalling the programme may fix this problem"

      4) "The code excecution cannot proceed because libifcoremd.dll was not found. Reinstalling the programme may fix this problem"

      I've checked all these aforementioned files and they're all present within the Ansys folder.

      It should also be noted that both Python and Ansys are on seperate storage drives on the same laptop due to storage issues. However, when I reinstalled Python onto the same storage drive that stored Ansys, the problem still persisted.

      Any help to fix this issue will be greatly appreciated. How do I fix this issue?

      Regards, Jordan.

    • Erik Kostson
      Ansys Employee

      I would suggest to post this type of questions (pyANsys related) in the dedicated forum for pyMAPDL:

       

      https://github.com/pyansys/pymapdl/discussions

       

    • Vigneswaran Sridharan
      Ansys Employee

      Hi,

      When you do a pip install pip install ansys-mapdl-core, you should be able to get the installed version using 'print(mapdl)'.


      from ansys.mapdl.core import launch_mapdl

      mapdl = launch_mapdl()
      This automatically searches for the latest local version of MAPDL, launches it as a background process, and immediately connects to it. You can then start sending python commands to MAPDL.

      A successful connection returns:

      Vigneswaran

Viewing 2 reply threads
  • You must be logged in to reply to this topic.