![]() |
POST User Guide
POST Version 9.8.1
|
Calculates the production of turbulent kinetic energy.
Tasks related to turbulence modelling.
This task computes the respective cell edge lengths in all three directions. It is limited to only structured, hexadreal meshes.
Averaged variables generated with ComputeStatistics over \(N_\alpha\) samples can be written as
\[ \overline{\phi}^{1 \to N_\alpha} = \frac{1}{N_\alpha} \sum_{i = 1}^{N_\alpha} \phi_i. \]
Assume, there are two data sets both starting at the same time step with \(N_2 > N_1\) samples. This task computes the average started at \(N_1 + 1\) via the relation
\[ \overline{\phi}^{N_1 + 1 \to N_2} = \frac{N_2 \overline{\phi}^{1 \to N_2} - N_1 \overline{\phi}^{1 \to N_1}}{N_2 - N_1} = \frac{1}{N_2 - N_1} \sum_{i = N_1 + 1}^{N_2} \phi_i. \]
Compute the first distance to the wall in wall coordinates for the wall adjacent cell (DistanceWallCoordinate) and store the results on viscous wall blocks.
\[ y^+ = \mathbf n \cdot (\mathbf x_\text{cell} - \mathbf x_\text{face}) \frac{\rho u_\tau}{\mu}. \]
with the center of the cell \(\mathbf x_\text{cell}\) and the boundary face \(\mathbf x_\text{face}\) and the face normal vector \(\mathbf{n}\).
Compute spatial Favre or Reynolds average of all variables found in 3D or 2D boundary blocks along specified index directions. The results are stored in a new block 3D/2D with only one cell/face in the homogeneous index directions.
| -index | Index direction(s) in which flow is homogeneous (must be one or more of i, j, k). (mandatory) |
i and k indices as shown in the figure for a channel flow mesh where the wall normal index direction is j.
Computes the non-dimensional cell sizes at the wall for Finite-Volume and Discontinuous-Galerkin solutions.
For FV on structured meshes, cell sizes are given along i,j,k index directions for the wall adjacent cell. For a Cartesian grid this would yield
\[ \Delta s_i^+ = \Delta x_i^+ = \Delta x_i \frac{\rho u_\tau}{\mu}. \]
The average edge length is computed as
\[ \Delta s_i = \frac{V}{A_i} \]
with the cell volume \(V\) and the area of the i-face \(A_i\).
| Symbol | Variable name |
|---|---|
| \(\Delta s_i^+\) | CellSizeWallCoordinateI |
| \(\Delta s_j^+\) | CellSizeWallCoordinateJ |
| \(\Delta s_k^+\) | CellSizeWallCoordinateK |
FV on unstructured are currently not supported.
For DG on unstructured meshes, the cell sizes are given in the stream-wise ( \(\Delta\xi\)), wall-normal ( \(\Delta\eta\)) and cross-flow ( \(\Delta\zeta\)) direction.
The cell sizes are defined as
\[ \Delta \xi = ||\frac{\partial \boldsymbol{x}}{\partial \boldsymbol{\xi}} \cdot \boldsymbol{u}||, \]
\[ \Delta \eta = ||\frac{\partial \boldsymbol{x}}{\partial \boldsymbol{\xi}} \cdot \boldsymbol{n}||, \]
\[ \Delta \zeta = ||\frac{\partial \boldsymbol{x}}{\partial \boldsymbol{\xi}} \cdot \boldsymbol{w}||. \]
Here \(\xi_i\) are the coordinates on the DG reference element, \(\boldsymbol{u}\) is the stream-wise directed vector, \(\boldsymbol{n}\) is the wall-normal vector and \(\boldsymbol{w}\) is the cross-flow vector. The stream-wise vector \(\boldsymbol{u}\) is the normed wall shear stress vector \(\boldsymbol{\tau_w}\). The cross flow direction is computed from the cross product of the stream-wise vector times the wall-normal vector ( \(\boldsymbol{w}=\boldsymbol{u}\times\boldsymbol{n}\)).
The non-dimensionalization is then given by
\[ \Delta \square^+ = \frac{\rho u_\tau }{\mu}\frac{\Delta \square}{N}, \]
where \(N\) is the polynomial degree of the ansatz function of the solution, \(\rho\) the density, \(\mu\) the molecular viscosity and \(u_\tau\) the friction velocity on the wall.
| Symbol | Variable name |
|---|---|
| \(\Delta \xi^+\) | CellSizeWallCoordinateXi |
| \(\Delta \eta^+\) | CellSizeWallCoordinateEta |
| \(\Delta \zeta^+\) | CellSizeWallCoordinateZeta |
This task computes the maximum edge length of each cell and stores a fix value for maximum direction. Xi = 1 Eta = 2 Zeta = 3 Xi and Eta = 4 Xi and Zeta = 5 Eta = Zeta = 6 All three edges have the same length = 7
Transforms the Reynolds stress tensor components \(\uu ij^{xyz}\) from a Cartesian to a cylindrical basis \(\uu ij^{xr\theta}\). This is done using the transformation
\[ \uu{i}{j}^{xr\theta} = R_{ip}^{xyz \to xr\theta} \uu{p}{q}^{xyz} \left(R^{xyz \to xr\theta}\right)_{qj}^T. \]
with the transformation matrix
\[ \mathbf R^{xyz \to x r \theta} = \begin{pmatrix} 1 & 0 & 0 \\ 0 & \cos \theta & \sin \theta \\ 0 & -\sin \theta & \cos \theta \end{pmatrix}. \]
Summation over three components is implied if index occurs twice within a product.
Apply the following realizability conditions to the Reynolds stress tensor \(\uu ij\) (no summation over greek indices):
\[ \uu \alpha \alpha \to \max \left[ \uu \alpha \alpha, \epsilon \right] \]
with a small positive value \(\epsilon\) to avoid divisions by zero.\[ \uu \alpha \beta \to \sgn \left( \uu \alpha \beta \right) \sqrt{\uu \alpha \alpha \cdot \uu \beta \beta} \quad \text{if} \quad \uu \alpha \beta ^2 > \uu \alpha \alpha \uu \beta \beta. \]
The Reynolds stress anisotropy tensor can be defined as
\[ a_{ij} = \frac{\uu ij}{k} - \frac 2 3 \delta_{ij} \]
with the turbulent kinetic energy
\[ k = \frac 1 2 \uu ii. \]
The task returns the anisotropy tensor using the above definition.
Instead of Lumley's invariant map, a barycentric map can be constructed using the eigenvalues of \(a_{ij}\) [1] . In principal coordinates, the spectral theorem states that the anisotropy tensor
\[ a_{ij} = \frac{\uu ij}{k} - \frac 2 3 \delta_{ij} \]
can be constructed as a linear combination
\[ \hat a_{ij} = C_{1C} \hat a^{1C}_{ij} + C_{2C} \hat a^{2C}_{ij} + C_{3C} \hat a^{3C}_{ij} \]
of its limiting states one-component (1C), isotropic two-component (2C) and isotropic (3C) turbulence with the weights
\begin{eqnarray*} C_{1C} &=& \frac 1 2 (\lambda_1 - \lambda_2) \\ C_{2C} &=& \lambda_2 - \lambda_3 \\ C_{3C} &=& \frac 3 2 \lambda_3 + 1 \end{eqnarray*}
given by the ordered eigenvalues of the anisotropy tensor
\[ \lambda_1 > \lambda_2 \quad \text{and} \quad \lambda_3 = - (\lambda_1 + \lambda_2). \]
The map is constructed by introducing the barycentric coordinates which can be chosen as
\[ x_B = C_{1C} + \frac 1 2 C_{3C} \quad \text{and} \quad y_B = \frac{\sqrt 3}{2} C_{3C}. \]
The concept introduced above has been taken a step further with the idea to use the weights as RGB colour channels to assign a unique colour to each state in the barycentric map [4] . The direct mapping of weight to channel is shown in the figure (right) with the one-component weight \(C_{1C}\) assigned to red, the isotropic two-component weight \(C_{2C}\) assigned to green and the isotropic weight \(C_{3D}\) assigned to blue.
The weights can be scaled with
\[ C_i' = (C_i + c_\text{offset})^{c_\text{exponent}} \]
with the coefficients given as optional parameters. This results in modified colour maps.
The task returns the eigenvalues, barycentric coordinates and scaled barycentric weights.
| -offset | Offset \(c_\text{offset}\) for barycentric weight (default 0) (optional) |
| -exponent | Exponent \(c_\text{exponent}\) for barycentric weight (default 1) (optional) |
Calculates the invariants \(A_2\), \(A_3\) and \(A\) of the Reynolds stress anisotropy tensor. \(A\) is Lumley's two-componentiality factor which goes to zero in the limit of two-component turbulence.
\[ II = A_2 = a_{ij} a_{ji} \]
\[ III = A_3 = a_{ij} a_{jk} a_{ki} \]
\[ A = 1 - \frac 9 8 (A_2 - A_3) \]
Calculates the production of turbulent kinetic energy according to the Kato-Launder model.
Compute the turbulent kinetic energy production term according to Kato & Launder [8] :
\[ P_k = \frac{\mu_T}{\rho} S \Omega \]
With the strain norm
\[ S = \sqrt{2 S_{ij} S_{ij}}, \quad S_{ij} = \frac{1}{2} \left( \frac{\partial U_i}{\partial x_j} + \frac{\partial U_j}{\partial x_i} \right) \]
and the vorticity norm
\[ \Omega = \sqrt{2 \W{ij} \W{ij}}, \quad W_{ij} = \frac{1}{2} \left( \frac{\partial U_i}{\partial x_j} - \frac{\partial U_j}{\partial x_i} \right) \]
based on gradients of the absolute velocity.
The Reynolds stress anisotropy tensor can be defined as
\[ a_{ij} = \frac{\uu ij}{k} - \frac 2 3 \delta_{ij} \]
with the turbulent kinetic energy
\[ k = \frac 1 2 \uu ii. \]
The task returns the perturbed anisotropy tensor using the above definition. It is useful, if the perturbation framework for the quantification of turbulence model uncertainties used.
Calculates the production of turbulent kinetic energy.
\[ P_k = - \widetilde{u_i'' u_j''} S_{ij} \]
Compute the turbulent kinetic energy production term from Reynolds stresses and velocity gradients:
\[ P_k = - \widetilde{u_i'' u_j''} S_{ij} \]
Compute the Reynolds stresses for solutions obtained from linear eddy viscosity models (LEVM).
\[ \uu ij = - 2 \nu_T S_{ij} + \frac 2 3 k \delta_{ij} \]
Compute the Reynolds stresses for solutions obtained from explicit algebraic Reynolds stress models (EARSM).
\[ \uu ij = \uu ij^\text{Boussinesq} + k a_{ij}^\text{ex} \]
- \ref sec_grad - \ref sec_calcStrainRateTensor - \ref sec_calcReynoldsStressesBoussinesq.
This task computes all available subgrid length scales. It may help to see the influence of different length scales by evaluating a RANS precursor simulation or to evaluate a finished hybrid RANS/LES simulation. Available length scale approaches are following:
| -hybridApproach | Sets the applied hybrid approach (DES, DDES, IDDES). |
| -subgridApproach | Sets the applied subgrid length scale approach (optional, default = GridBased, Chauvet, Probst, Mockett, Shur). |
- \ref sec_desEvaluation (recommended entire process chain for DES evaluation)
Calculates the turbulence intensity.
\[ TI = \sqrt \frac{2 * k}{3 u_{norm}**2} \]
| -sgs | Flag to include sub-grid Reynolds stresses. Differs between modeled and resolved TKE. |
Calculates the turbulent kinetic energy from normal Reynolds stresses.
\[ k = \frac 1 2 \widetilde{u_i'' u_i''} \]
| -sgs | Flag to include sub-grid Reynolds stresses. Differs between modeled and resolved TKE. |
| -ratio | Flag to compute the ratio of resolved and total turbulent kinetic energy. This option is only possible, if -sgs option is also called. |
This task computes the physical turbulent length scale via
\[ l_\mathrm{T} = \frac{\sqrt{k}}{\omega} \]
This task computes the DES blending function originally proposed by Strelets [17]. It blends between upwind (1) and central (0) discretisation and is given by
\[ \texttt{DESBlendingKW/DESBlendingSST} = \sigma_\max \tanh \left( A^{C_{H1}} \right) \]
with
\begin{eqnarray} A &=& C_{H2} \max \left( \frac{C_\text{DES} \Delta}{g L_\text{turb}} - 0.5, 0 \right) \\ L_\text{turb} &=& \sqrt{\frac{\nu_T + \nu}{\beta_k^{\frac 3 2} K}} \\ K &=& \max \left( \sqrt{\frac{S^2 + W^2}{2}}, \frac{0.1}{\tau^*} \right) \\ g &=& \tanh B^4 \\ B &=& \frac{C_{H3} W \max (S, W)}{\max \left( \frac{S^2 + W^2}{2}, 10^{-20} \right)}. \end{eqnarray}
The convective time scale is obtained from the command line parameter via
\[ \tau^* = \tau \frac{a_0}{L_0}. \]
\(\Delta\) is the related subgrid length scale and depends on applied approach (see calcSubgridLengthScale).
\( S, W, \nu_t\) and \(\nu\) are the strain norm, vorticity norm, eddy viscosity and molecular viscosity respectively.
The KW and SST/SA versions are distinguished by their respective DES constant:
| Model | \(C_\text{DES}\) |
|---|---|
KW | 0.78 |
SST/SA | 0.65 |
The remaining constants are chosen as
\[ \sigma_\max = 1.0, \quad C_{H1} = 3.0, \quad C_{H2} = 1.0, \quad C_{H3} = 2.0. \]
| -basisModel | Sets the applied basis model (SpalartAllmaras, Wilcox1988 or MenterSST2003). |
| -tau | Characteristic time scale (in seconds) set in GMC for blending scheme. |
| -additionalOutput | Allows additional output for deeper analysis of obtained results. Therefore intermediate determined terms are also computed and stored in output file. |
- \ref sec_desEvaluation (recommended entire process chain for DES evaluation)
This task computes the elevating function of Shur [13] for IDDES simulation.
\[ f_e = \max \left( f_{e1} - 1, 0 \right) f_{e2} \]
with
\[ f_{e1}(d_w/\Delta_{SLS}) = \begin{cases} 2 \exp (-11.09 \alpha^2) & \text{if } \alpha \ge 0\\ 2 \exp (-9.0 \alpha^2) & \text{if } \alpha < 0 \end{cases} \]
and
\[ f_{e2} = 1.0 - \max \left( f_t, f_l \right) \]
where \(f_t = \tanh[(c_t^2 r_{dt})^3]\) and \(f_l = \tanh[(c_l^2 r_{dl})^{10}]\) with
\[ r_{dl} = \frac{\mu}{\rho \kappa^2 y_n^2 \sqrt{\parfrac{U_i}{x_j} \parfrac{U_i}{x_j}}} \]
and
\[ r_{dl} = \frac{\mu_t}{\rho \kappa^2 y_n^2 \sqrt{\parfrac{U_i}{x_j} \parfrac{U_i}{x_j}}} \]
The constants \(c_t\) and \(c_l\) are calibrated constants in TRACE. The value \(\alpha\) is the same as in desShieldingFunctionSpalart.
| -kappa | Log law constant applied within DES shielding function \(\kappa\) (optional, default value \(\kappa = 0.4\)). |
- \ref sec_desEvaluation (recommended entire process chain for DES evaluation)
This task is a process chain to obtain all relevant DES related variables for evaluation.
| -hybridApproach | Sets the applied hybrid approach (DES, DDES, IDDES). |
| -basisModel | Sets the applied basis model (SpalartAllmaras, Wilcox1988 or MenterSST2003). |
| -tau | Characteristic time scale (in seconds) set in GMC for blending scheme. |
| -subgridApproach | Sets the applied subgrid length scale approach (optional, Default = GridBased, Chauvet, Probst, Mockett, Shur). |
| -additionalOutput | Activates additional output of intermediate terms for blending and shielding function. |
| -kappa | Log law constant applied within DES shielding function \(\kappa\) (optional, default value \(\kappa = 0.4\)). |
| -retain | Flag to keep intermediate process variables and prevent deletion process. |
| -var | Option to redefine variables which should be deleted from dataset. By default gradient and strain rate tensors will be removed. |
- \ref sec_calcMolecularViscosity - \ref sec_grad - \ref sec_calcStrainRateTensor - \ref sec_calcVorticityVector - calcTurbulentLenghtScale/ctls - \ref sec_desElevatingFunctionShur - \ref sec_calcSubgridLengthScale (executed only if not available in input CGNS, may be obtained from \b TRACE simulation, see \ref sec_WriteSubgridLengthScale) - \ref sec_desBlendingFunction - \ref sec_desShieldingFunctionSpalart - \ref sec_desLengthScale - \ref sec_desLengthScaleRatio - \ref sec_deletePhysics (may be deactivated by user input)
This task computes the DES length scale for each hybrid approach and basis model.
DES:
\[ l_\mathrm{DES} = l_{RANS} - \max \left( 0, l_\mathrm{RANS} - C_\mathrm{DES} \Delta_\mathrm{SLS} \right) \]
DDES:
\[ l_\mathrm{DDES} = l_\mathrm{RANS} - f_d \max \left( 0, l_\mathrm{RANS} - l_\mathrm{LES} \right) \]
For higher numerical stability implemented as:
\[ l_\mathrm{DDES} = \min \left( \left(1 - f_d \right) l_\mathrm{RANS} + f_d l_\mathrm{LES}, l_\mathrm{RANS} \right) \]
with \(l_\mathrm{LES} = C_\mathrm{DES} \Delta_\mathrm{SLS}\).
IDDES:
\[ l_\mathrm{IDDES} = \tilde f_d (1 + f_e) l_\mathrm{RANS} + (1 - \tilde f_d) C_\mathrm{DES} \Delta_\mathrm{SLS} \]
Important: For IDDES simulations, the shielding factor \(\tilde f_d\) behaves contradictory to \(f_d\) from DDES. That means, while \(f_d = 0\) states fully RANS-mode, \(\tilde f_d = 0\) states fully LES-mode. For further details see [13] .
The DES constant \(C_\mathrm{DES}\) is documented in desBlendingFunction.
| -hybridApproach | Sets the applied hybrid approach (DES, DDES, IDDES). |
| -basisModel | Sets the applied basis model (SpalartAllmaras, Wilcox1988 or MenterSST2003). |
- \ref sec_desEvaluation (recommended entire process chain for DES evaluation)
This task computes the DES length scale ratio. It is the ratio between the RANS length scale and the determined DES length scale computed in desLengthScale. Depending on the basis model, the turbulent length scale (for kw and sst) or turbulent distance (for sa) is defined as RANS length scale, because it is the relevant value in respective destruction term.
| -hybridApproach | Sets the applied hybrid approach (DES, DDES, IDDES). |
| -basisModel | Sets the applied basis model (SpalartAllmaras, Wilcox1988 or MenterSST2003). |
- \ref sec_desEvaluation (recommended entire process chain for DES evaluation)
This task computes the shielding function for DDES as suggested by Spalart [16] or IDDES as proposed by [13].
\[ r_d = \frac{\mu_T + \mu}{\rho \kappa^2 y_n^2 \sqrt{\parfrac{U_i}{x_j} \parfrac{U_i}{x_j}}} \]
and
\[ f_d = 1 - \tanh \left( \left[ C_{D1} r_d \right]^3 \right) \]
For IDDES, we have
\[ r_d = \frac{\mu_T}{\rho \kappa^2 y_n^2 \sqrt{\parfrac{U_i}{x_j} \parfrac{U_i}{x_j}}}. \]
and
\[ \tilde f_d = \max \left( 1 - f_d, f_B \right) \]
with
\[ f_B = \min \left( 2 * \textrm{exp} (-9.0 \alpha^2), 1.0 \right) \]
whereas \(\alpha = 0.25 - d / \Delta_{SLS}\) and d is the distance to the wall for each cell.
Values for \(C_{D1}\) are different for turbulence models:
| Model | \(C_{D1}\) | Reference |
|---|---|---|
| Wilcox k-w | 8 | [16] |
| Menter SST | 20 | [6] |
| -hybridApproach | Sets the applied hybrid approach (DDES, IDDES). |
| -basisModel | Sets the applied basis model (SpalartAllmaras, Wilcox1988 or MenterSST2003). |
| -additionalOutput | Activates additional output for deeper analysis of obtained results. Therefore intermediate determined terms are also computed and stored in output file. |
| -kappa | Log law constant applied within DES shielding function \(\kappa\) (optional, default value \(\kappa = 0.4\)). |
- \ref sec_desEvaluation (recommended entire process chain for DES evaluation)