July 24, 2023 at 11:19 amGary WangSubscriber
I am doing a parametric study with an indenter pressing a piece of rubber. The parameter is the indenter positions. Currently, I am using scripting in Automation to create coordinates and transform the indenter to those coordinates. I choose this because I need to do some exporting within Scripting, such as force, and strain of interested nodes. However, this is a sequential method the latter cases only start after the former finish.
I know that Ansys itself has a Parametric module, which can get use of multiple cores and parallel computing. Provided that I have hundreds of cases, it would be beneficial to leverage parallel computing.
Can I also run my scripting in Ansys Parametric to export results for each case? Or can I leverage parallel computing in Automation Scripting?
Thanks a lot.
July 26, 2023 at 2:52 am
July 28, 2023 at 5:50 amAniketAnsys Employee
You can combine native parametric analysis capability along with Python using the Python code object in Mechanical to achieve what you want (i.e. exporting files after each solution):
Now coming to your parallel processing query, with the above-suggested approach, each design point is run after previous finishes. If you want multiple parallel instants, you will need multiple licenses to start separate mechanical sessions.
July 28, 2023 at 5:28 am
July 31, 2023 at 12:16 pmGary WangSubscriber
Hi Aniket and Ashish,
thanks for your input. I have added Python Code object into Mechanical. And my previous Scripting texts did proceed to finish the exporting files. A big thumb up! However, I need to export all UserDefined results at each timestep. So I looped to set the result.DisplayTime. In scripting, I used [result.EvaluateAllResults()] to update the result after I set the timestep. While in Python Code object, it has no property of [result.EvaluateAllResults()]. So how can I re-evaluate the results in Python Code object?
The link I followed to do the Python Code: https://developer.ansys.com/blog/script-tip-friday-python-code-object-mechanical
Thanks a lot
August 1, 2023 at 7:23 amGary WangSubscriber
And I also tried this method from the link below, it didn't work either.
August 1, 2023 at 11:26 amAshish KumarForum Moderator
Hi Gary, I do not have any additional comments. Let us see if other members have something else to suggest.
- You must be logged in to reply to this topic.
Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Solver Pivot Warning in Beam Element Model
- Saving & sharing of Working project files in .wbpz format
- Understanding Force Convergence Solution Output
- User manual
- An Unknown error occurred during solution. Check the Solver Output…..
- What is the difference between bonded contact region and fixed joint
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- whether have the difference between using contact and target bodies
- Defining rigid body and contact
- Colors and Mesh Display
© 2023 Copyright ANSYS, Inc. All rights reserved.