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

Diff of /trunk/doc/examples/geotutorial/myfirstscript.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 2548 by jfenwick, Mon Jul 20 06:20:06 2009 UTC
# Line 1  Line 1 
1  ########################################################  ########################################################
2  #  #
3  # Copyright (c) 2003-2008 by University of Queensland  # Copyright (c) 2003-2009 by University of Queensland
4  # Earth Systems Science Computational Center (ESSCC)  # Earth Systems Science Computational Center (ESSCC)
5  # http://www.uq.edu.au/esscc  # http://www.uq.edu.au/esscc
6  #  #
# 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  # get the tools we want to use  # get the tools we want to use
22  from esys.escript import *  from esys.escript import *
# Line 34  x=mydomain.getX() Line 34  x=mydomain.getX()
34  print x    print x  
35  # set a function  # set a function
36  T_D=T_bot/L1*(L1-x[1])  T_D=T_bot/L1*(L1-x[1])
37  # save T_D for visualization with mayavi  # save T_D for visualisation
38  saveVTK("u.xml",T=T_D)  saveVTK("u.vtu",T=T_D)
39    

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

  ViewVC Help
Powered by ViewVC 1.1.26