# 3.4.7. Discrete Boundary Conditions

The Dirichlet boundary conditions are applied directly in the linear solver. The flux boundary conditions are linearized and then assembled to the linear system. The flux boundary conditions are processed on a face-by-face basis. The data available with each face includes all the data on the parent element.

## 3.4.7.1. Symmetry, 3D Momentum

The viscous stresses can only impart a normal force at a symmetry boundary. The only other force contribution is from the pressure. The pressure is integrated over the boundary using the boundary nodal values.

The normal viscous force component is assembled to the right hand side only for the laminar equations.

The viscous stress and sub-face normal are computed at each sub-face on the element face. The integrated sub-face force is assembled to its adjacent node.

(3.1087)

where is the unit sub-face normal vector and is the area of the sub-face.

## 3.4.7.2. Outflow, 3D Mass

The mass flux at a pressure-specified outflow boundary is given by (3.837). The pressure at the face in the equation is and is the specified value (see Figure 3.31). The interior sub-face pressure is and is an average of nodal pressures. The fully assembled Poisson equation for pressure will have positive diagonal coefficients. Note that the form of (3.837) will contribute a positive diagonal value. The nodal pressure gradient, , contains the influence of the specified pressure. The difference of the nodal pressure gradient and the boundary pressure gradient cancels the influence of the specified pressure in the outflow boundary condition. The specified pressure at the boundary only directly influences the momentum balance.

## 3.4.7.3. Outflow, 3D Momentum

The outflow boundary condition is applied to boundaries with either pressure-specified inflow or pressure-specified outflow. The viscous stresses are integrated over the boundary, but the viscous force normal to the boundary is neglected.

If the flow is entering the domain, the convected velocity is a combination of a specified tangential velocity (coflow) and a normal velocity. The normal velocity is constructed from the local nodal values.

If the flow exits the domain, the convected velocity values are interpolated from nodal velocities in the element adjacent to the boundary, similar to the interior scheme discussed in Upwind Interpolation for Convection. The convected velocities are blended from an upwind interpolation (nearest boundary node) and centered interpolation. The shape functions for the centered interpolation are taken from the interior sub-face that is directly opposite the boundary sub-face. The upwind scheme will extrapolate from the nearest node and the linear profile skew upwind scheme will interpolate to the boundary sub-face centroid.

## 3.4.7.4. Outflow, 3D Energy and Temperature

The outflow boundary condition is applied to boundaries with either pressure-specified inflow or pressure-specified outflow. The heat conduction is integrated over the boundary. The transport of enthalpy by mass diffusion for a multicomponent system is not yet implemented (cdm – 9/26/10).

If the flow is entering the domain, the convected enthalpy is set to a far-field reference value.

The convected enthalpy values are interpolated from nodal enthalpies in the element adjacent to the boundary, similar to the interior scheme discussed in Upwind Interpolation for Convection. The convected enthalpies are blended from an upwind interpolation (nearest boundary node) and centered interpolation. The shape functions for the centered interpolation are taken from the interior sub-face that is directly opposite the boundary sub-face. The upwind scheme will extrapolate from the nearest node and the linear profile skew upwind scheme will interpolate to the boundary sub-face centroid.

## 3.4.7.5. Outflow, 3D Species and Soot

The outflow boundary condition is applied to boundaries with either pressure-specified inflow or pressure-specified outflow. The mass diffusion is integrated over the boundary.

If the flow is entering the domain, the convected mass fractions are set to far-field reference values.

The convected species mass fraction values are interpolated from nodal mass fractions in the element adjacent to the boundary, similar to the interior scheme discussed in Upwind Interpolation for Convection. The convected mass fractions are blended from an upwind interpolation (nearest boundary node) and centered interpolation. The shape functions for the centered interpolation are taken from the interior sub-face that is directly opposite the boundary sub-face. The upwind scheme will extrapolate from the nearest node and the linear profile skew upwind scheme will interpolate to the boundary sub-face centroid.

## 3.4.7.6. Outflow, 3D Turbulent Kinetic Energy

The outflow boundary condition is applied to boundaries with either pressure-specified inflow or pressure-specified outflow. If the flow is entering the domain, the convected turbulent kinetic energy is set by one of two ways:

> - user specified value for turbulent kinetic energy, e.g. 0.0.,

> - calculated entrainment value based on user specified turbulence intensity, , and the relationship

>   (3.1088)

The reference velocity at the integration point, , is determined by the current integration point mass flow rate divided by a characteristic area divided by the integration point density.

The convected turbulent kinetic energy is blended from an upwind interpolation (nearest boundary node) and centered interpolation. The shape functions for the centered interpolation are taken from the interior sub-face that is directly opposite the boundary sub-face. The upwind scheme will extrapolate from the nearest node and the linear profile skew upwind scheme will interpolate to the boundary sub-face centroid.

## 3.4.7.7. Outflow, 3D Turbulence Dissipation

The outflow boundary condition is applied to boundaries with either pressure-specified inflow or pressure-specified outflow. If the flow is entering the domain, the convected turbulence dissipation rate is set by one of two ways:

> - user specified value for turbulent dissipation rate, e.g. 0.0.,

> - calculated entrainment value based on user specified turbulence intensity, characteristic length and the relationship

>   (3.1089)

where ; represents the user-specified characteristic length of large turbulent structures. The integration point turbulent kinetic energy is again based on the user specified turbulence intensity in conjunction with Equation (3.1088).

