/[escript]/trunk/doc/cookbook/intro.tex
ViewVC logotype

Diff of /trunk/doc/cookbook/intro.tex

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2680 by ahallam, Thu Sep 3 02:20:33 2009 UTC revision 2681 by ahallam, Thu Sep 24 03:04:04 2009 UTC
# Line 14  Line 14 
14  \chapter{Introduction}  \chapter{Introduction}
15  \label{CHAP INTRO}  \label{CHAP INTRO}
16  \section{Why \esc?}  \section{Why \esc?}
17  \esc is an environment for mathematical modelling based on partial differential equations (PDEs). It provides a high-level of abstraction from the underlying numerical schemes (e.g. finite elements (FEM)) and their implementations (e.g. from aspects of parallelization) so the user can concentrate more on the modelling aspects of their problem while still properly utilising the powerful mathematical capabilities of PDEs. \esc is built upon the interpretive programming language python\footnote{see \url{www.python.org} }. Python is a basic scripting language with many intrinsic functions and capabilities. There are also  a large number of software tools for python which can be run in conjunction with \esc; these include packages for linear algebra, visualization, image processing, data plotting, and many others. Any scripts written for \esc are scalable and are able to run on desktop computers right through to supercomputers\footnote{\esc supports distributed memory architectures with multi-core processors through MPI and threading.} with no modifications to the scripts.  \esc is a scripting environment for mathematical modelling of partial differential equations (PDEs) that provides a high-level of abstraction from the underlying numerical schemes and their implementation. By absolving the user from tasks like data constructs, meshing and parallelization the user can concentrate on the modelling aspects of their problem while still properly utilising the powerful mathematical capabilities of PDEs. \esc is built upon the interpretive programming language Python\footnote{see \url{www.python.org}}; a basic scripting language with many intrinsic functions and capabilities. There are also a large number of software tools for python which can be run in conjunction with \esc; these include packages for linear algebra, visualization, image processing and data plotting among others. Additionally most \esc scripts are scalable and able to run on desktop computers right through to supercomputers\footnote{\esc supports distributed memory architectures with multi-core processors through MPI and threading.} with no modifications to the scripts.
18    
19  There are many benefits to using a software platform like \esc for your mathematical modelling project. Using an existing environment such as \esc rather than starting from scratch saves software development time and solves fundamental numerical problems such as selecting appropriate data structures and establishing numerical algorithms. \esc has already covered these problems and their implementation has been heavily tested for bugs. It is a fact that developed environments may not provide the user with the fastest algorithms for their problem. However, it is generally the case, that the overall time of implementing and testing an optimal algorithm will exceed the time needed to learn, implement and sovle the problem with pre-developed and tested software. This is particularly true if a simulation does not need to be executed repetitively or has relatively short lifetime. A model for publication or thesis would be one such instance.  There are many benefits to using a software platform like \esc for your mathematical modelling project. Using an existing environment such as \esc rather than starting from scratch saves software development time and solves fundamental numerical problems such as selecting appropriate data structures and establishing numerical algorithms. \esc has already covered these problems and their implementation has been heavily tested for bugs. It is a fact that developed environments may not provide the user with the fastest algorithms for their problem. However, it is generally the case, that the overall time needed to implement and test an optimal algorithm will exceed the time needed to learn, implement and solve the problem with pre-developed and tested software. This is particularly true if a simulation does not need to be executed repetitively or has relatively short lifetime. A model for publication or thesis would be one such instance.
20    
21  When it comes to solving partial differential equations \esc provides an advantage as it is especially design for PDEs rather than being an add-on to a linear algebra focused system (e.g. MATLAB). The \esc approach gives the user a cleaner environment to work with and provides better efficiency when dealing with PDE coefficients such as permeability. Data structure in \esc allow the user to abstract them selves from problems like the data type of these coefficients. If a model has been tested with constant permeability the unchanged code can be run with variable permeability set from a data base or as a spatially dependent variable like temperature dependence. This capability of \esc is possible because \esc uses the language of PDEs (as opposed to linear algebra) to describe a model. As it turns out, the \esc approach can efficiently be applied in very large software projects as it leads to a clearer structure for the code by separating modelling issues from low-level numerical and code performance issues  but at the same time allows implementing complex model coupling on a higher-level. Moreover, the usage of python as a development platform for \esc greatly simplifies the development of models from a user prospective as python is intuitive and easy to learn even for users with little experience in programming. Furthermore, python also provides direct access to a very large number of tools which makes python an attractive tool for experienced programmers.      When it comes to solving partial differential equations \esc provides an advantage as it is especially designed for PDEs rather than being an add-on to a linear algebra focused system (\textit{i.e.} MATLAB). The \esc approach gives the user a cleaner environment to work with and provides better efficiency when dealing with PDE coefficients such as permeability. Data structures in \esc allow the user to abstract themself from problems like the data type of these coefficients. For example; if a model has been tested with constant permeability the unchanged code can be run with a variable permeability set from a data base or as a spatially dependent variable like temperature dependence. This capability of \esc is possible because \esc uses the language of PDEs (as opposed to linear algebra) to describe a model. As it turns out, the \esc approach can efficiently be applied in very large software projects as it leads to a clearer structure for the code by separating modelling issues from low-level numerical and code performance issues and at the same time, allows the implementation of complex model coupling on a higher-level. Moreover, the usage of python as a development platform for \esc greatly simplifies the development of models from a user prospective as python is intuitive and easy to learn. At the same time python is more than sufficient for the most experienced as it also provides direct access to a very large number of tools which makes python an attractive environment to work in.
22    
23  Best of all, \esc is released under an open software license and is available freely for download.  Best of all, \esc is released under an open software license and is available freely for download.
24    
25  \section{How to use this Cookbook}  \section{How to use this Cookbook}
26  This manual is written with the intention of giving new users a practical introduction to \esc by solving a variety of simple to advanced problems. \esc has many modules and dependencies along with some subtleties that need to be massaged to get you where you want to go. It is recommended that new users work through the \textit{Introduction} (\refCh{CHAP INTRO}) and the \textit{first two sets of examples} (\refCh{CHAP HEAT DIFF} and \refCh{CHAP HEAT 2}) which present the necessary basic knowledge and explain some of the more common aspects and modules of \esc. The examples are simple but they give reference to the implementation of PDEs, data structures, how to create models and visualising the solution.  This manual is written with the intention of giving new users a practical introduction to \esc. This is acheived by demonstrating how to solve a variety of simple to advanced problems. There exist many modules, dependencies and subtleties that are properly explained throughout this cookbook. It is recommended that new users work through the \textit{Introduction} (\refCh{CHAP INTRO}) and the \textit{first two sets of examples} (\refCh{CHAP HEAT DIFF} and \refCh{CHAP HEAT 2}) which present the necessary basic knowledge and explain some of the more common aspects and modules of \esc. The examples are simple but they give reference to the implementation of PDEs, data structures, how to create models and visualising the solution.
27    
28  Future chapters will cover more advanced topics and more complex models.  Future chapters will cover more advanced topics with more complex models and methods.
29    
30  The examples covered in this cookbook have all been scripted and are ready to run. They are available from the \exf folder in the escript directory. The scripts provide a basis for users to develop their own models while at the same time demonstrating the steps required to completely solve and visualise a PDE problem.  The examples covered in this cookbook have all been scripted and are ready to run. They are available from the \exf folder in the escript directory. The scripts provide a basis for users to develop their own models while at the same time demonstrating the steps required to completely solve and visualise the PDE problems.
31    
32  All of the examples in this cookbook have been developed under a linux based operating system. Windows and mac support cannot be guarenteed.  All of the examples in this cookbook have been developed on a linux based operating system. Windows and mac support cannot be guarenteed. Minor modifications to scripts will generally solve most problems.
33    
34  \input{quickstart}  \input{quickstart}
35  \input{escpybas}  \input{escpybas}

Legend:
Removed from v.2680  
changed lines
  Added in v.2681

  ViewVC Help
Powered by ViewVC 1.1.26