Extract B at the centroid of mesh elements to a txt file (transient 2D simulations)

Marco Biasion
Marco Biasion Altair Community Member
edited January 2023 in Community Q&A

Hi all,

is it possible to modify the macro ExportAreaAverageValue.PFM to export the data to a .txt file instead of a .xls file?

The reason why I ask is that the macro presented in this post:

Hints on how to modify the macro "ExportAreaAverageValue" provided with FLUX - Flux - Altair Products - Altair Community

is very slow in creating an Excel file for each time step of the solution (the execution time of the macro is comparable to the solving time of the 2D transient simulation itself).

Thank you in advance for your help

Marco

Answers

  • C_Favre
    C_Favre
    Altair Employee
    edited December 2022

    Hi Marco,

    Yes it is possible, find below a version where the data are stored in a text file and a check box allows to create or not the Excel file.

    Best regards.

    Cyril Favre

     

  • Marco Biasion
    Marco Biasion Altair Community Member
    edited January 2023

    Hi Marco,

    Yes it is possible, find below a version where the data are stored in a text file and a check box allows to create or not the Excel file.

    Best regards.

    Cyril Favre

     

    Dear Cyril,

    thank you very much for your help! The macro works very well.

    Best regards,

    Marco