/[escript]/trunk/doc/examples/usersguide/poisson.py
ViewVC logotype

Annotation of /trunk/doc/examples/usersguide/poisson.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 327 - (hide annotations)
Wed Dec 7 04:32:28 2005 UTC (13 years, 11 months ago) by gross
Original Path: trunk/doc/user/examples/mypoisson.py
File MIME type: text/x-python
File size: 479 byte(s)
make them run again
1 jgs 102 # $Id$
2 jgs 108 from esys.finley import Rectangle
3 gross 327 from esys.escript.linearPDEs import Poisson
4     from esys.escript import whereZero,saveVTK
5 jgs 102 # generate domain:
6 jgs 108 mydomain = Rectangle(l0=1.,l1=1.,n0=40, n1=20)
7 jgs 102 # define characteristic function of Gamma^D
8     x = mydomain.getX()
9 gross 327 gammaD = whereZero(x[0])+whereZero(x[1])
10 jgs 102 # define PDE and get its solution u
11 gross 327 mypde = Poisson(domain=mydomain)
12     mypde.setValue(f=1,q=gammaD)
13 jgs 102 u = mypde.getSolution()
14     # write u to an external file
15 gross 327 saveVTK("u.xml",solution=u)

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26