/[escript]/trunk/esys2/doc/user/examples/FirstSteps1.py
ViewVC logotype

Contents of /trunk/esys2/doc/user/examples/FirstSteps1.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (show annotations)
Tue Oct 26 06:53:54 2004 UTC (16 years, 1 month ago) by jgs
File MIME type: text/x-python
File size: 398 byte(s)
Initial revision

1 # import ESyS and finley
2 from ESyS import *
3 import finley
4 # set a value for alpha:
5 alpha=10
6 # generate mesh:
7 mydomain=finley.Rectangle(n0=40,n1=20,l0=2.,l1=1.)
8 # generate a system:
9 mypde=linearPDE(A=[[1,0],[0,1]],D=alpha,Y=10,domain=mydomain)
10 # generate a test solution:
11 u=mypde.getSolution()
12 # calculate the error of the solution
13 error=u-1.
14 print "norm of the approximation error is ",Lsup(error)

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26