Changeset 9023
- Timestamp:
- Nov 14, 2013, 12:13:43 AM (11 years ago)
- Location:
- trunk/anuga_work/development/gareth
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/experimental/bal_and/swb2_domain_ext.c
r9022 r9023 1256 1256 // REDEFINE hfactor for momentum terms -- make MORE first order 1257 1257 // Reduce beta linearly from 1-0 between depth ratio of 0.6-0.4 1258 hfactor= max(0., min(5*max(hmin,0.0)/max(hc,1.0e-06)-2.0,1259 min(5*max(hc,0.)/max(hmax,1.0e-06)-2.0, 1.0))1260 );1258 //hfactor= max(0., min(5*max(hmin,0.0)/max(hc,1.0e-06)-2.0, 1259 // min(5*max(hc,0.)/max(hmax,1.0e-06)-2.0, 1.0)) 1260 // ); 1261 1261 //hfactor= max(0., min(5*max(hmin,0.0)/max(hmax,1.0e-06)-2.0, 1262 1262 // 1.0)); 1263 hfactor=min( max(hmin,0.)/(max(hmin,0.)+10.*minimum_allowed_height), hfactor);1263 //hfactor=min( max(hmin,0.)/(max(hmin,0.)+10.*minimum_allowed_height), hfactor); 1264 1264 1265 1265 //----------------------------------- -
trunk/anuga_work/development/gareth/tests/shallow_steep_slope/channel_SU_2plot.py
r9014 r9023 47 47 pyplot.ion() 48 48 49 line, = pyplot.plot( (p2.x[v].min(),p2.x[v].max()) ,( (p2.stage[:,v]-p2.elev[ 1,v]).max(),(p2.stage[:,v]-p2.elev[1,v]).min() ) )49 line, = pyplot.plot( (p2.x[v].min(),p2.x[v].max()) ,( (p2.stage[:,v]-p2.elev[v]).max(),(p2.stage[:,v]-p2.elev[v]).min() ) ) 50 50 line.set_label('Numerical') 51 51 pyplot.plot( (0,100),(dana,dana), 'r',label='Analytical' ) … … 55 55 for i in range(p2.xmom.shape[0]): 56 56 line.set_xdata(p2.x[v]) 57 line.set_ydata(p2.stage[i,v]-p2.elev[ 1,v])57 line.set_ydata(p2.stage[i,v]-p2.elev[v]) 58 58 pyplot.draw() 59 59 pyplot.title('Flow depth: should be converging to steady uniform flow ' ) -
trunk/anuga_work/development/gareth/tests/shallow_steep_slope/channel_SU_sparse.py
r9014 r9023 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):
Note: See TracChangeset
for help on using the changeset viewer.