Replies: 1 comment
-
I'm sorry to ask to much, but I am really struggling with successfully running my optimization. ########################################################### Path to your BDF filebdf_file = os.path.join(os.getcwd(), "m1-005.dat") Define initial PSHELL property (thickness for PSHELL ID 1)pshell_property1 = 11.5e-3 # Thickness for PSHELL ID 1 def problem_setup(scenario_name, fea_assembler, problem): Define the multipoint modelclass HatchCoverModel(Multipoint):
OpenMDAO problem setupprob = om.Problem() Add design variable, constraints, and objectivesprob.model.add_design_var("thickness_1", lower=0.004, upper=0.03) # Thickness bounds (4mm to 30mm) prob.model.add_objective("hatch_cover_analysis.mass", scaler=1.0) Configure optimizerprob.driver = om.ScipyOptimizeDriver(debug_print=["objs", "nl_cons"], maxiter=200) Setup and executeprob.setup() Output resultsif prob.comm.rank == 0: #################################################################################### My script is working, but the result I am getting is only one iteration, no change of thickness and no mass change as well. Can someone please give some hints or guidance, on how to optimize one or several properties, that are predefined in my nastran file. thanks in advance, sorry again for bothering |
Beta Was this translation helpful? Give feedback.
-
Dears,
I am working on optimizing a grillage structure's design using TACS and OpenMDAO. My Nastran file is fully developed in FEMAP, and my optimization problem is defined as follows:
While exploring the documentation, I noticed most examples focus on optimizing element thickness, which differs from my case. Could you kindly guide me to a relevant example or provide insight on connecting dv_struct to the specific property thicknesses in my model?
And also, can I initialize the tacs builder without element callback function while doing the optimization setup? as I have everything predefined in my bdf file.
Thank you in advance for your support!
Beta Was this translation helpful? Give feedback.
All reactions