<< Chapter < Page Chapter >> Page >

We can see that this equation is of the same form as before with only the coefficients e and f of the vorticity equation modified.

e ' = e - δ 2 R e Δ t f ' = f - a w i + 1 , j n - b w i - 1 , j n - c w i , j + 1 n - d w i , j - 1 n - e w i , j n

Since the variable in the linear system of equations is now Δ w rather than w , the equations for the stream function also need to be modified.

a 1 , 1 ψ i + 1 , j + b 1 , 1 ψ i - 1 , j + c 1 , 1 ψ i , j + 1 + d 1 , 1 ψ i , j + 1 + e 1 , 1 ψ i , j + e 1 , 2 Δ w i , j = f 1 , 1 - e 1 , 2 w i , j n thus f ' = f 1 , 1 - e 1 , 2 w i , j n

These modifications to the coefficients should be made after the coefficients are updated for convection and boundary conditions.

The numerical calculations will start from some initial value of vorticity and proceed to steady state. The size of the time step is important if accuracy of the transient solution is of interest. The truncation error of the time finite difference expression is approximately the product Δ t 2 w t 2 . The time step size can be chosen as to keep this value approximately constant. Thus the time step size will be chosen as to limit the maximum change in the magnitude of w over a time step. Let Δ w m a x be the maximum change in w over the previous time step and Δ w s p e c be the specified value of the desired maximum change in w . The new time step can be estimated from the following expression.

Δ t n e w = Δ t o l d Δ w s p e c Δ w max

The initial time step size needs to be specified, and the new time step may be averaged with the old or constrained to increase by not greater than some factor.

Now that we have a means of calculating the transients solution, this approach can be used to treat the nonlinear terms. Recall that when the equations were linear, the system of equations had constant coefficients and the conjugate-gradient linear solver solved the linear system of equations.

A x = F

The convective derivatives have a product of velocity and vorticity, which can be expressed as a product of the derivative of stream function and vorticity. One approximation would be to use the value of the stream function from the old time step to calculate the coefficients for the new time step. An alternative is use a predictor-corrector approach, similar to the Runge-Kutta solution for quasilinear ordinary differential equations. The "predictor" step estimates the solution at the new time step using the coefficients calculated from the stream function of the previous time step. This gives an estimate of the stream function at the new time step. This estimated stream function is then used to evaluate the coefficients for the "corrector" step. The steps in the calculations are as follows.

A ( x n ) x n + 1 * = F ( x n ) A ( x n + 1 * ) x n + 1 = F ( x n + 1 * )

The choice of the finite difference expression for the convective derivative is very important for the stability of the solution. We will illustrate here treatment of only the x derivative. Suppose i - 1 , i , and i + 1 are the grid points where the stream function and vorticity are evaluated and i - 1 / 2 and i + 1 / 2 are the mid-points where the velocity-vorticity products are evaluated.

u w x u w i + 1 / 2 - u w i - 1 / 2 Δ x

The dependent variables are known only at the grid points and interpolation will be needed to evaluate in between location. If the product is evaluated at i - 1 / 2 and i + 1 / 2 by using the arithmetic average of the values at the grid points on either side, the numerical solution will tend to oscillate if the convective transport dominates the diffusive (viscous) transport. It is preferable to determine the upstream direction from the sign of u i + 1 / 2 or u i - 1 / 2 and use the vorticity from the upstream grid point. This is illustrated below.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Transport phenomena. OpenStax CNX. May 24, 2010 Download for free at http://cnx.org/content/col11205/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Transport phenomena' conversation and receive update notifications?

Ask