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

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

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

trunk/doc/examples/cookbook/simple_solver001.py revision 2948 by gross, Thu Feb 25 04:54:30 2010 UTC trunk/doc/examples/cookbook/example04b.py revision 2951 by gross, Thu Feb 25 07:43:40 2010 UTC
# Line 24  Author: Antony Hallam antony.hallam@uqco Line 24  Author: Antony Hallam antony.hallam@uqco
24  """  """
25    
26  ############################################################FILE HEADER  ############################################################FILE HEADER
27  # simple_mesher001.py  # example04b.py
28  # Create either a 2D mesh for a rectangle model using pycad meshing  # Create either a 2D mesh for a rectangle model using pycad meshing
29  # tools.  # tools.
30  #  #
# Line 48  if getMPISizeWorld() > 1: Line 48  if getMPISizeWorld() > 1:
48      sys.exit(0)      sys.exit(0)
49    
50  # make sure path exists  # make sure path exists
51  save_path= os.path.join("data","simpleheat")  save_path= os.path.join("data","example04")
52  mkDir(save_path)  mkDir(save_path)
53    
54  ################################################ESTABLISHING PARAMETERS  ################################################ESTABLISHING PARAMETERS
# Line 103  pl.matplotlib.pyplot.autumn() Line 103  pl.matplotlib.pyplot.autumn()
103  pl.contourf(xi,yi,zi,10)  pl.contourf(xi,yi,zi,10)
104  pl.xlabel("Horizontal Displacement (m)")  pl.xlabel("Horizontal Displacement (m)")
105  pl.ylabel("Depth (m)")  pl.ylabel("Depth (m)")
106  pl.savefig(os.path.join(save_path,"simpleheat.png"))  pl.savefig(os.path.join(save_path,"example04.png"))
107  print "Solution has been plotted  ..."  print "Solution has been plotted  ..."

Legend:
Removed from v.2948  
changed lines
  Added in v.2951

  ViewVC Help
Powered by ViewVC 1.1.26