/[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 155 - (hide annotations)
Wed Nov 9 02:02:19 2005 UTC (13 years, 3 months ago) by jgs
Original Path: trunk/doc/user/examples/mypoisson.py
File MIME type: text/x-python
File size: 403 byte(s)
move all directories from trunk/esys2 into trunk and remove esys2

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