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

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

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

revision 821 by gross, Mon Aug 28 08:36:30 2006 UTC revision 823 by gross, Tue Aug 29 02:05:59 2006 UTC
# Line 10  __license__="""Licensed under the Open S Line 10  __license__="""Licensed under the Open S
10    
11  from esys.modellib.mechanics import DruckerPrager  from esys.modellib.mechanics import DruckerPrager
12  from esys.escript.modelframe import Link,Simulation  from esys.escript.modelframe import Link,Simulation
13  from esys.modellib.geometry import RectangularDomain, VectorConstrainer  from esys.modellib.geometry import RectangularDomain, VectorConstrainer, UpdateGeometry
14  from esys.modellib.input import Sequencer, InterpolateOverBox  from esys.modellib.input import Sequencer, InterpolateOverBox
15    
16  debug=True  debug=True
# Line 51  cv.right= [True, True, True] Line 51  cv.right= [True, True, True]
51  m.prescribed_velocity=Link(cv,"value_of_constraint")  m.prescribed_velocity=Link(cv,"value_of_constraint")
52  m.location_prescribed_velocity=Link(cv,"location_of_constraint")  m.location_prescribed_velocity=Link(cv,"location_of_constraint")
53    
 dom.displacement=Link(m,"displacement")  
54    
55  s=Simulation([sq,dom,cv,m],debug=True)  ug=UpdateGeometry(debug)
56    ug.domain=Link(dom,"domain")
57    ug.displacement=Link(m,"displacement")
58    
59    s=Simulation([sq,m,ug],debug=True)
60  s.run()  s.run()

Legend:
Removed from v.821  
changed lines
  Added in v.823

  ViewVC Help
Powered by ViewVC 1.1.26