/[escript]/trunk/doc/examples/pyvisi/helmholtz_with_pyvisi.py
ViewVC logotype

Diff of /trunk/doc/examples/pyvisi/helmholtz_with_pyvisi.py

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

revision 1152 by jongui, Thu May 17 00:42:34 2007 UTC revision 1153 by jongui, Thu May 17 06:33:54 2007 UTC
# Line 17  omega=0.1 Line 17  omega=0.1
17  eta=10.  eta=10.
18  #... generate domain ...  #... generate domain ...
19  mydomain = Rectangle(l0=5.,l1=1.,n0=50, n1=10)  mydomain = Rectangle(l0=5.,l1=1.,n0=50, n1=10)
20    
21  #... open PDE and set coefficients ...  #... open PDE and set coefficients ...
22  mypde=LinearPDE(mydomain)  mypde=LinearPDE(mydomain)
23  mypde.setSymmetryOn()  mypde.setSymmetryOn()
# Line 41  Map(scene = s, data_collector = dc, view Line 42  Map(scene = s, data_collector = dc, view
42  # Create a Camera.  # Create a Camera.
43  c = Camera(scene = s, viewport = Viewport.SOUTH_WEST)  c = Camera(scene = s, viewport = Viewport.SOUTH_WEST)
44    
   
45  # Render the object.  # Render the object.
46  s.render(image_name = os.path.join(PYVISI_EXAMPLE_IMAGES_PATH, "helmholtz.jpg"))  s.render(image_name = os.path.join(PYVISI_EXAMPLE_IMAGES_PATH, "helmholtz.jpg"))

Legend:
Removed from v.1152  
changed lines
  Added in v.1153

  ViewVC Help
Powered by ViewVC 1.1.26