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.
Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products.

methode pour insérer une macro ApDL dans du python

TAGGED: 

    • abass.youssef
      Subscriber

      Bonjour, je dois faire une programmation XML intégrant du python pour un post-traitement fsum d'un groupe de noeuds et éléments associés. En effet sur mechanical le résultat n'est pas correct car il fait une moyenne entre les éléments connectés de 2 corps. Pour y parvenir je suis obligé d'utiliser une macro apdl et je souhaiterais pouvoir utiliser cette macro dans un python et pouvoir afficher le torseur sur mechanical. comment puis-je intégrer de l'apdl dans du python? quel exemple puis-je utiliser à défault? merci d'avance de votre aide

    • Ashish Khemka
      Forum Moderator

      Translated: Hello, I have to do an XML program integrating python for a fsum post-processing of a group of nodes and related elements. Indeed on mechanical the result is not correct because it makes an average between the connected elements of 2 bodies. To achieve this, I have to use an apdl macro and I would like to be able to use this macro in a python and be able to display the torsor on mechanical. How can I integrate APDL into Python? What example can I use if I fail? thank you in advance for your help

    • Deepak
      Ansys Employee

      Hi,

      If you looking for APDL with Python scripting, you may use pyMAPDL.

      Reference material: 

      Welcome to PyMAPDL — PyMAPDL

      Thanks,

      Deepak

    • mrife
      Ansys Employee

      Hi abass

      I think that the WB Mechanical "Python Result" may be a better option for your case than PyMAPDL.  Please see the following Help section for more information:

      https://ansyshelp.ansys.com/public/account/secured?returnurl=/Views/Secured/corp/v242/en/wb_sim/ds_python_result.html

      The ANSYS Developer Forum is open to the public to ask questions on scripting.  You can sign up here and search for "dpf fsum"; there are quite a few discussions on the topic.

      https://discuss.ansys.com/

      Mike

Viewing 3 reply threads
  • You must be logged in to reply to this topic.
[bingo_chatbox]