TAGGED: python-apdl
-
-
December 11, 2024 at 8:41 pmabass.youssefSubscriber
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
-
December 12, 2024 at 12:01 pmAshish KhemkaForum 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
-
December 12, 2024 at 1:28 pmDeepakAnsys Employee
Hi,
If you looking for APDL with Python scripting, you may use pyMAPDL.
Reference material:
Thanks,
Deepak
-
December 12, 2024 at 3:50 pmmrifeAnsys 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
-
- You must be logged in to reply to this topic.
- Workbench license error
- Unexpected error on Workbench: Root element not found.
- Unexpected issues with SCCM deployment of Ansys Fluids and Structures 2024 R1
- Questions and recommendations: Septum Horn Antenna
- AQWA: Hydrodynamic response error
- Tutorial or Help for 2 way FSI
- Unable to connect to the license
- Moment Reaction probe with Large deformation
- 2 way coupled FSI for ball bearing
- Ansys with Vmware and CPU configuration : I’m lost, good practice?
-
1426
-
599
-
591
-
565
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.