2

I would like to optimize a design by having an optimizer make changes to a CAD file, which is then analyzed in FEM, and the results fed back into the optimizer to make changes on the design based on the FEM, until the solution converges to an optimum (mass, stiffness, else).

This is what I envision:

  • create a blueprint of the part in a CAD software (e.g. CATIA).
  • run an optimizer code (e.g. fmincon) from within a programming language (e.g. Python). The parameters of the optimizer are parameters of the CAD model (angles, lengths, thicknesses, etc.).
  • the optimizer evaluates a certain design (parameter set). The programming language calls the CAD software and modifies the design accordingly.
  • the programming language extracts some information (e.g. mass).
  • then the programming language extracts a STEP file and passes it a FEA solver (e.g. Abaqus) where a predefined analysis is performed.
  • the programming language reads the results (e.g. max van Mises stress).
  • the results from CAD and FEM (e.g. mass and stress) are fed to the optimizer, which changes the design accordingly.
  • until it converges.

I know this exists from within a closed architecture (e.g. isight), but I want to use an open architecture where the optimizer is called from within an open programming language (ideally Python).

So finally, here are my questions:

  • Can it be done, as I described it or else?
  • References, tutorials please?
  • Which softwares do you recommend, for programming, CAD and FEM?

1 Answer 1

6

Yes, it can be done. What you're describing is a small parametric structural sizing multidisciplinary optimization (MDO) environment. Before you even begin coding up the tools or environment, I suggest doing some preliminary work on a few areas

  1. Carefully formulate the minimization problem (minimize f(x), where x is a vector containing ... variables, subject to ... constraints, etc.)
  2. Survey and identify individual tools of interest
  3. How would each tool work? Input variables? Output variables?
  4. Outline in a Design Structure Matrix (a.k.a. N^2 diagram) how the tools will feed information (variables) to each other
  5. What optimizer is best suited to your problem (MDF?)
  6. Identify suitable convergence tolerance(s)

Once the above steps are taken, I would then start to think MDO implementation details. Python, while not the fastest language, would be an ideal environment because there are many tools that were built in Python to solve MDO problems like the one you have and the low development time. I suggest going with the following packages

  • OpenMDAO (http://openmdao.org/): a modern MDO platform written by NASA Glenn Research Center. The tutorials do a good job of getting you started. Note that each "discipline" in the Sellar problem, the 2nd problem in the tutorial, would include a call to your tool(s) instead of a closed-form equation. As long as you follow OpenMDAO's class framework, it does not care what each discipline is and treats it as a black-box; it doesn't care what goes on in-between an input and an output.
  • Scipy and numpy: two scientific and numerical optimization packages

I don't know what software you have access to, but here are a few tool-related tips to help you in your tool survey and identification:

Note: to give you some sort of development time-frame, what you're asking will probably take at least two weeks to develop.

I hope this helps.

2
  • It does, thank you very much. Which CAD software do you recommend out of the standard ones (CATIA v5, v6, NX, SolidWorks or AutoCAD)?
    – Gulango
    Commented Aug 3, 2015 at 6:59
  • Not particularly one or the other. I say go with the one you're most familiar with that has an API. Also, keep in mind that it sounds like you only want CAD for the parametric FEM aspect, and you don't need tons of other bells and whistles the big names typically come with. Have you ever heard of OpenVSP? It was written by NASA and it works nicely with CalculiX, a FEM generator program. They both have nice APIs. See slides 14 and 15 of openvsp.org/wiki/lib/exe/… for more info. Commented Aug 3, 2015 at 14:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.