POST User Guide  POST Version 9.8.1
Unsteady Dataset Postprocessing

Tasks that are needed for handling unsteady datasets. (e.g. time averaging, creating master cgns)

inverseDiscreteFourierTransform

Compute the inverse discrete Fourier transform of a given Fourier data set.

Usage
--inverseDiscreteFourierTransform/-idft -t <value>
Parameters
-tabsolute time in seconds (mandatory)
Example
--inverseDiscreteFourierTransform/-idft -t 1.234
Note
When restarting an unsteady simulation from a reconstructed solution a phase shift can occur between the original and restarted simulation.
To avoid this, reconstruct the restart solution at the begin of a period, eg. t=0.
Parent tasks
Since
7.3

localCFL

Computes the local CFL number based on the physical time step

\[ \Delta t = \frac{1}{f n_\mathrm{steps}} \]

determined by the frequency \(f\) and the number of time steps per period \(n_\mathrm{steps}\) or for a user-specified time-step size using the sub-option -dt.

Finite Volume discretization:

Compute the CFL number either (default) according to Blazek 2001: Computational Fluid Dynamics: Principles And Applications or using the minimal edge length (sub-option -useEdgeLength).

Structured mesh:

\begin{equation} CFL = \frac{\Delta t (\lambda_1 + \lambda_2 + \lambda_3)}{V} \end{equation}

with

\begin{eqnarray}\lambda_1 &=& \left(u \cdot \frac{1}{2}\left(\hat{n}^L_1 + \hat{n}^R_1\right) + a\right)\frac{1}{2}\left(A^L_1 + A^R_1\right) \\ &\approx& \frac {u \cdot \xi}{J} + \frac{a}{2}\left(A^L_1 + A^R_1\right) \\ &=& \frac {U}{J} + \frac{a}{2}\left(A^L_1 + A^R_1\right) \\ \lambda_2 &=& \frac {V}{J} + \frac{a}{2}\left(A^L_2 + A^R_2\right) \\ \lambda_3 &=& \frac {W}{J} + \frac{a}{2}\left(A^L_3 + A^R_3\right) \end{eqnarray}

where \(u\) is the local velocity vector, \( a\) the local speed of sound, \( J = 1/V\) the cell Jacobian, \( A^{L/R}_1\) the areas of the "left" and "right" cell interfaces (spatial direction "1"), etc. and \( \xi = [\xi_x, \xi_y, \xi_z]^T \approx \frac{J}{2}\left[\left(A^L\hat{n}^L_x + A^R\hat{n}^R_x \right), \left(A^L\hat{n}^L_y + A^R\hat{n}^R_y \right), \left(A^L\hat{n}^L_z + A^R\hat{n}^R_z \right)\right]\) the cell metrics. Grouping the speed of sound terms together we can then compute the CFL number as

\begin{equation} CFL = \Delta t (U + V + W + a G J) \end{equation}

where

\begin{equation} G = \sum_{i=1}^{3}\frac{1}{2}\left(A^L_i + A^R_i\right) \end{equation}

Note, in TRACE we have

