How to write a Lua script in Postfeko

yun tianyu
yun tianyu Altair Community Member
edited April 25 in Community Q&A

I want to write a Lua script in Postfeko for the purpose of exporting a far-field ffe file by opening the bof files in the D:\Ori5 file so containing j2_2.5GHz_150_0_ in order and exporting its far-field ffe file to the D:\Ori6 file, with the name of the ffe file as the name of the original bof file. Can you help me?

Tagged:

Answers

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited April 25

    Hi @yun tianyu ,

    The attached script may help you. In export_ffe.lua you just need to edit line 3 (the location of the desired .bof file). It will export the .ffe. I found this solution in the Feko Help: file:///C:/Program%20Files/Altair/2023.1/help/feko/html/topics/feko/user_guide/appendix/api_postfeko_auto_generated/object/farfielddata.htm

    Hope this helps!

    Best regards,
    Torben