SpectraSim Documentation
Wizard step

Postprocessing

A library of frozen datasets (curves, tables, values) taken from results or imported from files, with operations between curves, error metrics against a reference and saved comparison charts.

Last updated

What this step does

Library. Each dataset is a frozen copy stored with the project, in its _files folder, and carried in a packed project file. Its origin is recorded:

  • a result: the run, the result item, the CAD file and the settings that shaped it;
  • an import: the file, the columns and the grouping;
  • a derived dataset: the recipe that made it.

Datasets are curves (each series with its own xx values), tables or value lists. "Send to Postprocessing" on any Results chart, table or value list adds one.

Import. Text files (.txt, .csv, .tsv, .dat; comment lines are skipped, and a decimal comma is accepted with ; or tab delimiters), spreadsheets (.xlsx, .xlsm; every sheet is a block) and MATLAB files (.mat v5/v7; a v7.3 file must be re-saved with -v7). A long-format table, with many curves in one sheet, can be split by one or more text columns and filtered.

Operations (each makes a new curve):

  • difference, sum, ratio and level ratio 10log⁡10(yA/yB)10\log_{10}(y_A/y_B) of two curves, on A's, B's or both sets of points inside the overlap, interpolated linearly in xx or in log⁡10x\log_{10} x, never extrapolated;
  • octave or third-octave band average: the curve is interpolated on 33 points uniform in log⁡f\log f across each band and averaged as an energy mean 10log⁡1010L/10‾10\log_{10}\overline{10^{L/10}} for levels in dB, or arithmetically otherwise; only bands entirely inside the curve are given;
  • centred moving-average smoothing; scale, offset and xx-scale.

Error metrics. For curve A against reference B on their common points in a chosen xx range, with e=yA−yBe = y_A - y_B: the rms e2‾\sqrt{\overline{e^2}}, the mean eˉ\bar e, the median of ∣e∣|e|, and the largest ∣e∣|e| with the xx at which it occurs. The metrics can be saved as a value list. Value lists can be compared side by side, with differences and percentage differences relative to the first set.

Comparisons. The ticked curves are drawn in one chart with the full chart tools; a chart (its series and view) can be saved by name and reopened.

Source

The band edges follow ISO 266 nominal centres with base-2 edges, as in the program's frequency sweep. The step was validated on a run of the two-baffle test muffler, with a reference transmission loss imported through the import window.

Valid range

Frozen data

A dataset does not follow later changes to the run it came from; send it again after a new run.

Interpolation

Operations between curves use only the overlap of their xx ranges and never extrapolate.