/[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 910 by gross, Tue Aug 29 02:05:59 2006 UTC revision 911 by gross, Tue Dec 5 23:39:39 2006 UTC
# Line 13  __license__="""Licensed under the Open S Line 13  __license__="""Licensed under the Open S
13    
14  import os  import os
15  from esys.escript.modelframe import Link,Simulation  from esys.escript.modelframe import Link,Simulation
16  from esys.modellib.geometry import RectangularDomain,VectorConstrainer  from esys.modellib.geometry import RectangularDomain,VectorConstrainerOverBox
17  from esys.modellib.input import Sequencer  from esys.modellib.input import Sequencer
18  from esys.modellib.probe import Probe,EvaluateExpression  from esys.modellib.probe import Probe,EvaluateExpression
19  from esys.modellib.flow import SteadyIncompressibleFlow  from esys.modellib.flow import SteadyIncompressibleFlow
# Line 21  from esys.modellib.flow import SteadyInc Line 21  from esys.modellib.flow import SteadyInc
21  dom=RectangularDomain()  dom=RectangularDomain()
22  dom.order=2  dom.order=2
23    
24  constraints=VectorConstrainer()  constraints=VectorConstrainerOverBox()
25  constraints.domain=Link(dom)  constraints.domain=Link(dom)
26  constraints.left=[1,0,0]  constraints.left=[1,0,0]
27  constraints.right=[1,0,0]  constraints.right=[1,0,0]
# Line 40  source.t=Link(sqe) Line 40  source.t=Link(sqe)
40  source.expression=["t","t"]  source.expression=["t","t"]
41    
42  flow=SteadyIncompressibleFlow()  flow=SteadyIncompressibleFlow()
43  flow.domain=Link(dom)  flow.domain=Link(dom,"domain")
44  flow.internal_force=Link(source,"out")  flow.internal_force=Link(source,"out")
45  flow.location_prescribed_velocity=Link(constraints,"location_of_constraint")  flow.location_prescribed_velocity=Link(constraints,"location_of_constraint")
46  flow.prescribed_velocity=[0.,0.]  flow.prescribed_velocity=[0.,0.]

Legend:
Removed from v.910  
changed lines
  Added in v.911

  ViewVC Help
Powered by ViewVC 1.1.26