MacCormack method
In computational fluid dynamics, the MacCormack method is a widely ud discretization scheme for the numerical solution of hyperbolic partial differential equations. This cond-order finite difference method is introduced by Robert W. MacCormack in 1969.[1] The MacCormack method is very elegant and easy to understand and program.[2]
The algorithm
The MacCormack method is a variation of the two-step Lax–Wendroff scheme but is much simpler in application. To illustrate the algorithm, consider the following first order hyperbolic equation
在线词霸
The application of MacCormack method to the above equation proceeds in two steps; a predictor step which is followed by a corrector step.
aeroplane什么意思
Predictor step: In the predictor step, a "provisional" value of at time level (denoted by ) is estimated as follows
It may be noted that the above equation is obtained by replacing the spatial and temporal derivatives in the wave equation using forward differences.
Corrector step: In the corrector step, the predicted value is corrected according to the equation
sfileNote that the corrector step us backward finite difference approximations for spatial derivative. Note also that the time-step ud in the corrector step is in contrast to the ud in the predictor step.
Replacing the term by the temporal average
to obtain the corrector step as张中载
中文转换繁体
Some remarks天津新东方英语培训
英文在线翻译中文
The MacCormack method is well suited for nonlinear equations (Inviscid Burgers equation, Euler equations, etc.) The order of differencing can be reverd for the time step (i.e., forward/backward followed by backward/forward). For nonlinear equations, this procedure provides the best results. For linear equations, the MacCormack scheme is equivalent to the Lax–Wendroff scheme.[3]
Unlike first-order upwind scheme, the MacCormack does not introduce diffusive errors in the solution. However, it is known to introduce dispersive errors (Gibbs phenomenon) in the region where the gradient is high.
References
游戏动漫学习
[1]MacCormack, R. W., The Effect of viscosity in hypervelocity impact cratering, AIAA Paper, 69-354 (1969).
[2]Anderson, J. D., Jr., Computational Fluid Dynamics: The Basics with Applications, McGraw Hill (1994).
[3]Tannehill, J. C., Anderson, D. A., and Pletcher, R. H., Computational Fluid Dynamics and Heat Transfer, 2nd ed., Taylor & Francis (1997).
贵黔人才网
Article Sources and Contributors3 Article Sources and Contributors
MacCormack method Source: en.wikipedia/w/index.php?oldid=435590456 Contributors: -
moralityLicen
Creative Commons Attribution-Share Alike 3.0 Unported
creativecommons/licens/by-sa/3.0/