Article ID Journal Published Year Pages File Type
761572 Computers & Fluids 2015 4 Pages PDF
Abstract

•We generated Taylor series expansions by using symbolic matrices in MATLAB®.•The risk of manual computation error in Taylor series expansions was reduced.•New numerical schemes may be developed and analyzed using this technique.•Order, accuracy and stability of CFD schemes can be researched using matrices.•Examples are given for the generation of the modified equations for PDE’s.

Taylor series expansions are widely used in engineering approximations, for instance, to develop finite differences schemes or numerical integration methods. This technical note presents a novel technique to generate, display and manipulate Taylor series expansion by using matrices. The resulting approach allows algebraic manipulation as well as differentiation in a very intuitive manner in order to experiment with different numerical schemes, their truncation errors and their structures, while avoiding manual calculation errors. A detailed explanation of the mathematical procedure to generate a matrix form of the Taylor series expansion for a function of two variables is presented along with the algorithm of an implementation in MATLAB®. Example cases of different orders are tabulated to illustrate the generation and manipulation capabilities of this technique. Additionally, an extended application is developed to determine the modified equations of finite difference schemes for partial differential equations, with one-dimensional examples of the wave equation and the heat equation using explicit and implicit schemes.

Related Topics
Physical Sciences and Engineering Engineering Computational Mechanics
Authors
, ,