removeFFTresultFiles impure function

Requirements.ChecksInFixedWindow_withFFT.Internal.removeFFTresultFiles  · source

Icon of removeFFTresultFiles

Remove FFT results files of previous simulation runs of the current model (if they exist)

Extends Modelica.Icons.Function

Removes the result files FFT.* of previous simulation runs from directory resultDirectory, if this directory exists, and prints a message. The files are found by the protected function removeFFTresultFiles2, which deletes all files whose name starts with "FFT.". Called once at initialization by PartialFFT with the name of the simulated model as directory, so that the result files of a new run (see saveFFTonFile) are not mixed with old ones.

Revisions

DateDescription
Nov. 29, 2015Initial version implemented by Martin R. Kuhn and Martin Otter (DLR Institute of System Dynamics and Control)
The research leading to these results has received funding from the European Union’s Seventh Framework Programme (FP7/2007-2016) for the Clean Sky Joint Technology Initiative under grant agreement no. CSJU-GAM-SGO-2008-001.

Inputs

NameTypeDescription
resultDirectory inputStringExisting directory where the results are stored