reading FEKO defined variables by MATLAB

Zakaria
Zakaria Altair Community Member
edited June 2021 in Community Q&A

Hi,

I have defined variables for configuration in FEKO and ran a parametric study. now, I have 100 feko files for the same configuration but different dimensions. I want to collect the values of the variables of the 100 feko files using Matlab.

Is there a way to do that?

Tagged:

Best Answer

  • Mel
    Mel Altair Community Member
    edited June 2021 Answer ✓

    If you used the parameter sweep macro then a *.xml file will have been created that contains everything.

    For example:

    <parameter_sweep>   <settings>     <sweep_type>lin</sweep_type>     <frequency_properties config='StandardConfiguration1' numfreq='0' type='Continuous'/>   </settings>   <file>     <variable name='d1' value='-0.75268817204301'/>     <variable name='d10' value='-10.661912329567'/>     <path>parameter_sweep\Log_Periodic_Network_Load_01</path>   </file>   <file>     <variable name='d1' value='-0.75268817204301'/>     <variable name='d10' value='-11'/>     <path>parameter_sweep\Log_Periodic_Network_Load_02</path>   </file>   <file>     <variable name='d1' value='-0.7013440860215'/>     <variable name='d10' value='-10.661912329567'/>     <path>parameter_sweep\Log_Periodic_Network_Load_03</path>   </file>   <file>     <variable name='d1' value='-0.7013440860215'/>     <variable name='d10' value='-11'/>     <path>parameter_sweep\Log_Periodic_Network_Load_04</path>   </file>   <file>     <variable name='d1' value='-0.65'/>     <variable name='d10' value='-10.661912329567'/>     <path>parameter_sweep\Log_Periodic_Network_Load_05</path>   </file>   <file>     <variable name='d1' value='-0.65'/>     <variable name='d10' value='-11'/>     <path>parameter_sweep\Log_Periodic_Network_Load_06</path>   </file> </parameter_sweep>

Answers

  • Mel
    Mel Altair Community Member
    edited June 2021 Answer ✓

    If you used the parameter sweep macro then a *.xml file will have been created that contains everything.

    For example:

    <parameter_sweep>   <settings>     <sweep_type>lin</sweep_type>     <frequency_properties config='StandardConfiguration1' numfreq='0' type='Continuous'/>   </settings>   <file>     <variable name='d1' value='-0.75268817204301'/>     <variable name='d10' value='-10.661912329567'/>     <path>parameter_sweep\Log_Periodic_Network_Load_01</path>   </file>   <file>     <variable name='d1' value='-0.75268817204301'/>     <variable name='d10' value='-11'/>     <path>parameter_sweep\Log_Periodic_Network_Load_02</path>   </file>   <file>     <variable name='d1' value='-0.7013440860215'/>     <variable name='d10' value='-10.661912329567'/>     <path>parameter_sweep\Log_Periodic_Network_Load_03</path>   </file>   <file>     <variable name='d1' value='-0.7013440860215'/>     <variable name='d10' value='-11'/>     <path>parameter_sweep\Log_Periodic_Network_Load_04</path>   </file>   <file>     <variable name='d1' value='-0.65'/>     <variable name='d10' value='-10.661912329567'/>     <path>parameter_sweep\Log_Periodic_Network_Load_05</path>   </file>   <file>     <variable name='d1' value='-0.65'/>     <variable name='d10' value='-11'/>     <path>parameter_sweep\Log_Periodic_Network_Load_06</path>   </file> </parameter_sweep>
  • Zakaria
    Zakaria Altair Community Member
    edited June 2021
    mel_21333 said:

    If you used the parameter sweep macro then a *.xml file will have been created that contains everything.

    For example:

    <parameter_sweep>   <settings>     <sweep_type>lin</sweep_type>     <frequency_properties config='StandardConfiguration1' numfreq='0' type='Continuous'/>   </settings>   <file>     <variable name='d1' value='-0.75268817204301'/>     <variable name='d10' value='-10.661912329567'/>     <path>parameter_sweep\Log_Periodic_Network_Load_01</path>   </file>   <file>     <variable name='d1' value='-0.75268817204301'/>     <variable name='d10' value='-11'/>     <path>parameter_sweep\Log_Periodic_Network_Load_02</path>   </file>   <file>     <variable name='d1' value='-0.7013440860215'/>     <variable name='d10' value='-10.661912329567'/>     <path>parameter_sweep\Log_Periodic_Network_Load_03</path>   </file>   <file>     <variable name='d1' value='-0.7013440860215'/>     <variable name='d10' value='-11'/>     <path>parameter_sweep\Log_Periodic_Network_Load_04</path>   </file>   <file>     <variable name='d1' value='-0.65'/>     <variable name='d10' value='-10.661912329567'/>     <path>parameter_sweep\Log_Periodic_Network_Load_05</path>   </file>   <file>     <variable name='d1' value='-0.65'/>     <variable name='d10' value='-11'/>     <path>parameter_sweep\Log_Periodic_Network_Load_06</path>   </file> </parameter_sweep>

    Thanks for the replay. That works fine. However, my parametric sweep was done over an ssh connection using mobaexterm, therefore I couldn't find this file.  But, your answer inspired me to check the other generated files by FEKO. Fortunately, I found a file called  (generate_models_noninteractive) and it has all the info that I am looking for:

    image