Wolfram Library Archive


Courseware Demos MathSource Technical Notes
All Collections Articles Books Conference Proceedings
Title

A general symbolic PDE solver generator: Explicit schemes
Authors

K. Sheshadri
Organization: Linköping University
Department: Department of Computer and Information Science
Peter Fritzson
Organization: MathCore Engineering AB
Journal / Anthology

Scientific Programming
Year: 2003
Volume: 11
Page range: 39-56
Description

A symbolic solver generator to deal with a system of partial differential equations (PDEs) in functions of an arbitrary number of variables is presented; it can also handle arbitrary domains (geometries) of the independent variables. Given a system of PDEs, the solver generates a set of explicit finite-difference methods to any specified order, and a Fourier stability criterion for each method. For a method that is stable, an iteration function is generated symbolically using the PDE and its initial and boundary conditions. This iteration function is dynamically generated for every PDE problem, and its evaluation provides a solution to the PDE problem. A C++/Fortran 90 code for the iteration function is generated using the MathCode system, which results in a performance gain of the order of a thousand over Mathematica, the language that has been used to code the solver generator. Examples of stability criteria are presented that agree with known criteria; examples that demonstrate the generality of the solver and the speed enhancement of the generated C++ and Fortran 90 codes are also presented.
Subject

*Applied Mathematics > Computer Science
Keywords

partial differential equations (PDEs), C++, Fortran 90 code