\begin{equation} CFL = \Delta t (U' + V' + W' + a G) J \end{equation}

where \( U' = \frac{U}{J} \), etc. due to the different definition of the metric terms.

Unstructured mesh:

\begin{equation} CFL = \frac{\Delta t (\sum_{i=1}^{N}\lambda^F_i)}{V} \end{equation}

with \(\lambda^F_i = A_{i}\left(u^{F_i}\cdot\hat{n}_i + a\right)\) the area-weighted eigenvalue of the i-th face.

When using the smallest edge length the local CFL numbers is calculated as follows:

\begin{eqnarray} \mathrm{CFL} &=& \frac{(u + a) \Delta t}{\min_i l_i} \\ \mathrm{CFL}_\mathrm{convective} &=& \frac{u \Delta t}{\min_i l_i} \end{eqnarray}

with local velocity norm \(u\), speed of sound \(a\), the edge length \(l_i\) of edge \(i\) and the physical time step.

Discontinuous Galerkin discretization:

The estimation is based on the curvilinear convective eigenvalues on each node and are scaled with the polynomial approximation order. Yet, in contrast to TRACE, the different time-integration schemes do not affect the output CFL number, although they possibly allow different CFL limits. Details for DG can be found in "Explicit One–Step Time Discretizations for Discontinuous Galerkin and Finite Volume Schemes Based on Local Predictors", G. Gassner, M. Dumbser, F. Hindenlang, C.-D. Munz (2011).

Note
CFL estimation is currently only implemented for DGSEM with either Legendre-Gauss-Lobatto or Legendre-Gauss points.
Usage
--localCFL/-lCFL [-dt <Time step size in seconds>]
Parameters
-dtTime step size in seconds
Precondition
  • Cartesian coordinate system
  • Cell centered flow solution or DG coefficients
  • 3D mesh
Warning
Can only be used if time step was configured using frequency and number of time steps per period or the time-step size is specified explicitly.
Note
If a steady data set is processed, CFL is set to 0.
Since
9.1.143

timeAverage

This task computes the time average of fields, band and block integral data.

Usage
--timeAverage/-ta
Example
Read a series of pictures and compute average:
--input picture_%d/TRACE.cgns --timeAverage
Precondition
  • Movie data set
Note
Family integral data are calculated from the block integral data by the averagingInversion task. The family integral data are therefore not computed with this task.
Since
7.3

timeDistanceDataset

This task creates a 2D time-distance dataset.

Usage
--timeDistanceDataset/-tdd [-name <S1cut_names>] [-baseFrequency <frequency>]
Parameters
-nameNames of the airfoil section cuts to be merged. e.g. row02Blade002_3dH050.00. (mandatory)
-baseFrequencyBase frequency to create a normalized time variable (normalizedTime = time*baseFrequency). (optional)

The tdd-task expects S1-Cuts of unsteady data in the form of pictures.
In case of a TRACE.fourier.cgns the reconstructTimeHistory (-rth) task has to be executed in advance. In case of movie-files no -rth is needed.

Example
  • For fourier dataset
    --input S1_cuts.fourier.cgns -rth -f 1000 -nPics 10 --timeDistanceDataset -name row02Blade002_3dH050.00 row02Blade002_3dH090.00 -baseFrequency 1333.333
  • For movie dataset
    --input picture_%d/S1_cut.cgns --timeDistanceDataset -name row02Blade002_3dH050.00 row02Blade002_3dH090.00 -baseFrequency 1333.333
Precondition
S1-cuts of unsteady data (fourier or movie dataset)
Since
9.3
See also
S1 Blade Cuts
reconstructTimeHistory

duplicateAndReconstructFourierData

Duplicate blocks and rotate by pitch.

Usage
--duplicateAndReconstructFourierData/-darf [optionalOption] <optionalOption>
Parameters
-tAbsolute time in seconds.
-nSegmentsRequired number of segments. (optional)
-annulusDuplicates data to create full annulus (rotational, only). (optional)
-pitchCreate segments with the specified pitch (degrees or meters). (optional)
Example
--duplicateAndReconstructFourierData/-darf -pitch 22.5 -t 0.0
Precondition
Fourier data
Note
When restarting an unsteady simulation from a reconstructed solution a phase shift can occur between the original and restarted simulation.
To avoid this, reconstruct the restart solution at the begin of a period, eg. t=0.
Since
9.0

discreteFourierTransform

Perform a discrete Fourier transform of a movie data set for a specified list of harmonics of the base frequency \(f_0\). The real part \(\Re (\hat \phi_k)\) and imaginary part \(\Im (\hat \phi_k)\) of the coefficients of the harmonic \(k\) of a quantity \(\phi\) are defined as follows:

\begin{eqnarray} \Re (\hat \phi_0) &=& \frac 1 N \sum_{n = 1}^N \phi_n \\ \Im (\hat \phi_0) &=& 0 \\ \Re (\hat \phi_k) &=& \frac 2 N \sum_{n = 1}^N \phi_n \cos (2 \pi k f_0 t_n) \\ \Im (\hat \phi_k) &=& - \frac 2 N \sum_{n = 1}^N \phi_n \sin (2 \pi k f_0 t_n) \\ \end{eqnarray}

\(N\) denotes the number of pictures in the unsteady data set. The base frequency \(f_0\) is obtained from the CGNS file.

Usage
--discreteFourierTransform/-dft -hl <integer list>
Parameters
-hlList of harmonics to be computed. (mandatory)
Example
  • Compute harmonics 1, 2, 3, 5, 7:
    --input picture_%d/TRACE.cgns --discreteFourierTransform -hl 1-3 5 7
  • Compute harmonics 0, 1, 2, 3, 4:
    --input picture_%d/TRACE.cgns --discreteFourierTransform -hl 0-4
Precondition
  • Movie data set
Since
7.3

reconstructTimeHistory

Reconstruct time history from Fourier data.

Usage
--reconstructTimeHistory/-rth -nPics <value> -f <value>
Parameters
-nPicsnumber of pictures to be created (mandatory)
-ffrequency to use in reconstruction of time history (mandatory)
Example
--reconstructTimeHistory/-rth -nPics 32 -f 4711.0815
Precondition
Fourier Data Set
Automatically executed tasks
Since
7.3

reynoldsStresses

Compute the products of fluctuating velocities needed for the evaluation of the Reynolds stress tensor. For this purpose, the mean velocity must have been subtracted from the instantaneous velocity using diffFlowFields. The results of this task then need to be time averaged to obtain the Reynolds stresses. The complete process chain is described in Resolved Reynolds stresses from time series.

Usage
--calcReynoldsStresses/-crs
Since
8.2