Optimization of geometry defined using points on a fitted spline line

Joseph Pembamoto
Joseph Pembamoto Altair Community Member
edited December 2023 in Community Q&A

I designed a Klopfenstein microstrip line taper using Lua script and came up with points that I would then input into 2 fitted splines which I would loft to make a geometry.

This approach generates the geometry, but when I change a variable in CADFEKO, it does not change the geometry automatically, and to see the change, I have to go to the Lua script hard code it there, and repeat the code that generates the points, creates the fitted splines and loft the two over again. I am afraid if I run an optimisation it would change say the length value but it won't change the geometry accordingly to calculate its responses 

Is there a better way I could approach this problem or, is there something I should have in my Lua script that would help in modifying the geometry each time a variable is modified in CADFEKO by running the script with updated variables

 

Tagged:

Answers

  • Torben Voigt
    Torben Voigt
    Altair Employee
    edited December 2023

    Hi Joseph,

    The main problem is that only numbers are used in the definition of your fitted splines, but not the variables:
    image

    I'm not familiar enough with lua scripting to fully understand your script, but you need to make sure that the values of the variables are not used to define the fitted splines, but the variables themselves.

    Example:
    image

    Next, you need to make sure that you choose a much finer mesh, as the structure is extremely small.

    Best regards,
    Torben