Calculate Average Field in Volume

Kurt Knox_21310
Kurt Knox_21310 New Altair Community Member
edited December 2020 in Community Q&A

I am looking to optimize a field distribution in the test volume of a near field simulator.  Typically in the past I have pulled in the near field data into matlab and can quickly calculate mean, standard deviation, max, min, etc. on a 3D array of the near field values.  I don't see a straightforward way to do that within FEKO, for example use the editor to calculate the statistics on the 3D near field volume in question and output for viewing in POSTFEKO.  For example, I could then view the spatial average and standard deviation values with respect to frequency.  How do people do this now, FOR loops?  End goal is to optimize with various geometric parameters of the antenna.

 

Thank you,

 

Kurt

Tagged:

Answers

  • Mel
    Mel Altair Community Member
    edited July 2020

    There is no quick way I'm afraid in Feko. You would have to implement the equations for mean, standard deviation, and process the data in a Lua automation script.

     

    Else, you could export the data and do the statistical analysis and graph generation with Altair Hypergraph.

     

    If you mean you don't have access to Matlab anymore, you could try Altair Compose, which functions on a very similar level as Matlab. https://www.altair.com/mbd2019/compose/

     

  • Kurt Knox_21310
    Kurt Knox_21310 New Altair Community Member
    edited July 2020

    Hi Mel, yes, after spending a few days looking through EDITFEKO and the script editor, I think the path forward is what you said, lua scripts.  I will look into Hypergraph.  

     

    Thanks much,

     

    Kurt

  • Torben Voigt
    Torben Voigt Altair Community Member
    edited December 2020

    Hi @Kurt Knox,

     

    the attached script could be interesting for you:

    Unable to find an attachment - read this blog

  • Kurt Knox_21310
    Kurt Knox_21310 New Altair Community Member
    edited July 2020

    Hi Torben, yes, that looks like it.  Able to get results right into POSTFEKO, thank you!  Kurt