Materials

Materials

Executing a simulation process from Ansys Mechanical.

    • Rabia Altunay
      Subscriber

      I want to learn how I can execute the simulation from Ansys Mechanical? I want to do a simulation automatically out of Workbench. 

      • Automatic mechanical simulation.
      • Not inside WB. 
    • Gary Stofan
      Ansys Employee

      Hi Rabia We do not understand what you are asking. Please explain in more details.

    • Rabia Altunay
      Subscriber

      Is it possible to combine with Ansys and Matlab/Python in mechanical area. I want to do my simulations in Ansys to finite element method and then I want to execute the data from Ansys and continue to optimize my model with a programming language like a Matlab or Python. As I understand there is APDL and Scripting section in Ansys but I do not know which one could be good to execute a simulation. Is there any batch scripting? If so, how I can learn what to do? Thanks.

    • SaiD
      Ansys Employee

      Hello,

      You may find this course helpful: Getting Started with Ansys Mechanical | Ansys Courses

      Ansys Workbench helps with the data flow, e.g., Geometry component or Geoemtry cell in a system allows you to either import a geometry or allows you to create a new geometry in Ansys Discovery, SpaceClaim or Designer Modeler; Engineering Data allows you to define the material data needed for the model.

      Ansys Mechanical cannot do the above things on its own. So if you try to open Ansys Mechanical, it will open Ansys Workbench with a Mechanical Model Component created by default.

      The simulation is actually executed in Ansys Mechanical (not Workbench). Workbench is a more like a tool to manage the data flow between different components and systems.

      Is there a reason you don't want to use Ansys Workbench?

    • Gary Stofan
      Ansys Employee

      There are several examples like this on YouTube search for "Matlab Ansys". 
      There was good example titled "Interface MATALB and ANSYS" where MATLAB runs Ansys APDL in batch mode and passes parameter data back/forth via simple text files. 

      The concept to understand is that we do not "build" the Ansys analysis via script. The analysis (base APDL input file) is pre-built by the user, and only the desired parameter data is fed into the Analysis by Matlab.



    • Rabia Altunay
      Subscriber

      I could not maybe explain very well. Let me give more details. I want to write a code file with Matlab or Python for stress analysis. As you might know, this is very limited and long process directly in a programming language that is why, I want to use Ansys to simulate the design and obtain the results of stress analysis. If I do this in Workbench, there is no way to take the simulations and put the inside of the any kind of code file -as I have known. If there is a way, please inform me. 

      For this reason, Workbench is not a good plathform for me. I need to design geometry and then mesh, give boundary conditions and have results. BUT at the end of the simulation, I want to able to take the all process outside of Ansys like in fluent (journal file).

      Is there any way to execute the simulation like in the fluent for stractural analysis?

      Thanks.

       

    • Mike Rife
      Ansys Employee

      Hi Rabia

      Please see this linke w.r.t. PyMAPDL.  It is a Python API to 'MAPDL as a Service'.  https://mapdl.docs.pyansys.com/release/0.64/

      Mike

    • Ashishkumar Gupta
      Subscriber

      What has to be done when ANSYS EDT has to be called from MATLAB command using actxserver(progid). Where do I find valid progid?

    • Mike Rife
      Ansys Employee

      Hi Rabia - Asking about calling AEDT from Matlab is not an appropriate question for a sub-forum specific to materials.  You may want to at least post that to the Electronics sub-forum.  Mike

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