Automated process to record results from POSTFEKO based on a specified time signal

Michael R
Michael R Altair Community Member
edited October 2023 in Community Q&A

Based on results from CADFEKO, I want to specify a new time signal and obtain certain results based on that new time signal. For example, I want to be able to obtain, based on this new time signal, the electric field magnitude as a function of angle(s) and time. I know how to do this by using the GUI associated with POSTFEKO. However, I want to be able to do this in an automated way by using a script that I can call to run from, e.g., MATLAB, and I want the results to be automatically recorded to a .dat file or multiple .dat files (instead of .dat files, .txt files or something equivalent are also okay).  To be clear, this would look something like the following:

(1) Results are generated by using CADFEKO.

(2) Based on a specified time signal, the results from (1) are used to generate, as a function of time and angle(s), the electric field.

(3) The electric field values from (2), as well as the independent variable values they depend on (or at least a subset of those values) are then recorded to a .dat file or multiple .dat files.

I know about Lua scripting, but I don't know if what I want to do can be done with that. If it can be done with Lua scripting, I don't know how to do it. Is there anyone who knows if what I want to do is possible? If it is possible, can you please provide insight on how I may do this and/or direct me to any resources that will help me with figuring out how to do this? Any help would be much appreciated.

Tagged:

Answers

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited October 2023

    Hi @Michael R,

    this is quite an extensive project, and I'm not sure if you can do it completely with Lua. I can only advise you to have a look at the Scripting API Reference Guide. There are some small code snippets as an example.
    image

    However, I'm honestly not sure if your workflow can be completely mapped with it. At least I haven't found anything on the topic of Time Signal in a hurry.

    Maybe there is someone here in the forum who has already done something similar?

    Best regards,
    Torben

  • Michael R
    Michael R Altair Community Member
    edited October 2023

    Torben,

    Thanks for the response. I think I figured things out already.