/[escript]/trunk/pyvisi/test/python/run_escript_with_lazy_evaluation.py
ViewVC logotype

Diff of /trunk/pyvisi/test/python/run_escript_with_lazy_evaluation.py

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

revision 1160 by jongui, Tue May 22 05:09:31 2007 UTC revision 1161 by jongui, Wed May 23 04:17:52 2007 UTC
# Line 83  class TestEscriptMap(unittest.TestCase, Line 83  class TestEscriptMap(unittest.TestCase,
83          c = Camera(scene = s, viewport = Viewport.SOUTH_WEST)          c = Camera(scene = s, viewport = Viewport.SOUTH_WEST)
84    
85          # ... start iteration:          # ... start iteration:
86          while t<0.5:          while t<0.2:
87              i+=1              i+=1
88              t+=h              t+=h
89              mypde.setValue(Y=qH+rhocp/h*T)              mypde.setValue(Y=qH+rhocp/h*T)
# Line 228  class TestEscriptEllipsoid(unittest.Test Line 228  class TestEscriptEllipsoid(unittest.Test
228                 viewport = Viewport.SOUTH_WEST,                 viewport = Viewport.SOUTH_WEST,
229                 lut = Lut.COLOR, cell_to_point = True, outline = True)                 lut = Lut.COLOR, cell_to_point = True, outline = True)
230          e.setScaleFactor(scale_factor = 0.7)          e.setScaleFactor(scale_factor = 0.7)
231          e.setMaxScaleFactor(max_scale_factor = 1000)          e.setMaxScaleFactor(max_scale_factor = 100)
232          e.setRatio(ratio = 10)          e.setRatio(ratio = 10)
233    
234          # Create a Camera.          # Create a Camera.
235          c = Camera(scene = s, viewport = Viewport.SOUTH_WEST)          c = Camera(scene = s, viewport = Viewport.SOUTH_WEST)
236          c.isometricView()          c.isometricView()
237    
238          while t<0.4:          while t<0.2:
239              # ... get current stress ....              # ... get current stress ....
240              g=grad(u)              g=grad(u)
241              stress=lam*trace(g)*kronecker+mu*(g+transpose(g))              stress=lam*trace(g)*kronecker+mu*(g+transpose(g))

Legend:
Removed from v.1160  
changed lines
  Added in v.1161

  ViewVC Help
Powered by ViewVC 1.1.26