Output Responses

Define the design output responses in HyperStudy.

HyperStudy offers various methods to define the design output responses that are read from the Feko simulation results. Three of these methods include:
  1. Running a POSTFEKO extraction Lua script after each Feko simulation. The Lua script writes the axis and quantity values from a visible Cartesian graph and polar graph trace to a hst_output.hstp file that is read by HyperStudy.
    Note: It is required to have a POSTFEKO session with a matching name as the .cfx file in the same directory.
    • This approach is recommended if the data is available in POSTFEKO and can be plotted on a Cartesian graph or polar graph.
  2. Running a Lua script after each Feko simulation. The Lua script writes the values to a hst_output.hstp file that is read by HyperStudy.
    • This approach is for advanced custom optimisation goals, for example, bandwidth, beamwidth and average gain.
  3. Reading the values directly from the Feko .out file.
    • This approach parses the .out file and reads the values at the specified offset in the file. Any reformatting of the file structure may result in incorrect values being read.
Note: While setting up the HyperStudy project, a template Lua file is created upon Import Variables.

The Lua file name matches the .cfx file, but has _extract.lua appended, for example, mymodel.cfx_extract.lua. Edit this file to add functions to calculate and write the required output response values to the hst_output.hstp.