<< Chapter < Page Chapter >> Page >

If you are not familiar with FORTRAN, you should get a paperback book on FORTRAN-77 or FORTRAN-90. An example is D. M. Etter, Structured FORTRAN 77 for Engineers and Scientists . The following is a tutorial from the CAAM 211 webpage. (External Link)

Computer facilities that have compilers usually have an interactive debugger. However, I have not found how to access the debugger on owlnet . The debugger with the Microsoft FORTRAN Powerstation (now HP FORTRAN) is very easy to use.

Transients and finite reynolds number

The development of numerical simulators should start with a problem for which exact solutions exist so that the numerical algorithm can be verified. Steady, creeping flow has many exact solutions and thus it was used as the starting point for developing a numerical simulator for the Navier-Stokes equations. The student should verify that their code is able to duplicate exact solutions to any desired degree of accuracy.

The next stage in the development of the code is to add transients and finite Reynolds numbers. Finite Reynolds number results in nonlinear terms in the Navier-Stokes equation. Algorithms for solving linear systems of equations such as the conjugate gradient methods solves linear systems in one call to the routine. Nonlinear terms need to be iterated or lagged during the transient solution. Thus nonlinear steady state flow may be solved as the evolution of a transient solution from initial conditions to steady state.

The transient and nonlinear terms now need to be included when making the vorticity equation dimensionless.

D w D t = w t + v x w x + v y w y = μ ρ 2 w x 2 + 2 w y 2 t * = t t o w * t * + U t o L x v x * w * x * + α U t o L x v y * w * y * = μ t o ρ L x 2 2 w * x * 2 + α 2 2 w * y * 2

Two of the dimensionless groups can be set to unity by expressing the reference time in terms of the ratio of the characteristic velocity and characteristic length. The remaining dimensionless group is the Reynolds number.

U t o L x = 1 t o = L x U μ t o ρ L x 2 = μ ρ U L x = 1 Re

The dimensionless equation for vorticity with the * dropped is

R e w t + v x w x + α v y w y = 2 w x 2 + α 2 2 w y 2

The convective derivative can be written in conservative form by use of the continuity equation.

v i w j , i = v i , i w j + v i w j , i but v i , i = 0 , for incompressible flow thus v i w j , i = v i w j , i or v w = v w R e w t + v x w x + α v y w y = 2 w x 2 + α 2 2 w y 2

We will first illustrate how to compute the transient, linear problem before tackling the nonlinear terms. Stability of the transient finite difference equations is greatly improved if the spatial differences are evaluated at the new, n + 1 , time level while the time derivative is evaluated with a backward-difference method.

w t w i , j n + 1 - w i , j n Δ t + O ( Δ t ) = Δ w i , j Δ t + O ( Δ t ) Δ w i , j = w i , j n + 1 - w i , j n

Recall that the finite difference form of the steady state equations were expressed as a system of equations with coefficients, a , b , , ect. The vorticity equation for the i , j grid point will be rewritten but now with the transient term included. It is convenient to solve for Δ w rather than w n + 1 at each time step.

a Δ w i + 1 , j n + 1 + b Δ w i - 1 , j n + 1 + c Δ w i , j + 1 n + 1 + d Δ w i , j - 1 n + 1 + e Δ w i , j n + 1 - δ 2 Re Δ t Δ w i , j n + 1 = 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

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