🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to use an external excel file for topology optimization in optistruct as an objective?

Hi,
I would like to use Optistruct for topology optimization.
There is no any built-in response which can I use for my custom objective function. Making an equation is also not an option. I have just read, that the cells from given excel files can be used explicitly as a response.

The task is the following:

There are multiple loadcases. I would like to choose 3 from them, and request their Strain Energy Densities' results for a given element set.  I can export this result to h3d files after each iteration (The files with name of ..._s1.h3d, ..._s2.h3d...) I can write a TcL script, which can query the SED values of the given element set, from each relevant h3d file of the subcases. After that, I import them in python to make calulations with them, then a single number as an objective value can be exported into an excel file, for example in the A1 cell. And in the next run, I do this again, rewriting the excel file, until my objective reach its minimum. Calculations in the excel spreadsheet is not an option either, because I have a LOT of elements. (The results from the other loadcases are used for other constraints, but it is irrelevant now, because there is built-in response for that.)


Is that possible? How does Optistruct know, that my excel is ready? Can I automatically interrupt the calculations of the optimization run, until I query the results and calculate my objective with python? Is there any "banana peel" in this job?


Any comment will be appreciated.

Find more posts tagged with

Sort by:
1 - 3 of 31