- Timestamp:
- Jun 10, 2013, 11:11:02 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/tests/shallow_steep_slope/channel_SU_sparse.py
r8884 r8893 22 22 from anuga.shallow_water.shallow_water_domain import Domain as Domain 23 23 from balanced_dev import * 24 from balanced_dev import Domain as Domain24 #from balanced_dev import Domain as Domain 25 25 #from anuga_tsunami import * 26 26 #from anuga_tsunami import Domain as Domain … … 36 36 #------------------------------------------------------------------------------ 37 37 def topography(x, y): 38 return -x/10. + 1.*(numpy.sin(x/10.) +abs(y-50.)/10.) -0.*(x>80.) # linear bed slope38 return -x/10. # + 1.*(numpy.sin(x/10.) +abs(y-50.)/10.) -0.*(x>80.) # linear bed slope 39 39 40 40 def stagetopo(x,y): … … 44 44 45 45 line1=[ [9.,0.], [9., 100.] ] 46 Qin= 2.46 Qin=0.5 47 47 Inlet_operator(domain, line1,Qin) 48 48 … … 73 73 # Evolve system through time 74 74 #------------------------------------------------------------------------------ 75 for t in domain.evolve(yieldstep=4.0, finaltime= 400.0):75 for t in domain.evolve(yieldstep=4.0, finaltime=800.0): 76 76 print domain.timestepping_statistics() 77 print domain.boundary_flux_integral77 #print domain.boundary_flux_integral 78 78 print (domain.areas*(domain.quantities['stage'].centroid_values - domain.quantities['elevation'].centroid_values)).sum() 79 79 #print domain.quantities['stage'].centroid_values[myindex] - domain.quantities['elevation'].centroid_values[myindex]
Note: See TracChangeset
for help on using the changeset viewer.