Apply Report Template and write peaks to file

Sebastian_Karp
Sebastian_Karp
Altair Employee
edited December 2023 in Altair Exchange

Overview

This example script applies a Report Template on multiple simulation run data and writes min/max and peak position values of each curve to an external file.

Pre-Requisite

Edit TCL script as follows:

 

Line 16:
Path to Report-TPL-file

Lines 22 ff.
Definitions for data the TPL should be applied with.

Line 66 or 68:
Use on these lines for usage in GUI or Batch mode.

Line 68:
For Batch mode edit this line with path to external file to be written.

 

Usage/Installation Instructions

Run script e.g. from DropDown  File > Load > Script

Depending on data, select Unit system to be used for plotting.

Post-Requisite

See in path defined in Line 68 of script that CSV-file is written.


Contains data in format:

Curve_Name,min_val,max_val
Peaks X/Y 

Run1,0,1358.41
0.00276097/511.215; 0.00412109/437.425; 0.00616219/526.476;

.....