/[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 3981 - (hide annotations)
Fri Sep 21 02:47:54 2012 UTC (7 years ago) by jfenwick
File MIME type: text/x-python
File size: 1305 byte(s)
First pass of updating copyright notices
1 ksteube 1811
2 jfenwick 3981 ##############################################################################
3 ksteube 1811 #
4 jfenwick 3911 # Copyright (c) 2003-2012 by University of Queensland
5 jfenwick 3981 # http://www.uq.edu.au
6 ksteube 1811 #
7     # Primary Business: Queensland, Australia
8     # Licensed under the Open Software License version 3.0
9     # http://www.opensource.org/licenses/osl-3.0.php
10     #
11 jfenwick 3981 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12     # Development since 2012 by School of Earth Sciences
13     #
14     ##############################################################################
15 ksteube 1811
16 jfenwick 3911 __copyright__="""Copyright (c) 2003-2012 by University of Queensland
17 jfenwick 3981 http://www.uq.edu.au
18 ksteube 1811 Primary Business: Queensland, Australia"""
19     __license__="""Licensed under the Open Software License version 3.0
20     http://www.opensource.org/licenses/osl-3.0.php"""
21 jfenwick 2344 __url__="https://launchpad.net/escript-finley"
22 ksteube 1811
23 gross 565 from esys.escript import *
24 gross 567 from esys.escript.linearPDEs import Poisson
25 jfenwick 2035 from esys.finley import Rectangle
26 caltinay 3346 from esys.weipa import saveVTK
27 jgs 102 # generate domain:
28 jfenwick 2035 mydomain = Rectangle(l0=1.,l1=1.,n0=40, n1=20)
29 jgs 102 # define characteristic function of Gamma^D
30     x = mydomain.getX()
31 gross 327 gammaD = whereZero(x[0])+whereZero(x[1])
32 jgs 102 # define PDE and get its solution u
33 gross 327 mypde = Poisson(domain=mydomain)
34     mypde.setValue(f=1,q=gammaD)
35 jfenwick 2035 u = mypde.getSolution()
36 jfenwick 2578 # write u to an external file
37     saveVTK("u.vtu",sol=u)
38 caltinay 2534

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision
svn:mergeinfo /branches/lapack2681/doc/examples/usersguide/poisson.py:2682-2741 /branches/pasowrap/doc/examples/usersguide/poisson.py:3661-3674 /branches/py3_attempt2/doc/examples/usersguide/poisson.py:3871-3891 /branches/restext/doc/examples/usersguide/poisson.py:2610-2624 /branches/ripleygmg_from_3668/doc/examples/usersguide/poisson.py:3669-3791 /branches/symbolic_from_3470/doc/examples/usersguide/poisson.py:3471-3974 /branches/symbolic_from_3470/ripley/test/python/doc/examples/usersguide/poisson.py:3517-3974 /trunk/doc/examples/usersguide/poisson.py:1388-2483 /trunk/ripley/test/python/doc/examples/usersguide/poisson.py:3480-3515

  ViewVC Help
Powered by ViewVC 1.1.26