Changeset 9023


Ignore:
Timestamp:
Nov 14, 2013, 12:13:43 AM (11 years ago)
Author:
davies
Message:

Increasing velocity extrapolation accuracy near depth gradients

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  
    12561256      // REDEFINE hfactor for momentum terms -- make MORE first order
    12571257      // 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      //            );
    12611261      //hfactor= max(0., min(5*max(hmin,0.0)/max(hmax,1.0e-06)-2.0,
    12621262      //                      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);
    12641264     
    12651265      //-----------------------------------
  • trunk/anuga_work/development/gareth/tests/shallow_steep_slope/channel_SU_2plot.py

    r9014 r9023  
    4747pyplot.ion()
    4848
    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() ) )
     49line, = pyplot.plot( (p2.x[v].min(),p2.x[v].max()) ,( (p2.stage[:,v]-p2.elev[v]).max(),(p2.stage[:,v]-p2.elev[v]).min() ) )
    5050line.set_label('Numerical')
    5151pyplot.plot( (0,100),(dana,dana), 'r',label='Analytical' )
     
    5555for i in range(p2.xmom.shape[0]):
    5656    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])
    5858    pyplot.draw()
    5959    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  
    3636#------------------------------------------------------------------------------
    3737def topography(x, y):
    38         return -x/10. # + 1.*(numpy.sin(x/10.) +abs(y-50.)/10.) -0.*(x>80.) # linear bed slope
     38        return -x/10. + 1.*(numpy.sin(x/10.) +abs(y-50.)/10.) -0.*(x>80.) # linear bed slope
    3939
    4040def stagetopo(x,y):
Note: See TracChangeset for help on using the changeset viewer.