Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

ANSYS Maxwell Optimetrics Error Handling

  1. Jan 18, 2016 #1
    A common problem with optimization of machines is that occasionally, some of the variable combinations will not be geometrically feasible. For example, if magnet angle is being parameterized in an IPMSM, it might be that at some point, the magnet skews so much that it juts out of the rotor.
    Generally, it is possible to define the limits of the variables, but since I am playing with a global optimization, there are 5 attributes that can vary and the limits of each are interdependent, which makes it impossible within the current framework to account for all of the cases that will generate a non-feasible geometry. If I run an optimization, it generally stops sometime in the middle of the night, when it encounters one of these non feasible geometries and I have to start over, which is frustrating.

    One way to circumvent this is to use a script and calculate previously if a certain configuration is feasible, but this is time consuming and I am not great at VB (I have done this in MATLAB).

    The easier way (still using VB scripts) would be to run an optimization and to "catch" an error whenever it occurs within VB, cancel the analysis of this erroneous case and move on to the next case. Something like this is really easy to do in MATLAB. Does anyone have sample code or a possible solution to how the error can be caught during optimization? I can't find any error handling guides in the native help files.
     
  2. jcsd
  3. Jan 23, 2016 #2
    Thanks for the post! This is an automated courtesy bump. Sorry you aren't generating responses at the moment. Do you have any further information, come to any new conclusions or is it possible to reword the post?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: ANSYS Maxwell Optimetrics Error Handling
Loading...