/[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 108 - (hide annotations)
Thu Jan 27 06:21:59 2005 UTC (14 years, 8 months ago) by jgs
Original Path: trunk/esys2/doc/user/examples/mypoisson.py
File MIME type: text/x-python
File size: 403 byte(s)
*** empty log message ***

1 jgs 102 # $Id$
2 jgs 108 from esys.finley import Rectangle
3 jgs 102 from esys.linearPDEs import Poisson
4     # generate domain:
5 jgs 108 mydomain = Rectangle(l0=1.,l1=1.,n0=40, n1=20)
6 jgs 102 # define characteristic function of Gamma^D
7     x = mydomain.getX()
8     gammaD = x[0].whereZero()+x[1].whereZero()
9     # define PDE and get its solution u
10     mypde = Poisson(domain=mydomain,f=1,q=gammaD)
11     u = mypde.getSolution()
12     # write u to an external file
13     u.saveDX("u.dx")

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26