/[escript]/trunk/doc/examples/cookbook/twodheatdiff.py
ViewVC logotype

Diff of /trunk/doc/examples/cookbook/twodheatdiff.py

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

revision 2903 by jfenwick, Thu Jan 28 02:03:15 2010 UTC revision 2904 by gross, Tue Feb 2 04:21:52 2010 UTC
# Line 29  from esys.escript.linearPDEs import Line Line 29  from esys.escript.linearPDEs import Line
29  from esys.finley import Rectangle # This imports the rectangle domain function from finley  from esys.finley import Rectangle # This imports the rectangle domain function from finley
30  import os #This package is necessary to handle saving our data.  import os #This package is necessary to handle saving our data.
31    
 from cblib1 import needdirs  
   
   
32  ##ESTABLISHING VARIABLES  ##ESTABLISHING VARIABLES
33  #PDE related  #PDE related
34  mx = 600 # model lenght  mx = 600 # model lenght
# Line 69  print "Step size is: ", h/(24.*60*60), " Line 66  print "Step size is: ", h/(24.*60*60), "
66    
67  i=0 #loop counter  i=0 #loop counter
68  save_path = "data/twodheatdiff" #the folder to put our outputs in, leave blank "" for script path - note this folder path must exist to work  save_path = "data/twodheatdiff" #the folder to put our outputs in, leave blank "" for script path - note this folder path must exist to work
69  needdirs([save_path])  mkDir(save_path)
70    
71  #... generate domain ...  #... generate domain ...
72  model = Rectangle(l0=mx,l1=my,n0=ndx, n1=ndy)  model = Rectangle(l0=mx,l1=my,n0=ndx, n1=ndy)

Legend:
Removed from v.2903  
changed lines
  Added in v.2904

  ViewVC Help
Powered by ViewVC 1.1.26