December 9, 2022 at 10:55 amkrall91Subscriber
Hello Ansys community,
I would like to know if it's possible to manually create design points for a parametric study, then:
In a loop, read the results of the manual design points, then utilize these results to create new design points? I want to apply a genetic algorithm, but I need to do it on the workbench level, as every parameter needs to run ACP-pre module for every design point.
Any help or nudge in the right direction is appreciated.
December 9, 2022 at 11:02 amErik KostsonAnsys Employee
Not sure exactly what you want to do, but
Perhaps it might be possible to use workbench/act scripting to do something what you want.
All the best
December 16, 2022 at 9:22 ambhagwantPAnsys EmployeeHello krall91, I think your description is still bit unclear. Will you please elaborate it more? Yes, As stated by Erik, it may be possible with workbench/act scripting. Thanks
December 16, 2022 at 11:16 amkrall91Subscriber
Dear Erik & bhagwantP, thank you for your responses. As Eric suggested, I dabbled a bit in ansys workbench scripting.
In a loop, I can read the output of a design point, then automatically generate new design points, solve them, make new design points from the solutions etc. However, I have a couple minor inconveniences:
At the moment I can read data from only the current design point with this:
output = Parameters.GetParameter(Name="PX").Value.Value
with PX being whatever number my output parameter is. But this only works on the "current design point" where I set the current point with:
with designPointX being whatever design point I wish to read. I was wondering if it was possible to read the values of a design point by just entering the name of the design point, as you can do when you are writing the design points with something like:
since reading a design point value is not an action, I could not record it in the record journal to decipher it somehow.
And finally, when I run my loops, I get a frozen screen where nothing happens, and after a little while all the datapoints appear as solved. Is there a way for a script -during execution- to show these intermediate steps like design points with inputs shown but outputs are yet to be calculated?
I currently update my design points simply by the function UpdateAllDesignPoints().
Thank you for your time and follow-up.
- You must be logged in to reply to this topic.
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.
- Saving & sharing of Working project files in .wbpz format
- An Unknown error occurred during solution. Check the Solver Output…..
- Understanding Force Convergence Solution Output
- Solver Pivot Warning in Beam Element Model
- How to calculate the residual stress on a coating by Vickers indentation?
- Colors and Mesh Display
- whether have the difference between using contact and target bodies
- 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.
- User manual
© 2023 Copyright ANSYS, Inc. All rights reserved.