Estimates the turbulent viscosity using k-epsilon model (http://turbmodels.larc.nasa.gov/ke-chien.html).
The kEpsilonOperator implements the right-hand side of the “Standard” Menter SST Two-Equation Model:
The full details of this model, including the definition of the various constants, etc. can be found at (http://turbmodels.larc.nasa.gov/ke-chien.html)
The kEpsilonOperator operator computes the right-hand side of this model:
The advective terms, \(\nabla \cdot \left[ \rho \mathbf{u} k \right]\) and \(\nabla \cdot \left[ \rho \mathbf{u} \omega \right]\) can be computed using classicMusclUpdater (1d, 2d, 3d) combined with multiSpeciesSingleVelocityEqn.
in
(string vector of 7, required)Fluid Model
(nodalArray, 5-components, required)The vector of conserved quantities for the fluid model, \(\mathbf{q}\) has 5 entries:
Turbulence model
(nodalArray, 2-components, required)The vector of conserved quantities for the turbulence model:
Fluid velocity
(nodalArray, 3-components, required)Vector of fluid velocities, required if enableViscous = true:
Fluid Temperature
(nodalArray, 1-components, required)
Dynamic Viscosity
(nodalArray, 1-components, required)
Thermal Conductivity
(nodalArray, 1-components, required)
Distance from Wall
(nodalArray, 1-components, required)
out
(string vector of 4, required)Vector of Fluid Model Source terms
(nodalArray, 5-components, required)
- \(\mathcal{S}\left( \rho \right)\): mass source
- \(\mathcal{S}\left( \rho\,u_{\hat{\mathbf{i}}} \right)\): \(\hat{\mathbf{i}}\) momentum source
- \(\mathcal{S}\left( \rho\,u_{\hat{\mathbf{j}}} \right)\): \(\hat{\mathbf{j}}\) momentum source
- \(\mathcal{S}\left( \rho\,u_{\hat{\mathbf{k}}} \right)\): \(\hat{\mathbf{k}}\) momentum source
- \(\mathcal{S}\left( E \right)\): total energy source
Vector of Turbulence Model Source terms
(nodalArray, 2-components, required)
- \(\mathcal{S}\left( \rho k \right)\)
- \(\mathcal{S}\left( \rho \epsilon \right)\)
Turbulent viscosity
(nodalArray, 1-component, required)
Maximum turbulent diffusion
(nodalArray, 1-component, required)
The kEpsilonOperator updater accepts the parameters below, in addition to those required by Updater:
numberOfInterpolationPoints
(integer, required)Number of points to be considerd for the least squares fit. This parameter varies from mesh to mesh and should be determined by computing a known function on the mesh.
The numberOfInterpolationPoints must be greater than (or equal to) the number of coefficients in the polynomial approximation. This means that in 1d the value is 4, in 2D the value is at least 6 and in 3D the value is at least 10.
These choices do not guarantee that a matrix inverse will be found. The following values though appear to be adequate in general: in 1D 4; in 2D 8 and in 3D 20.
orderAccuracy
(integer, option)turbulentPrandtlNumber
(float, required)Cp
(float, required)minDt
(float, required)computeViscosity
(bool, required)computeSource
(bool, required)<Updater computeRansSource>
kind = kEpsilonOperator2d
onGrid = domain
coefficient = 1.0
numberOfInterpolationPoints = 16
turbulentPrandtlNumber = 0.85
minDt = MINDT
computeViscosity = false
computeSource = true
Cp = CP
in = [q, kEpsilon, velocity, temperature, visc, cond, distance]
out = [dummySource, kEpsilonSource, turbulentViscosity, maxTurbulentDiffusion]
</Updater>