Problem Parameterizing Objective Function in Topology Optimization + Frequency Output

Austin_Prevette
Austin_Prevette Member Posts: 5
Name Dropper First Comment
**

First, I am trying to parameterize the objective function as detailed in https://discuss.ansys.com/discussion/2244/how-to-parameterize-the-objective-weight-using-python-code-object

Here are some screenshots of the code and the Input File for the optimizer.



If I suppress the objective function as stated in the link, the code will not run. Changing the weights in the new detail options does not affect the objective function.

Additionally, I would like to output the 1st natural frequency value from the Topology Optimization so that I can parameterize the output. Without revealing proprietary info, I am doing a senior research project on a genetic algorithm for topology optimization, and I would like to have the ability to input [optimization weights, mass % target, etc.] and output [final mass, max stress, avg. stress, 1st natural frequency] via code and automatic processes. Later I will deal with figuring out how to run 40 individuals/gen on our HPC, but for now, I'd just like to understand how to parameterize the inputs/outputs. Thank you in advance.

Answers