skip to main content
article

A general symbolic PDE solver generator: Beyond explicit schemes

Authors Info & Claims
Published:01 August 2003Publication History
Skip Abstract Section

Abstract

This paper presents an extension of our Mathematica- and MathCode-based symbolic-numeric framework for solving a variety of partial differential equation (PDE) problems. The main features of our earlier work, which implemented explicit finite-difference schemes, include the ability to handle (1) arbitrary number of dependent variables, (2) arbitrary dimensionality, and (3) arbitrary geometry, as well as (4) developing finite-difference schemes to any desired order of approximation. In the present paper, extensions of this framework to implicit schemes and the method of lines are discussed. While C++ code is generated, using the MathCode system for the implicit method, Modelica code is generated for the method of lines. The latter provides a preliminary PDE support for the Modelica language. Examples illustrating the various aspects of the solver generator are presented.

References

  1. {1} W.F. Ames, Numerical Methods for Partial Differential Equations , Academic Press, 1992.Google ScholarGoogle Scholar
  2. {2} Numerical Objects AS Online, http://www.nobjects.com/ prodserv/diffpack/.Google ScholarGoogle Scholar
  3. {3} V.F. D'yachenko, Basic Computational Mathematics, Mir Publishers, Moscow, 1979.Google ScholarGoogle Scholar
  4. {4} The Dynasim website, http://www.dynasim.se.Google ScholarGoogle Scholar
  5. {5} The ELLPACK webpage, http://www.cs.purdue.edu/ellpack/ ellpack.html.Google ScholarGoogle Scholar
  6. {6} P. Fritzson, MathCode C++, published by MathCore (http://www.mathcore.com/), 1998.Google ScholarGoogle Scholar
  7. {7} P. Fritzson, Principles of Object Oriented Modeling and Simulation - with Modelica 2.0, first chapter of book draft available at (http://www.ida.liu.se/labs/pelab/modelica/).Google ScholarGoogle Scholar
  8. {8} P. Fritzson, P. Aronsson, P. Bunus, V. Engelson, H. Johansson, A. Karström and L. Saldamli, The Open Source Modelica Project, in Proceedings of the 2nd International Modelica Conference, March 18-19, 2002, Munich, Germany. (Paper at http://www.modelica.org. More info at www.ida.liu.se/labs/pelab/modelica).Google ScholarGoogle Scholar
  9. {9} P. Fritzson, V. Engelson and J. Gunnarsson, An Integrated Modelica Environment for Modeling, Documentation and Simulation, in Proceedings of SCSC-98 (Summer Computer Simulation Conference), Reno, Nevada, July 1998.Google ScholarGoogle Scholar
  10. {10} P. Fritzson, J. Gunnarsson and M. Jirstrand, MathModelica - An Extensible Modeling and Simulation Environment with Integrated Graphics and Literate Programming, in Proceedings of the 2nd International Modelica Conference, March 18-19, 2002, Munich, Germany. Short version available at http://www.modelica.org/. Long version available at http://www.ida.liu.se/labs/pelab/modelica/.Google ScholarGoogle Scholar
  11. {11} Applied Numerical Analysis (5th edition) by C.F. Gerald and P.O. Wheatley, Addison-Wesley, 1994.Google ScholarGoogle Scholar
  12. {12} B. Gustafsson, H.-O. Kreiss and J. Oliger, Time Dependent Problems and Difference Methods, John Wiley & Sons, Inc., 1995.Google ScholarGoogle Scholar
  13. {13} H.P. Langtangen, Computational Partial Differential Equations - Numerical Methods and Diffpack Programming, Springer-Verlag, 1999. Google ScholarGoogle Scholar
  14. {14} M. Jirstrand, J. Gunnarsson and P. Fritzson, MathModelica - A New Modeling and Simulation Environment for Mathematica, in Proceedings of the International Mathematica Symposium (IMS99), Linz, Austria, August 1999 (available at http://south.rotol.ramk.fi/~keranen/IMS99/paper12/MathModelica-IMS99.nb).Google ScholarGoogle Scholar
  15. {15} An Object-Oriented Framework for PDE Solvers, Krister Åhlander, PhD thesis, Dept. of Scientific Computing, Uppsala University, Sweden, 1999.Google ScholarGoogle Scholar
  16. {16} The MathCore website, http://www.mathcore.se.Google ScholarGoogle Scholar
  17. {17} M. Oh, Modelling and simulation of combined lumped and distributed processes, Ph.D. thesis, University of London, 1995.Google ScholarGoogle Scholar
  18. {18} Modelica Association homepage (http://www.modelica.org/).Google ScholarGoogle Scholar
  19. {19} E. Mossberg, K. Otto and M. Thuné, Object-oriented software tools for the construction of preconditioners, Scientific Programming 6 (1997), 285-295.Google ScholarGoogle ScholarCross RefCross Ref
  20. {20} W.D. Henshaw, Overture Documentation, LLNL Overlapping Grid Project. http://www.llnl.gov/CASC/Overture/henshaw/ overtureDocumentation/overtureDocumentation.html.Google ScholarGoogle Scholar
  21. {21} The PELLPACK webpage http://purdue.cs.purdue.edu./.Google ScholarGoogle Scholar
  22. {22} J.R. Rice and R.F. Boisvert, Solving Elliptic Problems Using ELLPACK, Springer, 1984. Google ScholarGoogle Scholar
  23. {23} L. Saldamli, P. Fritzson and B. Bachmann, Extending Modelica for Partial Differential Equations, in Proceedings of the 2nd International Modelica Conference, March 18-19, 2002, Munich, Germany, (www.modelica.org).Google ScholarGoogle Scholar
  24. {24} K. Sheshadri and P. Fritzson, A General Symbolic PDE Solver Generator: Explicit Schemes, accepted for publication in Scientific Programming, 2002; A Mathematica notebook version of the paper is available upon request from the authors. Google ScholarGoogle Scholar
  25. {25} K. Sheshadri and P. Fritzson, A Mathematica-based PDE Solver Generator, pages 66-78, Proceedings of SIMS'99, The 1999 Conference of the Scandinavian Simulation Society, Linköping, Sweden. (www.scansims.org).Google ScholarGoogle Scholar
  26. {26} Dept. Scientific Computation, Uppsala University, website. http://www.tdb.uu.se/research/swtools/.Google ScholarGoogle Scholar
  27. {27} A. Wrangsjö, P. Fritzson and K. Sheshadri, Transforming Systems of PDEs for Efficient Numerical Solution, Proceedings of the International Mathematica Symposium (IMS99), Linz, Austria, 1999 (http://south.rotol.ramk.fi/~keranen/IMS99/pa- per7/Transformations.pdf).Google ScholarGoogle Scholar

Index Terms

(auto-classified)
  1. A general symbolic PDE solver generator: Beyond explicit schemes

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    • Published in

      cover image Scientific Programming
      Scientific Programming  Volume 11, Issue 3
      August 2003
      70 pages

      Publisher

      IOS Press

      Netherlands

      Publication History

      • Published: 1 August 2003

      Qualifiers

      • article
    • Article Metrics

      • Downloads (Last 12 months)0
      • Downloads (Last 6 weeks)0

      Other Metrics

    About Cookies On This Site

    We use cookies to ensure that we give you the best experience on our website.

    Learn more

    Got it!