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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/doc/examples/poisson.py revision 2035 by jfenwick, Thu Nov 13 03:16:09 2008 UTC trunk/doc/examples/usersguide/poisson.py revision 2548 by jfenwick, Mon Jul 20 06:20:06 2009 UTC
# Line 1  Line 1 
1    
2  ########################################################  ########################################################
3  #  #
4  # Copyright (c) 2003-2008 by University of Queensland  # Copyright (c) 2003-2009 by University of Queensland
5  # Earth Systems Science Computational Center (ESSCC)  # Earth Systems Science Computational Center (ESSCC)
6  # http://www.uq.edu.au/esscc  # http://www.uq.edu.au/esscc
7  #  #
# Line 17  http://www.uq.edu.au/esscc Line 17  http://www.uq.edu.au/esscc
17  Primary Business: Queensland, Australia"""  Primary Business: Queensland, Australia"""
18  __license__="""Licensed under the Open Software License version 3.0  __license__="""Licensed under the Open Software License version 3.0
19  http://www.opensource.org/licenses/osl-3.0.php"""  http://www.opensource.org/licenses/osl-3.0.php"""
20  __url__="http://www.uq.edu.au/esscc/escript-finley"  __url__="https://launchpad.net/escript-finley"
21    
22  from esys.escript import *  from esys.escript import *
23  from esys.escript.linearPDEs import Poisson  from esys.escript.linearPDEs import Poisson
# Line 32  mypde = Poisson(domain=mydomain) Line 32  mypde = Poisson(domain=mydomain)
32  mypde.setValue(f=1,q=gammaD)  mypde.setValue(f=1,q=gammaD)
33  u = mypde.getSolution()  u = mypde.getSolution()
34  # write u to an external file  # write u to an external file
35  saveVTK("u.xml",sol=u)  saveVTK("u.vtu",sol=u)
36    

Legend:
Removed from v.2035  
changed lines
  Added in v.2548

  ViewVC Help
Powered by ViewVC 1.1.26