General Mechanical

General Mechanical

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

Commands to run apdl macros via python scripting in Ansys mechanical

    • Nicola Tegas
      Subscriber

      Hi everyone, I've been looking for a solution to this problem for a while but at the moment I can't find any solutions.
      I'm trying to automate the FEM analysis of a model that currently uses different apdl macros that work great. Currently these five different macros create a heatmap of the model via external files.

       Block run with various APDL Macro

      My goal is to delete the various macros that I insert inside the run block and keep them in an external folder, these will have to be called from a python code that will be in the run block.

      Block run with Python code

      In this way the end user will only have to click on "Solve" to obtain the results of the model, while now the various macros must always be updated again.

      Does anyone know any commands I can insert into the Python code to run the APDL macros that I would like to keep in an external folder?

      Thank you in advance 

    • Aniket
      Forum Moderator

      Hi Nicola, Please check the following extension on app store:

      https://catalog.ansys.com/product/5b3bc6857a2f9a5c90d32e06/command-obj-to-act

      this contains source code, so with some efforts you should be able to convert all you apdl extensions to an ACT app.

      -Aniket

      Forum Rules & Guidelines

Viewing 1 reply thread
  • The topic ‘Commands to run apdl macros via python scripting in Ansys mechanical’ is closed to new replies.