TRACE User Guide  TRACE Version 9.8.1
Harmonic Balance solver

Basic idea of the Harmonic Balance approach

The Harmonic Balance solver in TRACE [14] solves the unsteady RANS equations in the frequency domain. In contrast to the linearised solver (linearTRACE) it is not based on the assumption on small amplitudes. Instead of the unsteady RANS equations,

\begin{equation} \frac{\partial \mathbf q}{\partial t} + \mathbf R(\mathbf q ) = 0 \end{equation}

we solve for the Fourier harmonics of the flow

\begin{equation} \mathbf q(t,\mathbf x) = \Re \left[ \sum_{\omega} \widehat {\mathbf q}_\omega (x) e^{\cI \omega t} \right], \end{equation}

for a small set of frequencies \(f = \frac \omega {2\pi}\), specified by the user.

For each angular frequency \(\omega\), the Harmonic Balance equation thus reads

\begin{equation} \cI \omega \widehat {\mathbf q}_\omega + \widehat {\mathbf R(\mathbf q)}_\omega = 0. \end{equation}

Here, \(\widehat {\mathbf R(\mathbf q)}_\omega\) denotes the discrete Fourier transform of the nonlinear residual evaluated at an appropriate set of sampling points.

Harmonic Sets

The harmonics are characterised not only by their frequency but by the pair of frequency and interblade phase angle. A harmonic set is given by a base frequency \(f\) and base interblade phase angle, and a finite number of harmonic indices \(k \ge 0\), e.g.

\begin{equation} f = 1000 \mathrm{Hz}, \quad \sigma = 90^\circ,\quad \mathcal{K} = \{0,1,2,3\}, \end{equation}

for a simulation of a periodic disturbance with three higher harmonics.

Sampling Points

Denoting the highest harmonic index of a harmonic set by \(k_{\max}\), TRACE uses

\begin{equation} N = \alpha k_{\max} + 1 \end{equation}

sampling points. By the Nyquist theorem \(\alpha \ge 2\). Note that a period of the highest harmonic is resolved by

\begin{equation} \alpha + 1 \end{equation}

sampling points. In TRACE, this number can be specified by the user. Hence, the lower bound defined by the Nyquist criterion is used if the user specifies a minimum of 3 sampling points per wave length. The default is 5.

Applications

The Harmonic Balance approach may be used for various applications:

  • Aeroelasticity, i.e. flutter and forced-response analysis. [1]
  • Tonal noise problems in aeroacoustics.
  • Deterministic unsteady effects on aerodynamic performance.
  • Transport of rotational flow asymmetries through an engine component.
  • Etc.

Solution technique

The Harmonic Balance system is solved analogously to the steady equations by a pseudo-time stepping approach.

Treatment of turbulence

Solving the turbulence models in HB does require a bit more thought than for (U)RANS. In HB, the data from the last iteration can no longer be used. As shown in the figure, the flow and turbulence variables are reconstructed for one sampling point after the other. If a dependency is not correctly taken into account, this means that uninitialised fields or data from a different sampling point are used. Unlike the (U)RANS iteration, this is not eliminated by convergence. Such inaccuracies do not necessarily lead directly to divergence. Usually the last sampling point will be similar to the current one, so the derived quantities will have similar values. However, this is no longer the case in areas of high instationarity. For example, a transient wake will show strong fluctuations in \(\omega\) and also in other variables. Here, outdated data can have a stronger influence on the calculation of the residual and thus also disturb the simulation. In order to increase stability and robustness, the programme sequence for calculating the turbulence variables was changed to the sequence shown in the figure below. On one hand, the aim was to ensure that there are only downward dependencies, i.e. that outdated data is not used. On the other hand, the special communication structure for the MPI parallelization of HB had to be taken into account when calculating gradients and exchanging tensors, so that correct data is available even in ghost cells.

Some steps of the (U)RANS process were split up in order to be able to better position elements with different dependencies. In the picure, some steps are therefore shown hatched. This is the part of the operations that is only applied to the main equations. The boundary conditions for the velocities should be applied before these velocities are used to determine the velocity gradients. However, they are required for the boundary conditions of the turbulence equations where the norm of the shear rate tensor can be used. For this reason, the boundary conditions and the calculation of the gradients were split up and carried out successively for the main equations and then for the turbulence equations. For the SSG/LRR- \(\omega\) model, the \(\omega\) equation also contains the gradient of \(k\). However, since \(k\) is not a solution variable, but only a derived variable, there are no harmonics of \(k\) and therefore no time-accurate field of \(k\) can be determined for the sampling points. In the (U)RANS solver, on the other hand, calculations can be performed directly with the \(k\) field. Instead of using additional computing resources and memory for the calculation of additional harmonics, the gradient can also be calculated from the Reynolds stresses. In HB, when using SSG/LRR- \(\omega\), the gradient of \(k\) is therefore calculated from the gradients of the Reynolds stresses after these have been determined. It has also been revised when and how auxiliary variables and derived variables such as the production term of \(k\) or the eddy viscosity \(\mu_T\) are calculated. There are relatively many dependencies here, so both have been moved down. For the turbulence models SST k- \(\omega\) and SSG/LRR- \(\omega\), however, a circular dependency can occur here. In SST, the functions F1-F3 are used to calculate \(\mu_T\). However, these are only determined in the next step, the calculation of the auxiliary variables. Here again there is a dependency on \(\mu_T\). Therefore, the calculation of the derived variables is carried out again if necessary. In contrast to the (U)RANS solver, the calculated residual is not used directly to set up the system of equations, but is transformed into the frequency domain using an FFT. The next sampling point is then reconstructed and the sequence starts again.

Boundary conditions and periodic boundaries

All solid wall boundary conditions as well as leakage inlet/outlet conditions can be used. At periodic boundaries the phase-lag boundary condition is automatically applied.

At inlets 1D and 2D exact non-reflecting boundary conditions should be used. Modal gust disturbances can be prescribed for all harmonics in the frequency and wave number domain, similar to the capabilities of linearTRACE .

Moreover, Riemann boundary conditions can be used for the \(0\)-th harmonic, including the possibility to prescribe a 2D distribution of entry or exit boundary values, e.g. total quantities and flow angles at the inlet.

Frequency Detection

When a harmonic set is used to resolve a self-sustained flow instability its frequency can be estimated from an appprimate HB solution as the frequency that minimizes the current L2 residual. Neglecting the frequency dependency of the flow residual harmonics the sum of the L2 resiudals of the \(k\)-th harmonics is

\[ \sum_k \| \I k \Delta \omega \widehat{(Vq)}_k + R_k^{\mathrm{HB}} \|^2 = \Delta \omega^2 \sum_k k^2 \|\widehat{(Vq)}_k \|^2 + 2 \sum_k \Re \langle {\I \Delta \omega k \widehat{(Vq)}_k}, {R_k^{\mathrm{HB}}}\rangle + ... = \left( \Delta \omega \sqrt{\sum_k k^2 \|\widehat{(Vq)}_k \|^2} + \frac{\sum_k \Re \langle{\I k \widehat{(Vq)}_k},{R_k^{\mathrm{HB}}}\rangle }{\sqrt{\sum_k k^2 \|\widehat{(Vq)}_k \|^2}} \right)^2 + ... \]

A frequency correction \(\Delta\Omega\) can be obtained by setting the term in the parentheses to zero. \(k\) either runs over all or just one harmonic of a harmonic set.