/[escript]/trunk/doc/examples/geotutorial/steadystate_variablek.py
ViewVC logotype

Diff of /trunk/doc/examples/geotutorial/steadystate_variablek.py

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

revision 2156 by gross, Mon Dec 15 05:09:02 2008 UTC revision 2534 by caltinay, Thu Jul 16 06:49:19 2009 UTC
# Line 16  http://www.uq.edu.au/esscc Line 16  http://www.uq.edu.au/esscc
16  Primary Business: Queensland, Australia"""  Primary Business: Queensland, Australia"""
17  __license__="""Licensed under the Open Software License version 3.0  __license__="""Licensed under the Open Software License version 3.0
18  http://www.opensource.org/licenses/osl-3.0.php"""  http://www.opensource.org/licenses/osl-3.0.php"""
19  __url__="http://www.uq.edu.au/esscc/escript-finley"  __url__="https://launchpad.net/escript-finley"
20    
21  # import tools  # import tools
22  from esys.escript import *  from esys.escript import *
# Line 49  mypde.setValue(A=k*kronecker(mydomain),Y Line 49  mypde.setValue(A=k*kronecker(mydomain),Y
49                  q=whereZero(x[1])+whereZero(x[1]-L1))                  q=whereZero(x[1])+whereZero(x[1]-L1))
50  # get temperature:  # get temperature:
51  T=mypde.getSolution()  T=mypde.getSolution()
52  # save to VTK for mayavi:  # save as VTK for visualisation:
53  saveVTK("u.xml",T=T)  saveVTK("u.vtu",T=T)
54    

Legend:
Removed from v.2156  
changed lines
  Added in v.2534

  ViewVC Help
Powered by ViewVC 1.1.26