Replies: 3 comments
-
pinging @greschd @janvonrickenbach |
Beta Was this translation helpful? Give feedback.
-
Hi @gabbo842, It's possible to follow the same workflow with PyACP + PyMechanical as in Workbench (ACP + Mechanical), but both the code and corresponding example are still work in progress - so might be a bit tricky to get working.
The latest version of the PyMechanical + PyACP example can be found here: https://github.com/ansys/pyacp/tree/doc/pymechanical_example_noshim/examples/pymechanical (note the feature branch As a starting point, you could try running the The broad overview of this workflow is that:
We are aiming to make this example + workflow easier to use in the near future; probably by providing some helper functions to execute these steps. If you are willing to use the current (half-baked) state of this example, we'd be happy to help you along, and would appreciate your feedback. As an aside: are you interested in only the shell workflow, or also for solid models? On the PyACP side that will be supported for 2025R1, but yet more work is required for the PyMechanical example. |
Beta Was this translation helpful? Give feedback.
-
@gabbo842 - think you asked this in the AIS learning forum and I replied there (https://innovationspace.ansys.com/forum/forums/topic/mechanical-scripting-coupling-acp-and-ansys-mechanical/) - was hoping it was all clear, but if not is some more guidance - I referred there to the commands to import the cdb file, just as done in the pyacp->pymaodl example you refer to. In addition to the above workflow (previous post) which is good: So a sample code could look like the below (embedded pymech.) - it uses the pyacp+pymapdl example, but instead of mapdl it uses pymech. (pyacp is the same below as in the example: https://acp.docs.pyansys.com/version/dev/examples/gallery_examples/001_basic_flat_plate.html#sphx-glr-examples-gallery-examples-001-basic-flat-plate-py):
#Pymechanicalstartshere
|
Beta Was this translation helpful? Give feedback.
-
Hi 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.
Beta Was this translation helpful? Give feedback.
All reactions