/[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 1387 - (show annotations)
Fri Jan 11 07:45:26 2008 UTC (11 years, 3 months ago) by trankine
Original Path: temp/doc/examples/poisson.py
File MIME type: text/x-python
File size: 458 byte(s)
Restore the trunk that existed before the windows changes were committed to the (now moved to branches) old trunk.
1 # $Id$
2 from esys.escript import *
3 from esys.escript.linearPDEs import Poisson
4 from esys.finley import Rectangle
5 # generate domain:
6 mydomain = Rectangle(l0=1.,l1=1.,n0=40, n1=20)
7 # define characteristic function of Gamma^D
8 x = mydomain.getX()
9 gammaD = whereZero(x[0])+whereZero(x[1])
10 # define PDE and get its solution u
11 mypde = Poisson(domain=mydomain)
12 mypde.setValue(f=1,q=gammaD)
13 u = mypde.getSolution()
14 # write u to an external file
15 saveVTK("u.xml",sol=u)

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26