The convected turbulent dissipation rate is blended from an upwind interpolation (nearest boundary node) and centered interpolation. The shape functions for the centered interpolation are taken from the interior sub-face that is directly opposite the boundary sub-face. The upwind scheme will extrapolate from the nearest node and the linear profile skew upwind scheme will interpolate to the boundary sub-face centroid.

## 3.4.7.8. Wall, 3D Turbulent Momentum

The effect of the wall force imparted by the wall on the fluid, as outlined in Wall Functions; Momentum, is handled by the standard law of the wall formulation. To explain this procedure, consider a two dimensional element with two faces that consist of a wall boundary side set, Figure 3.32.

Fig. 3.32 Integration locations for a wall boundary.

The resulting discretization of the -component of velocity, for the boundary face that is a wall can be expressed as follows,

(3.1090)

where is the area, is the unit normal to the wall, and is the wall shear stress factor from law of the wall,

(3.1091)

The parallel velocity component in (3.1090) is determined by the projection of the nodal velocity onto each of the four (hex) or three (tet) subcontrol boundary faces (see (3.206)). In many respects, this procedure is very much like that of a cell-centered scheme in that the nodal velocity is assumed to act over all boundary faces. The paramount difference is the ability of one nodal velocity to be applied to a multitude of faces of potentially different orientation.

As indicated in Wall Functions; Momentum, the friction velocity at the centroid of the boundary face is determined by a nonlinear solution procedure that will now be described. The procedure begins by use of (3.195), rearranged to form the function ,

(3.1092)

The objective is to determine the value of the friction velocity such that the function, , is minimized. A Newton solve is therefore constructed that has the following standard iteration form,

(3.1093)

where is defined by (3.1094) evaluated at the iteration level, and is defined by

(3.1094)

The procedure by which the normal distance to the wall is determined is based on the method outlined by the vertex-centered CFD code TASCflow [141]. In the procedure, the normal distance to the wall is linked to the grid by the evaluation of the normal distance from the subcontrol volume center to the boundary face. Therefore, the normal distance to the wall can be determined by the following steps:

> - Determination of the coordinates of the subcontrol volume center by a shape function loop over all nodes. This step in the procedure mandates a SIERRA heterogeneous (face-element) workset algorithm.

> - The determination of a vector, , from the subcontrol volume center to the respective nodal location.

> - The use of the perpendicular projection operator, , which is defined by,

>   (3.1095)

> - The determination of the normal distance by

>   (3.1096)

For convenience, the density and viscosity used in all of the above equations are nodal quantities. In other words, the physical properties are not interpolated to the centroid of the boundary face.

Once the wall shear stress factor is evaluated, it is required that the appropriate component of the velocity parallel to the boundary face is used appropriately within the respective momentum equations. As was discussed in the section on non-orthogonal momentum math models, Wall Functions; Momentum, the parallel velocity can be written in component form (see (3.207)).

### 3.4.7.8.1. X-Momentum

The x-momentum wall force, is expressed as

(3.1097)

where is defined as

(3.1098)

Note that the form of (3.1098) allows for an implicit treatment of the force imparted by the wall on the fluid by the factor

(3.1099)

### 3.4.7.8.2. Y-Momentum

The y-momentum wall force, is expressed as

(3.1100)

where is defined as

(3.1101)

Note that the form of (3.1101) allows for an implicit treatment of the force imparted by the wall on the fluid by the factor

(3.1102)

### 3.4.7.8.3. Z-Momentum

The z-momentum wall force, is expressed as

(3.1103)

where is defined as

(3.1104)

Note that the form of (3.1104) allows for an implicit treatment of the force imparted by the wall on the fluid by the factor

(3.1105)

## 3.4.7.9. Wall, 3D Turbulent Kinetic Energy

As described in Wall Functions; Turbulent Kinetic Energy, the wall boundary condition for turbulent kinetic energy can be applied in a variety of ways. In general, there are two supported methods.

The first method is specify the near-wall turbulent kinetic energy as a Dirichlet condition whose value is determined by the assumption of local equilibrium between production and dissipation of turbulent kinetic energy.

The second method is to solve a transport equation for the near wall turbulent kinetic energy whose form utilizes a modified production and dissipation term based on the assumption of local equilibrium between production and dissipation of turbulent kinetic energy. The use of a full control volume equation for the near wall turbulent kinetic energy in the presence of non-zero convection and diffusion coefficients is a violation of the very tenants of the law of the wall formulation which implicitly assumes pure shear flow behavior. Nevertheless, this method is frequently used.

The Dirichlet method consists of the determination of each integration point turbulent kinetic energy by use of the following equation,

(3.1106)

The value of is determined by a nonlinear iteration solve of the law of the wall formulation. The integration point values are area weighted and assembled into the nodal location. The nodal value of the turbulent kinetic energy is given by the accumulated area weighed integration point turbulent kinetic energy divided by the total face area.

## 3.4.7.10. Wall, 3D Turbulence Dissipation

Consistent with all of literature, the near-wall value of turbulent dissipation is determined from iteration-lagged values of friction velocity,

(3.1107)

As with the implementation of the turbulent kinetic energy, the value computed in (3.1107) is area weighted and assembled to the nodal location. The Dirichlet condition is determined by the assembled quantity divided by the entire area of the boundary faces that are “owned” by the node.