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

Annotation of /trunk/doc/examples/usersguide/poisson_vtk.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2881 - (hide annotations)
Thu Jan 28 02:03:15 2010 UTC (10 years, 3 months ago) by jfenwick
File MIME type: text/x-python
File size: 1212 byte(s)
Don't panic.
Updating copyright stamps

1 gross 2574
2     ########################################################
3     #
4 jfenwick 2881 # Copyright (c) 2003-2010 by University of Queensland
5 gross 2574 # Earth Systems Science Computational Center (ESSCC)
6     # http://www.uq.edu.au/esscc
7     #
8     # Primary Business: Queensland, Australia
9     # Licensed under the Open Software License version 3.0
10     # http://www.opensource.org/licenses/osl-3.0.php
11     #
12     ########################################################
13    
14 jfenwick 2881 __copyright__="""Copyright (c) 2003-2010 by University of Queensland
15 gross 2574 Earth Systems Science Computational Center (ESSCC)
16     http://www.uq.edu.au/esscc
17     Primary Business: Queensland, Australia"""
18     __license__="""Licensed under the Open Software License version 3.0
19     http://www.opensource.org/licenses/osl-3.0.php"""
20     __url__="https://launchpad.net/escript-finley"
21    
22     from esys.escript import *
23     from esys.escript.linearPDEs import Poisson
24     from esys.finley import Rectangle
25     # generate domain:
26     mydomain = Rectangle(l0=1.,l1=1.,n0=40, n1=20)
27     # define characteristic function of Gamma^D
28     x = mydomain.getX()
29     gammaD = whereZero(x[0])+whereZero(x[1])
30     # define PDE and get its solution u
31     mypde = Poisson(domain=mydomain)
32     mypde.setValue(f=1,q=gammaD)
33     u = mypde.getSolution()
34     # write u to an external file
35     saveVTK("u.vtu",sol=u)
36    

  ViewVC Help
Powered by ViewVC 1.1.26