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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 102 - (show annotations)
Wed Dec 15 07:08:39 2004 UTC (14 years, 11 months ago) by jgs
Original Path: trunk/esys2/doc/user/examples/mypoisson.py
File MIME type: text/x-python
File size: 400 byte(s)
*** empty log message ***

1 # $Id$
2 import esys.finley
3 from esys.linearPDEs import Poisson
4 # generate domain:
5 mydomain = esys.finley.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