General Mechanical

General Mechanical

Topics relate to Mechanical Enterprise, Motion, Additive Print and more

Export Response Surface as Algorithm

    • tillhg
      Subscriber

      Hello ANSYS community,


      I recently created a response surface for a few parameters in my static structural project. Now I want to export the response surface so that I can calculate the response in my own code. I know that there is an "Export Response Surface" option in ANSYS 2019 R2, however I you can only export the response surface as a fmu file. Unfortunately I was not able to extract the code (or functions with determined Parameters) out of the fmi block. I was only able to calculate the response in another Simulation Software without seeing the function itself. So my question is:


      Is there any way to export and extract the algorithm of a response surface?


      or


      Does anyone know a way to determine the response surface in a regular code (Matlab, Python,...) in the same way ANSYS does?


       


      I used Genetic Aggregation as Response Surface Type.


      Thank you in advance!

    • peteroznewman
      Subscriber

      Export the FMU from ANSYS.


      Import the FMU into Matlab's Simulink


      Import the FMU into Python using PyFMI.


      The point of an FMU is that you don't need to deal with the complex internal functions.

    • tillhg
      Subscriber

      Thank you for your answer, Peter! And sorry for my late reply, I just came back from vacation today.


      The thing is, I need to embed the function to another software written in C. Unfortunately, the guy who primarily writes the code cannot or does not want to embed the FMU (due to license problems and other difficulties). So I guess the only way is to look up and code the interpolation algorithm myself? Is there an explanation how the genetic Aggregation algorithm works? I only found some functions for Kriging (which I do not know how convert to an algorithm so far but I am working on it).

Viewing 2 reply threads
  • You must be logged in to reply to this topic.