Transient waveforms (V1)
In TRAFOLO, transient simulations require a defined transient waveform. Users can generate basic waveforms parametrically, like square, sine, and triangular waveforms. However, since transformers and inductors are typically part of power converter topologies, their waveforms often differ from these basic shapes. To address this, TRAFOLO provides an option to import waveforms as a CSV file.
For each transient waveform, TRAFOLO performs a Discrete Fourier Transform (DFT) to compute amplitude and phase. This guide will also explain how to convert a transient simulation into a harmonic analysis, transitioning from the time domain to the frequency domain.
To demonstrate the process of importing and analyzing transient waveforms, an existing Flyback transformer template in TRAFOLO is used as an example.
File Format and Importing
To accurately represent the waveform in a flyback transformer, we have to load the data in tabulated formats like Excel or CSV.
Unnecessary inrush periods can be removed by the user if required, retaining only the periods where transient waveforms have reached quasi-steady state during data import. This ensures that the analysis focuses on the steady operating conditions.

Import the file by clicking on Load From File in the Waveform tab. Correct Time, Primary Source, and Secondary Source can be selected from the drop-down list, which contains the names of all the columns in the Spreadsheet file.

Interpolating Waveforms
Primary Original and Secondary Original refer to the imported waveforms. In some cases, the imported waveforms may contain fewer data points in regions with steep amplitude variations. Enabling the Optimize Timesteps option redistributes timesteps and interpolates waveform values accordingly. This improves simulation efficiency while maintaining accuracy in waveform representation.
Click on the A icon to scale the waveform to a visible range

Algorithm 4 is chosen here since it is more robust. This algorithm identifies areas with the highest derivative and adds points there. It also considers steep changes in both primary and secondary waveforms for a balanced distribution. Choose Skip 1st period from averaged losses since the first period usually would have high errors due to mismatched phases between voltage, current, magnetic flux, and inrush currents, when compared with the rest of the periods.

Optimizing Transient waveforms
Fundamental Frequency is set for period identification. Users must also specify the number of Periods and Points per period.
In TRAFOLO, the initial magnetic flux condition is set to zero. To minimize inrush currents or voltage spikes, users should ensure that the waveform starts at a phase where the magnetic field energy is minimal. The Move By Points feature enables precise adjustment of the waveform's starting position, allowing better control over transient behavior.
Analyzing Transient Waveforms in Fourier Domain
When analyzing transient waveforms using the Discrete Fourier Transform (DFT), it is essential to ensure accurate representation of frequency components. Consider the following key aspects:
- DC Bias Verification: The 0 Hz component should be correctly accounted for. If a waveform has no inherent DC bias, it should not appear in the frequency histogram, except for minor numerical errors.
- Transformer Harmonic Analysis: In transformers, the voltage and current ratios at each frequency should align with the expected turn ratio. Any deviation may indicate leakage flux and weak coupling, affecting performance.
- Efficient Harmonic Selection: The software optimizes winding loss calculations based on a selected number of harmonics. The histogram helps identify significant harmonics, while those with negligible impact are disregarded. This reduces computation time and filters out harmonics caused by numerical noise. A smoother, sine-like waveform requires fewer harmonics for accurate representation.

On clicking the Harmonize button, the simulation type changes to harmonic.
