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

Contents of /trunk/doc/user/examples/mypoisson.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 155 - (show annotations)
Wed Nov 9 02:02:19 2005 UTC (17 years, 4 months ago) by jgs
File MIME type: text/x-python
File size: 403 byte(s)
move all directories from trunk/esys2 into trunk and remove esys2

1 # $Id$
2 from esys.finley import Rectangle
3 from esys.linearPDEs import Poisson
4 # generate domain:
5 mydomain = Rectangle(l0=1.,l1=1.,n0=40, n1=20)
6 # 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