TAGGED: pyansys, PyMAPDL, python-scripting
-
-
September 30, 2024 at 12:27 pm
s310413
SubscriberHi everyone,
I'm trying to write a pyAnsys script to analyse a composite structure. I'm launching a Mechanical session in which I import the geometry then a set the mesh and the boundary conditions. Then I save the input file (file .dat). After saving and closing the Mechanical session, with pyACP I import the input.dat file and I define the composite material. After defining the composite material, is there a way to upload the model and run the simulation in Ansys Mechanical or the only way is to solve the ACP model in a MAPDL session? In pyAnsys guide I found how to import and solve the ACP model in MAPDL but I would prefer to run the analysis in Mechanical, if it is possible. Thanks.
-
September 30, 2024 at 12:31 pm
Erik Kostson
Ansys EmployeeÂ
Â
Â
Â
Â
Â
Â
Â
Â
Hi
It is possible to open a cdb with pyMechanical (2024 R2).
(this shows the commands involved - same can be used in pyMEchanical : https://discuss.ansys.com/discussion/4431/how-to-add-a-model-in-standalone-mechanical)
So you can do that.
There are possible other ways, but this is the most easy way and similar to the pyacp ->pymapdl example (example) that also opens up the cdb file generated by acp.
All the best
Erik
Â
Â
Â
Â
Â
Â
Â
Â
Â
-
October 1, 2024 at 10:38 am
Erik Kostson
Ansys EmployeeClosing as other forum members might find it useful.
-
- The topic ‘Mechanical scripting – coupling ACP and Ansys Mechanical’ is closed to new replies.
-
2532
-
933
-
787
-
599
-
591
© 2025 Copyright ANSYS, Inc. All rights reserved.