Changeset 9085 for trunk/anuga_core/source/anuga_1d/sqpipe/culvert.py
- Timestamp:
- Apr 11, 2014, 10:06:44 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_1d/sqpipe/culvert.py
r9081 r9085 36 36 def top(x): 37 37 38 t = numpy.ones_like(x) 38 t = numpy.ones_like(x)*4 39 39 40 40 t = numpy.where(x<-40, 20, t) … … 45 45 return height(x)*width(x) 46 46 47 def friction(x): 48 return numpy.ones_like(x)*0.01 49 47 50 48 51 #=============================================================================== 49 52 50 53 def get_domain(): 51 N = 10054 N = 20 52 55 print "Evaluating domain with %d cells" %N 53 56 … … 57 60 58 61 domain.set_spatial_order(2) 59 domain.set_timestepping_method(' euler')62 domain.set_timestepping_method('rk2') 60 63 domain.set_CFL(0.5) 61 64 domain.set_limiter("vanleer") … … 68 71 domain.set_quantity('width',width) 69 72 domain.set_quantity('top',top) 73 domain.set_quantity('friction',friction) 70 74 71 75 Br = dom.Reflective_boundary(domain) 72 76 Bt = dom.Transmissive_boundary(domain) 73 77 74 domain.set_boundary({'left': Br, 'right' : B t})78 domain.set_boundary({'left': Br, 'right' : Br}) 75 79 76 80 return domain
Note: See TracChangeset
for help on using the changeset viewer.