2. Supported Equation Set
This section provides an overview of the currently supported equation sets. Equations will be described in integral form with assumed Favre averaging. However, the laminar counterparts are supported in the code base and are obtain in the user file by omitting a turbulence model specification.
2.1. Conservation of Mass
The continuity equation is always solved in the variable density form.
Since Nalu-Wind uses equal-order interpolation (variables are collocated) stabilization is required. The stabilization choice will be developed in the pressure stabilization section.
Note that the use of a low speed compressible formulation requires that
the fluid density be computed by an equation of state that uses the
thermodynamic pressure. This thermodynamic pressure can either be
computed based on a global energy/mass balance or allowed to be
spatially varying. By modification of the continuity density time
derivative to include the
2.2. Conservation of Momentum
The integral form of the Favre-filtered momentum equations used for turbulent transport are
where the subgrid scale turbulent stress
The term
and the traceless rate-of-strain tensor defined as follows:
In a low Mach flow, as described in the low Mach theory section, the
above pressure,
For LES,
where the subgrid turbulent kinetic energy is defined as
Model closures can use, Yoshizawa’s approach when k is not transported:
Above,
For low Mach-number flows, a vast majority of the turbulent kinetic energy is contained at resolved scales. For this reason, the subgrid turbulent kinetic energy is not directly treated and, rather, is included in the pressure as an additional normal stress. The Favre-filtered momentum equations then become
where LES closure models for the subgrid turbulent eddy viscosity
2.2.1. Earth Coriolis Force
For simulation of large-scale atmospheric flows, the following Coriolis force term can be added to the right-hand-side of the momentum equation ((2.1)):
Here,
where
2.2.2. Boussinesq Buoyancy Model
In atmospheric and other flows, the density differences in the domain can be small enough as to not significantly affect inertia, but nonetheless the buoyancy term,
may still be important. The Boussinesq model ignores the effect of density on inertia while retaining the buoyancy term in Equation (2.1). For the purpose of evaluating the buoyant force, the density is approximated as
This leads to a buoyancy body force term that depends on temperature (
The flow is otherwise kept as constant density.
2.3. Filtered Mixture Fraction
The optional quantity used to identify the chemical state is the mixture
fraction,
where
Applying either temporal Favre filtering for RANS-based treatments or spatial Favre filtering for LES-based treatments yields
where sub-filter correlations have been neglected in the molecular diffusive flux vector and the turbulent diffusive flux vector is defined as
This subgrid scale closure is modeled using the gradient diffusion hypothesis,
where
In integral form the mixture fraction transport equation is
2.4. Conservation of Energy
The integral form of the Favre-filtered static enthalpy energy equation used for turbulent transport is
The above equation is derived by starting with the total internal
energy equation, subtracting the mechanical energy equation and
enforcing the variable density continuity equation. Note that the above
equation includes possible source terms due to thermal radiatitive
transport, viscous dissipation, pressure work,
and external driving sources (
The simple Fickian diffusion velocity approximation,
Equation (2.22), is assumed, so that the mean diffusive heat flux
vector
If
The subgrid scale turbulent flux vector
As with species transport, the gradient diffusion hypothesis is used to close this subgrid scale model,
where
The turbulent Prandtl number must have the same value as the turbulent Schmidt number for species transport to maintain unity Lewis number.
2.5. Review of Prandtl, Schmidt and Unity Lewis Number
For situations where a single diffusion coefficient is applicable (e.g., a binary gas system) the Lewis number is defined as:
If the diffusion rates of energy and mass are equal,
For completeness, the thermal diffusivity, Prandtl and Schmidt number are defined by,
and
where
2.6. Thermal Heat Conduction
For non-isothermal object response that may occur in conjugate heat transfer applications, a simple single material heat conduction equation is supported.
where
2.7. ABL Forcing Source Terms
In LES of wind plant atmospheric flows, it is often necessary to
drive the flow to a predetermined vertical velocity and/or temperature profile.
In Nalu-Wind, this is achieved by adding appropriate
source terms
First, the momentum source term is discussed.
The main objective of this implementation is to force the volume averaged velocity at
a certain location to a specified value (
The velocity and density fields can be decomposed into a volume averaged component
and fluctuations about that volume average as
We now wish to apply a momentum source based on a desired spatial averaged velocity
where
such that the momentum source can now be defined as:
where
The enthalpy source term works similarly to the momentum source term. A temperature difference is computed at every time-step and a forcing term is added to the enthalpy equation:
where
The present implementation can vary the source terms as a function of time and space using either a user-defined table of previously computed source terms (e.g., from a precursor simulation or another model such as WRF), or compute the source term as a function of the transient flow solution.
2.8. Conservation of Species
The integral form of the Favre-filtered species equation used for turbulent transport is
where the form of diffusion velocities (see Equation (2.22)) assumes the Fickian approximation with a constant value of diffusion velocity for consistency with the turbulent form of the energy equation, Equation (2.12). The simplest form is Fickian diffusion with the same value of mass diffusivity for all species,
The subgrid scale turbulent diffusive flux vector
The closure for this model takes on its usual gradient diffusion hypothesis, i.e.,
where
The Favre-filtered and modeled turbulent species transport equation is,
If transporting both energy and species equations, the laminar Prandtl
number must be equal to the laminar Schmidt number and the turbulent
Prandtl number must be equal to the turbulent Schmidt number to maintain
unity Lewis number. Although there is a species conservation equation
for each species in a mixture of
Finally, the reaction rate source term is expected to be added based on an operator split approach whereby the set of ODEs are integrated over the full time step. The chemical kinetic source terms can be sub-integrated within a time step using a stiff ODE integrator package.
The following system of ODEs are numerically integrated over a time step
The sources for the sub-integration are computed with the composition and density at the new time level which are used to approximate a mean production rate for the time step
2.9. Subgrid-Scale Kinetic Energy One-Equation LES Model
The subgrid scale kinetic energy one-equation turbulence model, or
The production of subgrid turbulent kinetic energy,
while the dissipation of turbulent kinetic energy,
where the grid filter length,
The subgrid turbulent eddy viscosity is then provided by
where the values of
For simulations in which a buoyancy source term is desired, the code supports the Rodi form,
2.10. RANS Model Suite
Although Nalu-Wind is primarily expected to be a LES simulation tool,
RANS modeling is supported through the activation of different
two-equation RANS models: the Chien
2.10.1. Shear Stress Transport (SST) Formulation
It has been observed that standard 1998
where the value of
The model coefficients,
where
where
The final parameter is
An important component of the SST model is the different expression used for the turbulent viscosity,
where
The final parameter is
The Menter SST Two-Equation Model with Controlled Decay (SST-SUST) is also supported, [SR07]. Two new constants are added that are incorporated into additional source terms for the transport equations:
where the constants are
2.10.2. SST Mixing Length Limiter
When using SST to model the Atmospheric Boundary Layer with the Coriolis effect, a mixing length limiter should be included. The limiter included here is based on the limiter for the k-epsilon model in [Kob13]. An analogous limiter was derived for the SST model. The SST limiter was presented in [AdFM+21] and will be written up in a future publication.
The mixing length limiter replaces the SST model parameter,
The maximum mixing length,
where
where
2.11. Laminar-Turbulent Transition Model Formulation
To account for the effects of the laminar-turbulent boundary layer transition,
Menter’s one-equation
The production term,
The model constants are:
The transition onset criteria of the model are defined as:
The transition onset occurs once the scaled vorticity Reynolds number,
The output intermittency from the transition model is applied to both the production and destruction terms of the turbulent kinetic energy transport equation.
2.12. Detached Eddy Simulation (DES) Formulation
The DES technique is also supported in the code base when the SST model is activated. This model seeks to formally relax the RANS-based approach and allows for a theoretical basis to allow for transient flows. The method follows the method of Temporally Filtered NS formulation as described by Tieszen, [TDB05].
The SST DES model simply changes the turbulent kinetic energy equation to include a new minimum scale that manipulates the dissipation term.
where
2.13. Active Model Split (AMS) Formulation
The AMS approach is a recently developed hybrid RANS/LES framework by Haering,
Oliver and Moser [HOM20]. In this approach a triple
decomposition is used, breaking the instantaneous velocity field into
an average component
2.13.1. Split subgrid model stress
In a typical Hybrid RANS/LES approach, the observation that the LES and RANS equations take on the same mathematical form is leveraged, relying simply on a modified turbulent viscosity coefficient that takes into account the ability to resolve some turbulent content. Due to deficiencies in this approach as discussed in Haering et al. [HOM20], an alternative approach where the modeled term is split into two contributions, one representing the impact on the mean flow and one the impact on the resolved fluctuations, from the unresolved content, is used in the Active Model Split (AMS) formulation.
Starting by substitution of a triple decomposition of the flow
variables,
Note that here,
The model term in AMS,
So this produces the final form for the AMS model term,
The AMS model terms are implemented for the edge based
scheme in MomentumSSTAMSDiffEdgeKernel.
The isotropic component,
2.13.2. Averaging functions
The averaging algorithms are invoked as part of the AMSAlgDriver and are called from the pre_iter_work function so that they are executed at the beginning of each Picard iteration. The AMSAlgDriver is invoked last, so to ensure that this is also done initially, so that the initial step has correct average quantities, the averaging functions are also called in the initial_work function.
The main averaging algorithm is SSTAMSAveragesAlg. The averaging function is solving a simple causal average equation for the intermediate (or final) quantity:
Here
We can discretize the causal average equation explicitly to produce the implemented form:
The averaging is carried out for velocities (
2.13.3. Dynamic Hybrid Diagnostics
Typically in a hybrid model, it is necessary to have diagnostics that
assess the ability of the grid to resolve turbulent content and to aid
in its introduction. In AMS, there are two main diagnostic
quantities,
but that has shown some performance issues near the wall when using SST with AMS.
Currently an adhoc lower bound of
For the RANS models used in Nalu-Wind,
2.13.4. Forcing Term
When the grid is capable of resolving some turbulent content, the model will want to reduce the modeled stress and allow for resolved turbulence to contribute the remaining piece of the total stress. As discussed in Haering et al. [HOM20] and the observation of “modeled-stress depletion” in other hybrid approaches, such as DES, a mechanism for inducing resolved turbulent fluctuations at proper energy levels and timescales to match your reduction of the modeled stress is needed. AMS resolves this issue through the use of an active forcing term, designed to introduce turbulent fluctuations into regions of the grid where turbulent content can be supported. The implications of the specific form and method of introduction for this forcing term is still an area of ongoing research, but for now, empirical testing has shown great success with a simple turbulent structure based off of Taylor-Green vortices.
The forcing term
with
where
Now the final forcing field,
2.13.5. AMS with SST Mixing Length Limiter
When using AMS with SST as the mean (RANS) contribution to model the Atmospheric Boundary Layer with the Coriolis effect, SST should include a mixing length limiter. The mixing length limiter is described in SST Mixing Length Limiter. For consistency, when using the limiter the RANS time scale,
2.14. Solid Stress
A fully implicit CVFEM (only) linear elastic equation is supported in the code base. This equation is either used for true solid stress prediction or for smoothing the mesh due to boundary mesh motion (either through fluid structure interaction (FSI) or prescribed mesh motion).
Consider the displacement for component i,
where the Cauchy stress tensor,
Above, the so-called Lame coefficients, Lame’s first parameter,
and
Note that the above notation of
where
The above equations are solved for mesh displacements,
Numerically, the velocity might be obtained by a backward Euler or BDF2 scheme,
2.15. Moving Mesh
The code base supports three notions of moving mesh: 1) linear elastic equation system that computes the stress of a solid 2) solid body rotation mesh motion and 3) mesh deformation via an external source.
The linear elastic equation system is activated via the standard
equation system approach. Properties for the solid are specified in the
material block. Mesh motion is prescribed by the input file via the
mesh_motion
block. Here, it is assumed
that the mesh motion is solid rotation. For fluid/structure interaction
(FSI) a mesh smoothing scheme is used to propagate the surface mesh
displacement obtained by the solids solve. Simple mesh smoothing is
obtained via a linear elastic solve in which the so-called Lame
constants are proportional to the inverse of the dual volume. This
allows for boundary layer mesh locations to be stiff while free stream
mesh elements to be soft.
Additional mesh motion terms are required for the Eulerian fluid
mechanics solve. Using the geometric conservative law the time and
advection source term for a general scalar
where fsi_interface
input line command attribute is
expected to be set at these unique surfaces. More advanced FSI coupling
techniques are under development by a current academic partner.
2.16. Radiative Transport Equation
The spatial variation of the radiative intensity corresponding to a
given direction and at a given wavelength within a radiatively
participating material,
Experimental data shows that the radiative properties for heavily
sooting, fuel-rich hydrocarbon diffusion flames (
where
The flux divergence may be written as a difference between the radiative emission and mean incident radiation at a point,
where
The scalar flux and radiative flux vector represent angular moments of the directional radiative intensity at a point,
where
2.1 Ordinate Direction Definition,
The radiation intensity must be defined at all portions of the boundary
along which
where
where it is implied that
2.17. Wall Distance Computation
RANS and DES simulations using