Exporting Feko data

Robert Galejs
Robert Galejs Altair Community Member
edited April 30 in Community Q&A

I have run a Feko simulation with a 3-D parameter sweep (frequency, angle, and load) and can access the results in PostFeko.  I would like to import the results into Matlab for further analysis but I can't figure out how to get the entire dataset into one file that Matlab can ingest.  The only way I can see how to do this is to look at the plots of the desired data after choosing the parameters from the drop down GUI and export that one plot into a *.dat file.  That would work but I would need to generate 300 files (20 loads and 15 angles) which seems ungainly.  Is there any way to export all of the data in one shot into a text file or some other format that Matlab can read?

Thanks!

Robert

Tagged:

Answers

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited April 29

    Hi Robert,

    Exporting .dat files automatically with lua scripting is unfortunately not possible without further ado (I only tried this recently). What you could try is to activate the export of the field data already in the field request, i.e. .ffe for the far field and .efe / .hfe for the near field. If you then deactivate "Delete all files (except optimum)" in the Component Launch Options, you will receive the field data of all simulations performed during the optimization and can process them further in Matlab.

    image

    Hope this helps!

    Best regards,
    Torben

  • Robert Galejs
    Robert Galejs Altair Community Member
    edited April 29

    Thanks for the advice!  I assume that you mean that the "delete all files (except optimum)" option should *not* be selected, correct? In my previous run, that highlighted option is not selected but I do not see any .ffe files.  Do I need to do specifically request that .ffe files get made? If so, where do I do that?

    Thanks again!

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited April 29

    Hi Robert,

    Yes, the "delete all files" option should be un-checked. To export .ffe files you need to activate this in the farfield request dialogue:
    image

    Best regards,
    Torben

  • Robert Galejs
    Robert Galejs Altair Community Member
    edited April 29

    Got it!  Thanks for the help!

  • Robert Galejs
    Robert Galejs Altair Community Member
    edited April 29

    I have the .ffe ASCII files that I should be able to read into Matlab, but there is one file for each value of the parameter sweep.  Is there any way for Feko to combine all of the parameter files into one big .ffe file, or do I need to do that manually?

     

    Thanks again!

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited April 30

    I have the .ffe ASCII files that I should be able to read into Matlab, but there is one file for each value of the parameter sweep.  Is there any way for Feko to combine all of the parameter files into one big .ffe file, or do I need to do that manually?

     

    Thanks again!

    Hi Robert,

    You will probably have to do this manually. As far as I know, this is not possible in Feko.