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

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

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

revision 3098 by ahallam, Mon Aug 9 07:20:58 2010 UTC revision 3099 by ahallam, Sun Aug 22 04:35:15 2010 UTC
# Line 52  xwidth=200.0   #x width of model Line 52  xwidth=200.0   #x width of model
52  ywidth=200.0   #y width of model  ywidth=200.0   #y width of model
53  depth=100.0   #depth of model  depth=100.0   #depth of model
54  intf=depth/2.   #Depth of the interface.  intf=depth/2.   #Depth of the interface.
55  element_size=2.0  element_size=4.0
56    
57  ####################################################DOMAIN CONSTRUCTION  ####################################################DOMAIN CONSTRUCTION
58  # Domain Corners  # Domain Corners
# Line 141  domain.write(os.path.join(save_path,"exa Line 141  domain.write(os.path.join(save_path,"exa
141  intfaces=[10,30,50,55,80,100,200,250,400,500]  intfaces=[10,30,50,55,80,100,200,250,400,500]
142    
143  # Specify the domain.  # Specify the domain.
144  domaindes=Design(dim=3,element_size=element_size,order=2)  #domaindes=Design(dim=3,element_size=element_size,order=2)
145  cmplx_domain=layer_cake(domaindes,xwidth,ywidth,intfaces)  #cmplx_domain=layer_cake(domaindes,xwidth,ywidth,intfaces)
146  cmplx_domain.setScriptFileName(os.path.join(save_path,"example09lc.geo"))  #cmplx_domain.setScriptFileName(os.path.join(save_path,"example09lc.geo"))
147  cmplx_domain.setMeshFileName(os.path.join(save_path,"example09lc.msh"))  #cmplx_domain.setMeshFileName(os.path.join(save_path,"example09lc.msh"))
148  dcmplx=MakeDomain(cmplx_domain)  #dcmplx=MakeDomain(cmplx_domain)
149  dcmplx.write(os.path.join(save_path,"example09lc.fly"))  #dcmplx.write(os.path.join(save_path,"example09lc.fly"))
150    
151    
152    

Legend:
Removed from v.3098  
changed lines
  Added in v.3099

  ViewVC Help
Powered by ViewVC 1.1.26