/[escript]/trunk/modellib/test/python/run_flow.py
ViewVC logotype

Diff of /trunk/modellib/test/python/run_flow.py

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

revision 819 by gross, Sun Aug 27 23:07:51 2006 UTC revision 820 by gross, Mon Aug 28 06:55:36 2006 UTC
# Line 31  constraints.front=[0,0,1] Line 31  constraints.front=[0,0,1]
31  constraints.back=[0,0,1]  constraints.back=[0,0,1]
32    
33  sqe=Sequencer()  sqe=Sequencer()
34  sqe.dt_max=0.3  sqe.dt_max=0.5
35  sqe.t_end=1.  sqe.t_end=1.
36    
37  source=EvaluateExpression()  source=EvaluateExpression()
# Line 50  ptest.expression="(x[0]+x[1]-1.)*t" Line 50  ptest.expression="(x[0]+x[1]-1.)*t"
50  ptest.t=Link(sqe)  ptest.t=Link(sqe)
51  ptest.value=Link(flow,"pressure")  ptest.value=Link(flow,"pressure")
52    
53  s=Simulation([sqe,dom,Simulation([flow],debug=True),ptest],debug=True)  s=Simulation([sqe,dom,constraints,Simulation([flow],debug=True),ptest],debug=True)
54  s.writeXML()  s.writeXML()
55  s.run()  s.run()

Legend:
Removed from v.819  
changed lines
  Added in v.820

  ViewVC Help
Powered by ViewVC 1.1.26