🎉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

Optimization of geometry defined using points on a fitted spline line

User: "Joseph Pembamoto"
Altair Community Member
Updated by Joseph Pembamoto

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

 

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Torben Voigt"
    Altair Employee
    Updated by Torben Voigt

    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