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

Diff of /trunk/esys2/modellib/test/python/convection.py

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

revision 147 by jgs, Fri Aug 12 01:45:47 2005 UTC revision 148 by jgs, Tue Aug 23 01:24:31 2005 UTC
# Line 7  Line 7 
7    
8  from escript.modelframe import Link,Simulation  from escript.modelframe import Link,Simulation
9  from modellib.geometry import RectangularDomain,ScalarConstrainer,VectorConstrainer  from modellib.geometry import RectangularDomain,ScalarConstrainer,VectorConstrainer
10  from modellib.input import Sequencer,InterpolateOverBox,GausseanProfile,LinearCombination  from modellib.input import Sequencer,InterpolateOverBox,GaussianProfile,LinearCombination
11  from modellib.flow import SteadyIncompressibleFlow  from modellib.flow import SteadyIncompressibleFlow
12  from modellib.temperature import TemperatureAdvection  from modellib.temperature import TemperatureAdvection
13  from modellib.materials import SimpleEarthModel,GravityForce  from modellib.materials import SimpleEarthModel,GravityForce
# Line 89  vis.scalar=Link(temp,"temperature") Line 89  vis.scalar=Link(temp,"temperature")
89  vis.vector=Link(vel,"velocity")  vis.vector=Link(vel,"velocity")
90  vis.stride=5  vis.stride=5
91    
92  per=GausseanProfile()  per=GaussianProfile()
93  per.domain=Link(dom)  per.domain=Link(dom)
94  per.x_c=[0.5,0.5,0.5]  per.x_c=[0.5,0.5,0.5]
95  per.A=0.0001  per.A=0.0001
# Line 103  lc.f1=1. Line 103  lc.f1=1.
103  lc.v1=Link(temp_val,"out")  lc.v1=Link(temp_val,"out")
104  temp.temperature=Link(lc,"out")  temp.temperature=Link(lc,"out")
105    
106  s=Simulation([dom,sq,temp_constraints,vel_constraints,temp_val,per,lc,mat,grav,Simulation([vel],debug=True),temp,vis],debug=True)  # s=Simulation([dom,sq,temp_constraints,vel_constraints,temp_val,per,lc,mat,grav,Simulation([vel],debug=True),temp,vis],debug=True)
107    s=Simulation([dom,sq,Simulation([vel],debug=True),temp,vis],debug=True)
108  s.writeXML()  s.writeXML()
109  s.run()  s.run()

Legend:
Removed from v.147  
changed lines
  Added in v.148

  ViewVC Help
Powered by ViewVC 1.1.26