Numerical methods in fluid mechanics
Discretization
The central process in CFD is the process of
- we are solving the correct equations (consistency property)
- that the error can be decreased as we increase the number of degrees of freedom (stability and convergence).
Once these two criteria are established, the power of computing machines can be leveraged to solve the problem in a numerically reliable fashion. Various discretization schemes have been developed to cope with a variety of issues. The most notable for our purposes are:
Finite difference method
Finite difference replace the infinitesimal limiting process of derivative calculation:
with a finite limiting process, i.e.
The term gives an indication of the magnitude of the error as a function of the mesh spacing. In this instance, the error is halved if the grid spacing, _x is halved, and we say that this is a first order method. Most FDM used in practice are at least second order accurate except in very special circumstances. Finite Difference method is still the most popular numerical method for solution of PDEs because of their simplicity, efficiency and low computational cost. Their major drawback is in their geometric inflexibility which complicates their applications to general complex domains. These can be alleviated by the use of either mapping techniques and/or masking to fit the computational mesh to the computational domain.
Finite element method
The finite element method was designed to deal with problem with complicated computational regions. The PDE is first recast into a variational form which essentially forces the mean error to be small everywhere. The discretization step proceeds by dividing the computational domain into elements of triangular or rectangular shape. The solution within each element is interpolated with a polynomial of usually low order. Again, the unknowns are the solution at the collocation points. The CFD community adopted the FEM in the 1980s when reliable methods for dealing with advection dominated problems were devised.
Spectral method
Both finite element and finite difference methods are low order methods, usually of 2nd − 4th order, and have local approximation property. By local we mean that a particular collocation point is affected by a limited number of points around it. In contrast, spectral method have global approximation property. The interpolation functions, either polynomials or trigonomic functions are global in nature. Their main benefits is in the rate of convergence which depends on the smoothness of the solution (i.e. how many continuous derivatives does it admit). For infinitely smooth solution, the error decreases exponentially, i.e. faster than algebraic. Spectral methods are mostly used in the computations of homogeneous turbulence, and require relatively simple geometries. Atmospheric model have also adopted spectral methods because of their convergence properties and the regular spherical shape of their computational domain.
Finite volume method
Finite volume methods are primarily used in aerodynamics applications where strong shocks and discontinuities in the solution occur. Finite volume method solves an integral form of the governing equations so that local continuity property do not have to hold.
Computational cost
The
Forward Euler approximation
Equation is an explicit approximation to the original differential equation since no information about the unknown function at the future time (n + 1)t has been used on the right hand side of the equation. In order to derive the error committed in the approximation we rely again on Taylor series.
Backward difference
This is an example of an implicit method since the unknown u(n + 1) has been used in evaluating the slope of the solution on the right hand side; this is not a problem to solve for u(n + 1) in this scalar and linear case. For more complicated situations like a nonlinear right hand side or a system of equations, a nonlinear system of equations may have to be inverted.
References
Sources
- Zalesak, S. T., 2005. The design of flux-corrected transport algorithms for structured grids. In: Kuzmin, D., Löhner, R., Turek, S. (Eds.), Flux-Corrected Transport. Springer
- Zalesak, S. T., 1979. Fully multidimensional flux-corrected transport algorithms for fluids. Journal of Computational Physics.
- Leonard, B. P., MacVean, M. K., Lock, A. P., 1995. The flux integral method for multi-dimensional convection and diffusion. Applied Mathematical Modelling.
- Shchepetkin, A. F., McWilliams, J. C., 1998. Quasi-monotone advection schemes based on explicit locally adaptive dissipation. Monthly Weather Review
- Jiang, C.-S., Shu, C.-W., 1996. Efficient implementation of weighed eno schemes. Journal of Computational Physics
- Finlayson, B. A., 1972. The Method of Weighed Residuals and Variational Principles. Academic Press.
- Durran, D. R., 1999. Numerical Methods for Wave Equations in Geophysical Fluid Dynamics. Springer, New York.
- Dukowicz, J. K., 1995. Mesh effects for rossby waves. Journal of Computational Physics
- Canuto, C., Hussaini, M. Y., Quarteroni, A., Zang, T. A., 1988. Spectral Methods in Fluid Dynamics. Springer Series in Computational Physics. Springer-Verlag, New York.
- Butcher, J. C., 1987. The Numerical Analysis of Ordinary Differential Equations. John Wiley and Sons Inc., NY.
- Boris, J. P., Book, D. L., 1973. Flux corrected transport, i: Shasta, a fluid transport algorithm that works. Journal of Computational Physics
Citations