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

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

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

trunk/doc/examples/cookbook/faultgen.py revision 3195 by ahallam, Wed Sep 22 00:28:04 2010 UTC trunk/doc/examples/cookbook/example10c_0.py revision 3439 by gross, Fri Jan 14 00:04:01 2011 UTC
# Line 25  from esys.pycad.gmsh import Design Line 25  from esys.pycad.gmsh import Design
25  from esys.finley import MakeDomain  from esys.finley import MakeDomain
26  from esys.escript.unitsSI import *  from esys.escript.unitsSI import *
27  from math import tan  from math import tan
28    #the folder to put our outputs in, leave blank "" for script path
29    save_path= os.path.join("data","example10")
30  #  #
31  #   input data:  #   input data:
32  #  #
# Line 175  FF.append(-PlaneSurface(CurveLoop(*tuple Line 176  FF.append(-PlaneSurface(CurveLoop(*tuple
176    
177    
178  # war 120  # war 120
179  des=Design(dim=3, order=1, element_size = 40*m, keep_files=True)  des=Design(dim=3, order=1, element_size = 400*m, keep_files=True)
180  des.addItems(*tuple(PS.values()))  des.addItems(*tuple(PS.values()))
181  des.addItems(PropertySet("fault",Volume(SurfaceLoop( *tuple(FF)))))  des.addItems(PropertySet("fault",Volume(SurfaceLoop( *tuple(FF)))))
182  des.setMeshFileName("fault.msh")  des.setMeshFileName(os.path.join(save_path,"fault.msh"))
183  dom=MakeDomain(des)  dom=MakeDomain(des)
184  dom.write("fault.fly")  dom.write(os.path.join(save_path,"fault.fly"))
185    

Legend:
Removed from v.3195  
changed lines
  Added in v.3439

  ViewVC Help
Powered by ViewVC 1.1.26